Commit 92fce9f2 authored by Lukas Nagel's avatar Lukas Nagel
Browse files

refactor tlmgr installation into script

parent 47e77de9
......@@ -9,12 +9,8 @@ RUN apk add --no-cache make
RUN apk add --no-cache imagemagick
# install tlmgr
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
RUN mkdir /tmp/install-tl
RUN tar -xzf install-tl-unx.tar.gz -C /tmp/install-tl --strip-components=1
RUN /tmp/install-tl/install-tl --profile=/tmp/texlive-profile.txt
RUN rm -rf /tmp/install-tl
RUN tlmgr update --self
COPY install-tlmgr.sh /tmp/install-tlmgr.sh
RUN chmod +x /tmp/install-tlmgr.sh && /tmp/install-tlmgr.sh
# install latexmk
RUN tlmgr install latexmk
......
# 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 ||
(echo "Error while unpacking archive" 1>&2 && exit -1)
# install tl
/tmp/install-tl/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
# update tlmgr
tlmgr update --self ||
(echo "Error while updating tlmngr" 1>&2 && exit -1)
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