Public | Automated Build

Last pushed: 3 months ago
Short Description
A lightweight container for building LaTeX documents
Full Description

docker-latex

It seems that the texlive-full Alpine Linux package maybe broken, so this
doesn't work rigt now.

This container came about because I wasam using tianon/latex to build some
LaTeX documents, but GitLab took a long time to pull the container, so I decided
to attempt making a smaller version that will significantly improve CI build
times. In addition, I also wanted to be able to use a Makefile for building.

This more lightweight version reduces the build time by about 4 minutes!

Usage

GitLab

Add a build job similar to the following to your .gitlab-ci.yml:

compile_pdf:
  image: mattmahn/latex
  script:
    - pslatex report.tex
    - make report.pdf
  artifacts:
    paths:
      - report.ps
      - report.pdf

Development

Building the container

docker build --pull -t docker-latex .

Compiling sample document

docker run docker-latex pdflatex /tmp/test-sample.tex

License

This is released into the public domain.

Docker Pull Command
Owner
mattmahn
Source Repository

Comments (0)