Skip to content
Snippets Groups Projects
Commit 5ce451d7 authored by Jari-Matti Mäkelä's avatar Jari-Matti Mäkelä
Browse files

Fix issues with missing fonts + fontconfig, eps2pdf, and pandoc/minted. Switch...

Fix issues with missing fonts + fontconfig, eps2pdf, and pandoc/minted. Switch cmd order so it's cheaper to reconfigure tex packages
parent c28ac58c
No related branches found
No related tags found
No related merge requests found
# see https://hub.docker.com/repository/docker/konttipoju/tinytex # see https://hub.docker.com/repository/docker/konttipoju/tinytex
image: konttipoju/tinytex:2020-04a image: konttipoju/tinytex:2020-06c
# build latex/thesis.tex -> latex/thesis.pdf using pdflatex # build latex/thesis.tex -> latex/thesis.pdf using pdflatex
# shell-escape functionality is required by the minted package # shell-escape functionality is required by the minted package
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# files. In addition, minted requires some tuning to support different # files. In addition, minted requires some tuning to support different
# output directories. # output directories.
image: konttipoju/tinytex:2020-04a image: konttipoju/tinytex:2020-06c
stages: stages:
- prepare - prepare
......
...@@ -6,9 +6,13 @@ ENV DEBIAN_FRONTEND noninteractive ...@@ -6,9 +6,13 @@ ENV DEBIAN_FRONTEND noninteractive
# combine into one run command to reduce image size # combine into one run command to reduce image size
RUN mkdir -p /usr/share/man/man1 && apt-get update && \ RUN mkdir -p /usr/share/man/man1 && apt-get update && \
apt-get install -y perl wget libfontconfig1 openjdk-11-jre-headless poppler-utils python3-pygments pandoc && \ apt-get install -y perl wget libfontconfig1 fontconfig ghostscript openjdk-11-jre-headless poppler-utils python3-pygments python3-pandocfilters pandoc-citeproc pandoc && \
wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh && \ wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh && \
apt-get clean apt-get clean && ln -s /usr/bin/python3 /usr/bin/python
RUN wget http://ftdev.utu.fi/downloads/resources/greenfield-apps-1.15.0-SNAPSHOT.jar -O /validator.jar && \
echo 'java -cp /validator.jar org.verapdf.apps.GreenfieldCliWrapper --format text -v "$@"' > /root/bin/pdfa-validate && \
chmod +x /root/bin/pdfa-validate
ENV PATH="${PATH}:/root/bin" ENV PATH="${PATH}:/root/bin"
...@@ -20,9 +24,4 @@ RUN tlmgr install adjustbox collectbox biblatex tracklang biblatex-ieee csquotes ...@@ -20,9 +24,4 @@ RUN tlmgr install adjustbox collectbox biblatex tracklang biblatex-ieee csquotes
fontawesome chessboard skak glossaries datenumber datetime advdate multido todonotes \ fontawesome chessboard skak glossaries datenumber datetime advdate multido todonotes \
semantic syntax wasysym dashrule titlecaps pdfx ifnextok xmpincl blindtext minted \ semantic syntax wasysym dashrule titlecaps pdfx ifnextok xmpincl blindtext minted \
fvextra catchfile includernw algorithm2e shapepar hanging sectionbox euro nag nomencl \ fvextra catchfile includernw algorithm2e shapepar hanging sectionbox euro nag nomencl \
filecontents zref && tlmgr path add filecontents zref collection-fontsrecommended collection-fontsextra epstopdf && tlmgr path add
RUN wget http://ftdev.utu.fi/downloads/resources/greenfield-apps-1.15.0-SNAPSHOT.jar -O /validator.jar && \
echo 'java -cp /validator.jar org.verapdf.apps.GreenfieldCliWrapper --format text -v "$@"' > /root/bin/pdfa-validate && \
chmod +x /root/bin/pdfa-validate
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment