Latex-docker is a fully-equipped Latex+Pandoc+NodeJS+R docker container to be used in document-authoring systems and automated builds such as CI systems. Installing Latex in a typical virtual machine can require up to one and a half hour, while the Latex distribution shipped with Linux distros is usually obsolete.
Note: This container was create when out company was called "FermiumLABS" and not "Fermium". As such, it might be migrated in the future to a different container name.
Includes the following packages and utilities:
- Node.js (defaults to 12)
- TexLive 2020 full automatically installed from the TexLive repository
- Pygments (minted support)
- Zip, wget and similar unix tools
- Pandoc (defaults to 2.11.0)
- R
Pull image (from Hub):
docker pull fermiumlabs/latex-docker
Or build:
git clone https://github.com/fermiumlabs/latex-docker.git
cd latex-docker
#Beware: building it's a very long process
docker build -t fermiumlabs/latex-docker .
Make commands:
make pull #pull the docker container from the prebuilt public image
make push #push the image to Docker hub
make build #build the image from this GitHub repository. long process
make shell #allows you to interact with the container
make run #run the container and then destroys it
make start #start the container
make stop #stop the container
make rm #remove the container and free disk space
Options can be specified through docker's arguments.
docker build . -t fermiumlabs/latex-docker:node-7 --build-arg node_ver=7
docker build . -t fermiumlabs/latex-docker:pandoc-2.1.3 --build-arg pandoc_ver=2.1.3