You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Markus Pesch d5db73ba58
fix: add push docker readme
3 months ago
.drone.yml fix: add push docker readme 3 months ago
.editorconfig cleanup: Docker- and Makefiles 1 year ago
.gitattributes fix: use orgsecret 3 months ago
.gitignore fix: use orgsecret 3 months ago
Dockerfile.archlinux fix: archlinux - path to biber 9 months ago
Dockerfile.centos fix: add curl 9 months ago
Dockerfile.debian fix: add curl 9 months ago
Dockerfile.fedora fix: add curl 9 months ago
Dockerfile.ubuntu fix: add curl 9 months ago
LICENSE fix(LICENSE): Apache 2.0 1 year ago
Makefile fix: add push docker readme 3 months ago
README.md fix: README 3 months ago

README.md

Docker Latex

Build Status Docker Pulls

This repository, hosted on git.cryptic.systems, contains Dockerfiles to build different container images based on differend base images. Any container image has the tex compiler and the minted package included. Throught this are all container images able to compile tex source code with source code highlighting.

Images

Available Images:

  • volkerraschek/container-latex:latest-archlinux
  • volkerraschek/container-latex:latest-debian8-slim
  • volkerraschek/container-latex:latest-debian9-slim
  • volkerraschek/container-latex:latest-debian10-slim
  • volkerraschek/container-latex:latest-fedora30
  • volkerraschek/container-latex:latest-fedora31
  • volkerraschek/container-latex:latest-centos-7
  • volkerraschek/container-latex:latest-ubuntu16.04
  • volkerraschek/container-latex:latest-ubuntu18.04
  • volkerraschek/container-latex:latest-ubuntu20.04

You can find a complete list of all docker images based on different distributions on Docker Hub.

Usage

Latexmk

Here is an example based on ubuntu 18.04 to compile a PDF file with latexmk from index.tex. Run this command in your root directory of your Latex files or change the volume option with the ${PWD} variable.

$ docker run \
    --rm \
    --user="$(shell id -u):$(shell id -g)" \
    --net="none" \
    --volume="${PWD}:/workspace" volkerraschek/container-latex:latest-ubuntu18.04 \
    latexmk \
      -shell-escape \
      -synctex=1 \
      -interaction=nonstopmode \
      -file-line-error \
      -pdf index.tex

pdflatex

Here is a example based on ubuntu 18.04 to compile a PDF file with pdflatex from index.tex. Run this command in your root directory of your Latex files or change the volume option with the ${PWD} variable.

$ docker run \
    --rm \
    --user="$(shell id -u):$(shell id -g)" \
    --net="none" \
    --volume="${PWD}:/workspace" volkerraschek/container-latex:latest-ubuntu18.04 \
    pdflatex \
      -shell-escape \
      -synctex=1 \
      -interaction=nonstopmode \
      -enable-write18 index.tex

Build image manually

To build the images manually check out the repository with git and use the make command to build individual images. For example:

make all

You can choose between different distributions as base image. For example, if you want to build all ubuntu images execute this command.

make build/ubuntu

Alternatively you can build instead all ubuntu based images an explicit version. For example a container image based on ubuntu 18.04.

make build/ubuntu/18.04