From a197669c7d77053abf656ae92381c9f2a6721a00 Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer <hugo@buddelmeijer.nl> Date: Thu, 30 Jun 2022 10:06:34 +0200 Subject: [PATCH] Activate conda environment --- dockerfiles/latex-builder/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dockerfiles/latex-builder/Dockerfile b/dockerfiles/latex-builder/Dockerfile index 1061567..22de3fd 100644 --- a/dockerfiles/latex-builder/Dockerfile +++ b/dockerfiles/latex-builder/Dockerfile @@ -9,15 +9,15 @@ FROM ${CI_AWE_IMAGE_BASE}/conda-builder:${CI_AWE_IMAGE_TAG} LABEL version="1.2" LABEL description="Image for building LaTeX documentation through tectonic" -ARG CONDA_PREFIX=/opt/conda - # Compiling the example will let tectonic pull most common LaTeX packages, # thereby increasing continuous integration speed. COPY example.tex /root/example.tex +# Sourcing bashrc activates the base conda environment. # Biber and tectonic need to have matching versions, so it is not feasible to # release the pin on either of them. -RUN ${CONDA_PREFIX}/bin/mamba install "tectonic==0.9.0" texlive-core "malramsay::biber==2.14" \ - && ${CONDA_PREFIX}/bin/tectonic /root/example.tex \ +RUN source ~/.bashrc \ + && mamba install "tectonic==0.9.0" texlive-core "malramsay::biber==2.14" \ + && tectonic /root/example.tex \ && curl -o /usr/local/bin/git-latexdiff https://gitlab.com/git-latexdiff/git-latexdiff/-/raw/1.6.0/git-latexdiff \ && chmod +x /usr/local/bin/git-latexdiff -- GitLab