Commit 4ae66ed7 authored by Lukas Nagel's avatar Lukas Nagel
Browse files

prepare ci for presentation

parent 260c81bc
Pipeline #140338 passed with stages
in 7 minutes and 13 seconds
......@@ -15,7 +15,14 @@ RUN chmod +x /tmp/install-tlmgr.sh && /tmp/install-tlmgr.sh
# install standalone document class
RUN tlmgr install standalone
# istall latexrun, which needs python3
# install latexrun, which needs python3
RUN apk add --no-cache python3
RUN wget -q https://github.com/aclements/latexrun/raw/master/latexrun -O /bin/latexrun
RUN chmod +x /bin/latexrun
# install fira fonts for a modernish look
COPY install-fira-fonts.sh /tmp/install-fira-fonts.sh
RUN chmod +x /tmp/install-fira-fonts.sh && /tmp/install-fira-fonts.sh
RUN tlmgr install fontawesome
RUN tlmgr install stmaryrd
VERSION=4.106
# Create tmpdir
DIR=$(mktemp -d) ||
(echo "Error while creating temporary directory" 1>&2 && exit -1)
cd $DIR
wget --quiet https://github.com/mozilla/Fira/archive/refs/tags/$VERSION.tar.gz ||
(echo "Error while downloading archive" 1>&2 && exit -1)
tar -xzf $VERSION.tar.gz -C $DIR --strip-components=1 ||
(echo "Error while unpacking archive" 1>&2 && exit -1)
mkdir -p /usr/share/fonts/ttf/ &&
mv $DIR/ttf/* /usr/share/fonts/ttf/
rm -rf $DIR
fc-cache -f /usr/share/fonts/ttf/
# Create tmpdir
DIR=$(mktemp -d) ||
(echo "Error while creating temporary directory" 1>&2 && exit -1)
cd $DIR
# Download & unpack installer
wget --quiet http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz ||
(echo "Error while downloading archive" 1>&2 && exit -1)
mkdir /tmp/install-tl
(echo "Error while creating temporary directory" 1>&2 && exit -1)
tar -xzf install-tl-unx.tar.gz -C /tmp/install-tl --strip-components=1 ||
tar -xzf install-tl-unx.tar.gz -C $DIR --strip-components=1 ||
(echo "Error while unpacking archive" 1>&2 && exit -1)
# install tl
/tmp/install-tl/install-tl --profile=/tmp/texlive-profile.txt ||
echo 'selected_scheme collection-basic' > /tmp/texlive-profile.txt
$DIR/install-tl --profile=/tmp/texlive-profile.txt ||
(echo "Error while installing tlmngr" 1>&2 && exit -1)
# cleanup
rm -rf /tmp/install-tl install-tl-unx.tar.gz
wget --quiet https://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh
chmod +x update-tlmgr-latest.sh && ./update-tlmgr-latest.sh
# update tlmgr
tlmgr update --self ||
(echo "Error while updating tlmngr" 1>&2 && exit -1)
# cleanup
rm -rf $DIR
Supports Markdown
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