I’m testing the share runner provided by Gitlab. However, I mostly want to use it to build documents using (La)TeX and friends (
lualatex, etc.). However, with a simple configuration it doesn’t work.
build: script: - pdflatex doc.tex
I tried adding a tag to see if executing a docker will make a difference (as I understood from here that a tag will instantiate a different runner), through
build: script: - pdflatex doc.tex tags: - docker
Full installation of
That still gives an error that the
pdflatex command is not found. So I thought, “OK, it is not by default on the system” so I will try to install it
before_script: - apt-get update -qq && apt-get install -y -qq texlive-full - pdflatex --version build: script: - pdflatex doc.tex tags: - docker
That seems to provide a solution but it takes forever to install (around 30 minutes per build) the full version of
texlive to use it in the system. Also, note that the simple solution of installing
texlive (without all the packages) still results on errors as some packages may be needed that are not in this lightweight installation.
So, is there a way of running (La)TeX (and friends) out of the box with the default share runners provided by Gitlab?
What is (and how) the best way to create
Also, if the installation of
texliveis a viable solution, is there a way to avoid installing everything every single time?