Source files of the container image volkerraschek/latex https://hub.docker.com/r/volkerraschek/latex
Go to file
Markus Pesch 63fd6810bf
continuous-integration/drone/push Build is failing Details
feat(ci): use git.cryptic.systems/volker.raschek/markdownlint v0.33.0
2023-06-08 19:38:44 +02:00
.drone.yml feat(ci): use git.cryptic.systems/volker.raschek/markdownlint v0.33.0 2023-06-08 19:38:44 +02:00
.editorconfig Initial Commit 2021-09-02 19:31:51 +02:00
.gitattributes Initial Commit 2021-09-02 19:31:51 +02:00
.gitignore Initial Commit 2021-09-02 19:31:51 +02:00
.markdownlint.yaml Initial Commit 2021-09-02 19:31:51 +02:00
Dockerfile.archlinux fix: remove arch linux pkgs from cache 2023-06-08 18:34:14 +02:00
Dockerfile.centos Initial Commit 2021-09-02 19:31:51 +02:00
Dockerfile.debian fix: install correct pygments package for debian and ubuntu 2022-03-03 22:30:37 +01:00
Dockerfile.fedora Initial Commit 2021-09-02 19:31:51 +02:00
Dockerfile.ubuntu fix: install correct pygments package for debian and ubuntu 2022-03-03 22:30:37 +01:00
LICENSE Initial Commit 2021-09-02 19:31:51 +02:00
README.md Initial Commit 2021-09-02 19:31:51 +02:00
build.sh Initial Commit 2021-09-02 19:31:51 +02:00

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/latex:latest-archlinux
  • volkerraschek/latex:latest-debian8-slim
  • volkerraschek/latex:latest-debian9-slim
  • volkerraschek/latex:latest-debian10-slim
  • volkerraschek/latex:latest-fedora-30
  • volkerraschek/latex:latest-fedora-31
  • volkerraschek/latex:latest-centos-7
  • volkerraschek/latex:latest-ubuntu-16.04
  • volkerraschek/latex:latest-ubuntu-18.04
  • volkerraschek/latex:latest-ubuntu-20.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/latex:latest-ubuntu-18.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/latex:latest-ubuntu-18.04 \
    pdflatex \
      -shell-escape \
      -synctex=1 \
      -interaction=nonstopmode \
      -enable-write18 index.tex