From 6213578981a109fdb7a2cbea87e2b8759d3d36b9 Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Wed, 12 Aug 2020 15:51:48 +0200 Subject: [PATCH] Tex compilation wip --- hooks/containerbuild/texlive/add-packages | 7 +++++++ hooks/containerbuild/texlive/add-ressources | 13 ++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100755 hooks/containerbuild/texlive/add-packages mode change 100644 => 100755 hooks/containerbuild/texlive/add-ressources diff --git a/hooks/containerbuild/texlive/add-packages b/hooks/containerbuild/texlive/add-packages new file mode 100755 index 0000000..a50549c --- /dev/null +++ b/hooks/containerbuild/texlive/add-packages @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e + +echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile +echo 'RUN apt-get update && apt-get install --yes --no-install-recommends texlive-full' >> Dockerfile +echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile diff --git a/hooks/containerbuild/texlive/add-ressources b/hooks/containerbuild/texlive/add-ressources old mode 100644 new mode 100755 index 1db0c28..6ffd4e3 --- a/hooks/containerbuild/texlive/add-ressources +++ b/hooks/containerbuild/texlive/add-ressources @@ -2,6 +2,13 @@ set -e -echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile -echo 'RUN apt-get update && apt-get install --yes --no-install-recommends build-essential devscripts equivs python3' >> Dockerfile -echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile + +if [ -e './datasets/fonts' ] +then +for font_file in $(find . -wholename "./datasets/fonts/*.ttf") +do +echo 'COPY datasets/fonts/$font_file /root/.fonts/$font_file' >> Dockerfile +done +fi +exit 0 +