Public | Automated Build

Last pushed: a month ago
Short Description
Docker image for TeXLive 2017 (scheme-full)
Full Description

Dockerfile for TeX Live 2017

This is a Dockerfile repository of TeX Live 2017 with scheme-full profile. (Almost) monthly updated.


A path to TeX Live scripts and binaries (/usr/local/texlive/2017/bin/x86_64-linux) is already added to $PATH.

$ docker run --rm -i -t makisyu/texlive-2017 platex
This is e-pTeX, Version 3.14159265-p3.7.1-161114-2.6 (utf8.euc) (TeX Live 2017) (preloaded format=platex)
 restricted \write18 enabled.
! End of file on the terminal... why?

Most users want to add a volume that contains source codes and change working directory to it.

$ ls
$ docker run --rm --volume $PWD:/workdir --workdir /workdir makisyu/texlive-2017 platex main.tex

Docker volume is mounted as uid=1000,gid=1000 (In most cases, these ids mean root:root.), and files in the directories are owned by root. Adding --user option is good idea.

You should use uid/gid instead of user/group names because, in the container, /etc/passwd doesn't contain your user/group names. If you use uid:gid, the container creates files as specified uid:gid without reading /etc/passwd.

$ docker run --rm --volume $PWD:/workdir --workdir /workdir --user 1001:1001 makisyu/texlive-2017 platex main.tex

latexmk? Yes, it's very useful, and scheme-full profile includes huge collection of other useful tools.

$ ls -a
.latexmkrc main.tex
$ docker run --rm --volume $PWD:/workdir --workdir /workdir --user 1001:1001 makisyu/texlive-2017 latexmk

This image is based on fedora:latest docker image. The login shell and other basic utilities are always available, and you can run shell script, perl, etc.

$ docker run -i -t --rm --volume $PWD:/workdir --workdir /workdir --user 1001:1001 makisyu/texlive-2017 /usr/bin/bash
[root@20629bec6417 workdir]# ls
[root@20629bec6417 workdir]# perl -v

This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux-thread-multi
(with 68 registered patches, see perl -V for more detail)

Copyright 1987-2017, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at, the Perl Home Page.

[root@20629bec6417 workdir]# python3.5 -V
Python 3.5.3
[root@20629bec6417 workdir]#

Image is too large.

Ooops. I know!

Docker Pull Command

Comments (0)