From 25d5782e20130184283f5f894939baa35a939899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20St=C3=A4ding?= Date: Wed, 24 Apr 2024 11:55:30 +0200 Subject: [PATCH 1/6] Teamcity dockerfile --- teamcity-agent.Dockerfile | 61 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 teamcity-agent.Dockerfile diff --git a/teamcity-agent.Dockerfile b/teamcity-agent.Dockerfile new file mode 100644 index 0000000..7abcfda --- /dev/null +++ b/teamcity-agent.Dockerfile @@ -0,0 +1,61 @@ +FROM jetbrains/teamcity-agent:2023.11.4 + +USER root + +RUN apt-get update && \ + # basic utilities for TeX Live installation + apt-get install -qy --no-install-recommends curl git unzip wget \ + # miscellaneous dependencies for TeX Live tools + make fontconfig perl default-jre libgetopt-long-descriptive-perl \ + libdigest-perl-md5-perl libncurses6 \ + # for latexindent (see #13) + libunicode-linebreak-perl libfile-homedir-perl libyaml-tiny-perl \ + # for eps conversion (see #14) + ghostscript \ + # for metafont (see #24) + libsm6 \ + python3 \ + # for gnuplot backend of pgfplots (see !13) + gnuplot-nox \ + # algotex stuff + librsvg2-bin nodejs imagemagick && \ + rm -rf /var/lib/apt/lists/* && \ + rm -rf /var/cache/apt/ && \ + # bad fix for python handling + ln -s /usr/bin/python3 /usr/bin/python + +# Install newer version of pygments + +RUN git clone https://github.com/pygments/pygments +WORKDIR pygments +RUN pip install -e . + +# Install TeX Live + +RUN mkdir /tmp/install-tex-live +WORKDIR /tmp/install-tex-live + +RUN wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz +RUN tar -xzf install-tl-unx.tar.gz +RUN rm install-tl-unx.tar.gz +RUN mv install-tl-* install-tl +WORKDIR install-tl +RUN perl ./install-tl --no-interaction --scheme=full --no-doc-install --no-src-install + +ENV PATH="${PATH}:/usr/local/texlive/2023/bin/x86_64-linux" + +# Install AlgoTeX + +RUN sed -i "s/rights=\"none\" pattern=\"PDF\"/rights=\"read|write\" pattern=\"PDF\"/" /etc/ImageMagick-6/policy.xml +RUN sed -i "s/rights=\"none\" pattern=\"PS\"/rights=\"read|write\" pattern=\"PS\"/" /etc/ImageMagick-6/policy.xml +RUN sed -i "s/rights=\"none\" pattern=\"SVG\"/rights=\"read|write\" pattern=\"SVG\"/" /etc/ImageMagick-6/policy.xml +RUN mkdir -p "$(kpsewhich -var-value=TEXMFDIST)/tex/latex/local" \ + && curl -o tuda_logo.svg -L https://upload.wikimedia.org/wikipedia/de/2/24/TU_Darmstadt_Logo.svg\?download \ + && rsvg-convert -f pdf -o tuda_logo.pdf tuda_logo.svg \ + && mv tuda_logo.pdf "$(kpsewhich -var-value=TEXMFDIST)/tex/latex/local" \ + && texhash --verbose +# Install AlgoTeX +WORKDIR /AlgoTeX +COPY . . +RUN l3build install --full +WORKDIR / From 4907631b920190a0cba0eb5965282d64f6c9c9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20St=C3=A4ding?= Date: Fri, 17 May 2024 13:28:31 +0200 Subject: [PATCH 2/6] Update teamcity-agent base image to 2024.03.1 --- teamcity-agent.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teamcity-agent.Dockerfile b/teamcity-agent.Dockerfile index 7abcfda..04aed9d 100644 --- a/teamcity-agent.Dockerfile +++ b/teamcity-agent.Dockerfile @@ -1,4 +1,4 @@ -FROM jetbrains/teamcity-agent:2023.11.4 +FROM jetbrains/teamcity-agent:2024.03.1 USER root From 88443f317f2490319071dca4a0fa0f6842ce0a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20St=C3=A4ding?= Date: Fri, 17 May 2024 13:40:39 +0200 Subject: [PATCH 3/6] Fix indentation --- teamcity-agent.Dockerfile | 40 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/teamcity-agent.Dockerfile b/teamcity-agent.Dockerfile index 04aed9d..daa17a5 100644 --- a/teamcity-agent.Dockerfile +++ b/teamcity-agent.Dockerfile @@ -3,26 +3,26 @@ FROM jetbrains/teamcity-agent:2024.03.1 USER root RUN apt-get update && \ - # basic utilities for TeX Live installation - apt-get install -qy --no-install-recommends curl git unzip wget \ - # miscellaneous dependencies for TeX Live tools - make fontconfig perl default-jre libgetopt-long-descriptive-perl \ - libdigest-perl-md5-perl libncurses6 \ - # for latexindent (see #13) - libunicode-linebreak-perl libfile-homedir-perl libyaml-tiny-perl \ - # for eps conversion (see #14) - ghostscript \ - # for metafont (see #24) - libsm6 \ - python3 \ - # for gnuplot backend of pgfplots (see !13) - gnuplot-nox \ - # algotex stuff - librsvg2-bin nodejs imagemagick && \ - rm -rf /var/lib/apt/lists/* && \ - rm -rf /var/cache/apt/ && \ - # bad fix for python handling - ln -s /usr/bin/python3 /usr/bin/python + # basic utilities for TeX Live installation + apt-get install -qy --no-install-recommends curl git unzip wget \ + # miscellaneous dependencies for TeX Live tools + make fontconfig perl default-jre libgetopt-long-descriptive-perl \ + libdigest-perl-md5-perl libncurses6 \ + # for latexindent (see #13) + libunicode-linebreak-perl libfile-homedir-perl libyaml-tiny-perl \ + # for eps conversion (see #14) + ghostscript \ + # for metafont (see #24) + libsm6 \ + python3 \ + # for gnuplot backend of pgfplots (see !13) + gnuplot-nox \ + # algotex stuff + librsvg2-bin nodejs imagemagick && \ + rm -rf /var/lib/apt/lists/* && \ + rm -rf /var/cache/apt/ && \ + # bad fix for python handling + ln -s /usr/bin/python3 /usr/bin/python # Install newer version of pygments From 3957000fe513c4046f979fc1a2cd8a5563fa8fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20St=C3=A4ding?= Date: Fri, 17 May 2024 14:20:00 +0200 Subject: [PATCH 4/6] Fix python issues --- teamcity-agent.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teamcity-agent.Dockerfile b/teamcity-agent.Dockerfile index daa17a5..37b70cd 100644 --- a/teamcity-agent.Dockerfile +++ b/teamcity-agent.Dockerfile @@ -14,7 +14,7 @@ RUN apt-get update && \ ghostscript \ # for metafont (see #24) libsm6 \ - python3 \ + python3 python3-pip\ # for gnuplot backend of pgfplots (see !13) gnuplot-nox \ # algotex stuff @@ -28,7 +28,7 @@ RUN apt-get update && \ RUN git clone https://github.com/pygments/pygments WORKDIR pygments -RUN pip install -e . +RUN pip install . # Install TeX Live From 67c4a1c1e53ac0a294aa2420abfda78cc0f9e525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20St=C3=A4ding?= Date: Fri, 17 May 2024 14:21:53 +0200 Subject: [PATCH 5/6] Fix texlive year --- teamcity-agent.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teamcity-agent.Dockerfile b/teamcity-agent.Dockerfile index 37b70cd..febc254 100644 --- a/teamcity-agent.Dockerfile +++ b/teamcity-agent.Dockerfile @@ -42,7 +42,7 @@ RUN mv install-tl-* install-tl WORKDIR install-tl RUN perl ./install-tl --no-interaction --scheme=full --no-doc-install --no-src-install -ENV PATH="${PATH}:/usr/local/texlive/2023/bin/x86_64-linux" +ENV PATH="${PATH}:/usr/local/texlive/2024/bin/x86_64-linux" # Install AlgoTeX From 540e4c0fb2eb37e477b6d58189724d8c5ef47d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20St=C3=A4ding?= Date: Sun, 26 May 2024 00:06:04 +0200 Subject: [PATCH 6/6] Add inkscape package --- teamcity-agent.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teamcity-agent.Dockerfile b/teamcity-agent.Dockerfile index febc254..ef8a1fe 100644 --- a/teamcity-agent.Dockerfile +++ b/teamcity-agent.Dockerfile @@ -18,7 +18,7 @@ RUN apt-get update && \ # for gnuplot backend of pgfplots (see !13) gnuplot-nox \ # algotex stuff - librsvg2-bin nodejs imagemagick && \ + librsvg2-bin nodejs imagemagick inkscape && \ rm -rf /var/lib/apt/lists/* && \ rm -rf /var/cache/apt/ && \ # bad fix for python handling