Update Docker image to TexLive 2020

parent a5888c68
Pipeline #160013627 passed with stage
in 3 minutes and 11 seconds
......@@ -64,8 +64,7 @@ The complete script [`Makefile`](https://gitlab.com/martisak/latex-pipeline/-/bl
### Generating figures
The figures resides in the subdirectory `figures` which contains a `Makefile`.
These can be manually built with
The figures resides in the subdirectory `figures` which contains a `Makefile`. We can compile the figures locally with `make -C figures` or in a Docker container with
{% highlight bash linenos %}
docker run --rm -w /data/ -v`pwd`:/data python:3.8 make -C /data/figures
......@@ -75,10 +74,10 @@ Each figure is generated from raw data and plotted using a Python script. Each s
### Compiling the document
Our document can be compiled using `latexmk` inside a Docker container with
Our document can be compiled using `latexmk` inside a Docker container with `make`. This is the same as running
{% highlight bash linenos %}
docker run --rm -w /data/ -v`pwd`:/data blang/latex:ctanfull make pdf
docker run --rm -w /data/ -v`pwd`:/data martisak/texlive2020 make pdf
{% endhighlight %}
The document will be compiled inside the container using
......@@ -87,7 +86,7 @@ The document will be compiled inside the container using
latexmk -bibtex -pdf -pdflatex="pdflatex -interaction=nonstopmode" main.tex
{% endhighlight %}
The container we are using is based on [a Docker image which has TeXLive 2017 installed](https://github.com/blang/latex-docker) on top of an Ubuntu base image.
The container we are using is based on a Docker image which has TeXLive 2020 installed on top of an Ubuntu base image.
### Running unit tests
......@@ -181,13 +180,13 @@ Care has to be taken with this - the cache can become to big for Gitlab to handl
### Compiling the LaTeX document
The second stage in the pipeline will compile the actual LaTeX document. Here, we need to use a docker image that have LaTeX and all needed packages installed. The Docker image we use is `blang/latex:ctanfull`, which is using [TeXLive](https://www.tug.org/texlive/) 2017.
The second stage in the pipeline will compile the actual LaTeX document. Here, we need to use a docker image that have LaTeX and all needed packages installed. The Docker image we use is `martisak/texlive2020`, which is using [TeXLive](https://www.tug.org/texlive/) 2020.
The job artifact of interest is of course the compiled pdf-document, but we include any untracked file so that any logfiles and other generated files will be included.
{% highlight yaml linenos %}
compile:
image: blang/latex:ctanfull
image: martisak/texlive2020
stage: build
script:
- make pdf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment