A tiny docker image with a working tectonic latex engine and biber with a primed cache.
- Visit my page on docker hub at: https://hub.docker.com/r/dxjoke/tectonic-docker/
- Visit my page on github at: https://github.com/WtfJoke/tectonic-docker
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.
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.
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
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
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
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