Git Product home page Git Product logo

tectonic-docker's Introduction

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

Example: Travis CI

Create a .travis.yml file with, assuming the main tex file to be main.tex. If your main.tex file is in a subfolder (for example src/main.tex), adjust the second line to src=$TRAVIS_BUILD_DIR/mysubfolder (eg src=$TRAVIS_BUILD_DIR/src)

sudo: required

services:
  - docker

script:
 - docker run --mount src=$TRAVIS_BUILD_DIR,target=/usr/src/tex,type=bind dxjoke/tectonic-docker
  /bin/sh -c "tectonic --keep-intermediates --reruns 0 main.tex; biber main; tectonic main.tex"

Example: Travis CI (without biber)

In case you dont need biber, you simply use this config with a slightly adjusted docker run:

sudo: required

services:
  - docker

script:
 - docker run --mount src=$TRAVIS_BUILD_DIR,target=/usr/src/tex,type=bind dxjoke/tectonic-docker
  /bin/sh -c "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. 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

tectonic-docker's People

Contributors

clbarnes avatar dependabot[bot] avatar phpirates avatar rekka avatar subtlemuffin avatar wtfjoke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.