Skip to content

A tiny docker image for tectonic latex engine with a primed cache

Notifications You must be signed in to change notification settings

WtfJoke/tectonic-docker

 
 

Repository files navigation

docker pulls

Docker Tectonic with Biber

A tiny docker image with a working tectonic latex engine and biber with a primed cache.

Getting the image

docker pull dxjoke/tectonic-docker

Only ~75MB compressed.

A fully working latex engine. Packages that are not in the cache will be downloaded on demand.

Github

In case you want to use this docker image in github.
Please check out and use my github action WtfJoke/setup-tectonic instead.

The action performs better and supports individual caching (:zap:) of your downloaded tex packages.

Example: Gitlab CI

Create a .gitlab-ci.yml with the following content for very fast pdf builds.

pdf:
  image: dxjoke/tectonic-docker
  script:
    - tectonic --keep-intermediates --reruns 0 main.tex
    - biber main
    - tectonic main.tex
  artifacts:
    paths:
      - main.pdf

Example: Gitlab CI (without biber)

In case you dont need biber, you simply ommit the first two script calls. Eg.

pdf:
  image: dxjoke/tectonic-docker
  script:
    - tectonic main.tex
  artifacts:
    paths:
      - main.pdf

Priming the cache

After building tectonic, it is run on the tex files in this repo to download all the common files from the tectonic bundle. These files are bundled in the docker image

Running locally

On windows:

docker run -it -v c:/mytex/folder/thesis:/data dxjoke/tectonic-docker

On linux:

docker run -it -v /home/user/mytex/folder/thesis:/data dxjoke/tectonic-docker

Afterwards you can cd into /data and run tectonic/biber as you wish. Eg:

cd /data
tectonic --keep-intermediates --reruns 0 main.tex
biber main
tectonic main.tex

About

A tiny docker image for tectonic latex engine with a primed cache

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TeX 99.3%
  • Python 0.7%