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

rekka/tectonic-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

docker pull rekka/tectonic

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

Example: Gitlab CI

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

pdf:
  image: rekka/tectonic
  script:
    - tectonic my-document.tex
  artifacts:
    paths:
      - my-document.pdf

Example: Travis CI

Create a .travis.yml file with, assuming the main tex file to be src/main.tex,

sudo: required

services:
  - docker

script:
  # We use the docker image from https://hub.docker.com/r/rekka/tectonic/
  - docker pull rekka/tectonic
  - docker run --mount src=$TRAVIS_BUILD_DIR/src,target=/usr/src/tex,type=bind rekka/tectonic tectonic main.tex

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.

prime-cache.tex is generated from local tectonic's manifest using

./create-prime-cache.sh manifest-file.txt

The manifest file is a file with a long hex string name located in

  • Mac: $HOME/Library/Caches/Tectonic/manifests/
  • *nix: $HOME/.cache/Tectonic/manifests/

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published