Unverified Commit 2e9033e9 authored by Jean-Noël Grad's avatar Jean-Noël Grad Committed by GitHub

Merge pull request #127 from jngrad/fix-3038

Fix issues with tutorials deployment
parents 4b312095 acc4c99d
Pipeline #8929 failed with stages
in 35 minutes and 33 seconds
......@@ -26,7 +26,8 @@ RUN apt-get update && apt-get install -y \
curl \
wget \
jq \
ffmpeg
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# install Python3 packages required for tutorials
RUN python3 -m pip install --upgrade pip \
......@@ -34,12 +35,11 @@ RUN python3 -m pip install --upgrade pip \
&& pip3 install --upgrade six scipy matplotlib jupyter ipython nbconvert lxml 'sphinx!=2.1.0' sphinxcontrib-bibtex numpydoc
# install TeXlive 2019 from a PPA
RUN apt-get install -y --no-install-recommends software-properties-common \
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common \
&& add-apt-repository -y ppa:jonathonf/texlive \
&& apt-get update \
&& apt-get install -y --no-install-recommends texlive-latex-recommended texlive-fonts-recommended
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
&& apt-get install -y --no-install-recommends texlive-latex-recommended texlive-fonts-recommended \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m espresso && usermod -a -G www-data espresso
USER espresso
......@@ -47,7 +47,8 @@ USER espresso
# install extra LaTeX packages locally
RUN tlmgr init-usertree \
&& tlmgr option repository http://ftp.fau.de/ctan/systems/texlive/tlnet \
&& tlmgr install pgf tikz-3dplot revtex units mhchem chemgreek todonotes upquote framed subfigure cleveref \
&& tlmgr install pgf tikz-3dplot revtex units mhchem chemgreek todonotes upquote framed subfigure cleveref 2>&1 | tee $HOME/tlmgr.log \
&& if [ "$(grep 'TLPDB::from_file could not download' $HOME/tlmgr.log)" != "" ]; then exit 1; else rm $HOME/tlmgr.log; fi \
&& tlmgr install lm stmaryrd 2>&1 || : \
&& updmap -user
......
......@@ -26,7 +26,7 @@ RUN apt-get update && apt-get install -y \
vim \
ccache \
graphviz \
&& pip3 install --upgrade sphinxcontrib-bibtex 'sphinx!=2.1.0' \
&& pip3 install --upgrade lxml sphinxcontrib-bibtex 'sphinx!=2.1.0' \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
......
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