Change build to build schemes incrementally

Move Dockerfiles from ctan up one folder
This commit is contained in:
Marcel Schwarz 2020-03-28 02:15:43 +01:00
parent 60074f56c6
commit f6aab49533
19 changed files with 51 additions and 186 deletions

View File

@ -14,32 +14,15 @@
## Build Info (Image tree)
```
infraonly
+
|
|
v
minimal
+
|
|
v
basic
+-------+------+
| | |
| | |
v v v
context small gust
+
|
|
v
medium
+
|
+----+---+
v v
full tetex
infraonly (base image with ubuntu:18.04)
+---> minimal
+---> basic
+---> small
+---> context
+---> gust
+---> medium
+---> tetex
+---> full
```
# How to use

3
ctan/Dockerfile.basic Normal file
View File

@ -0,0 +1,3 @@
FROM icaotix/latex:minimal
RUN tlmgr install scheme-basic

3
ctan/Dockerfile.context Normal file
View File

@ -0,0 +1,3 @@
FROM icaotix/latex:small
RUN tlmgr install scheme-context

3
ctan/Dockerfile.full Normal file
View File

@ -0,0 +1,3 @@
FROM icaotix/latex:tetex
RUN tlmgr install scheme-full

3
ctan/Dockerfile.gust Normal file
View File

@ -0,0 +1,3 @@
FROM icaotix/latex:context
RUN tlmgr install scheme-gust

3
ctan/Dockerfile.medium Normal file
View File

@ -0,0 +1,3 @@
FROM icaotix/latex:gust
RUN tlmgr install scheme-medium

3
ctan/Dockerfile.minimal Normal file
View File

@ -0,0 +1,3 @@
FROM icaotix/latex:infraonly
RUN tlmgr install scheme-minimal

3
ctan/Dockerfile.small Normal file
View File

@ -0,0 +1,3 @@
FROM icaotix/latex:basic
RUN tlmgr install scheme-small

3
ctan/Dockerfile.tetex Normal file
View File

@ -0,0 +1,3 @@
FROM icaotix/latex:medium
RUN tlmgr install scheme-tetex

View File

@ -1,20 +0,0 @@
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /data
WORKDIR /data
RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
# Install TexLive with scheme-basic
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir /install-tl-unx \
&& tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \
&& echo "selected_scheme scheme-basic" >> /install-tl-unx/texlive.profile \
&& /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \
&& rm -r /install-tl-unx \
&& rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2019/bin/x86_64-linux:${PATH}"

View File

@ -1,20 +0,0 @@
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /data
WORKDIR /data
RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
# Install TexLive with scheme-context
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir /install-tl-unx \
&& tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \
&& echo "selected_scheme scheme-context" >> /install-tl-unx/texlive.profile \
&& /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \
&& rm -r /install-tl-unx \
&& rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2019/bin/x86_64-linux:${PATH}"

View File

@ -1,20 +0,0 @@
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /data
WORKDIR /data
RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
# Install TexLive with scheme-full
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir /install-tl-unx \
&& tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \
&& echo "selected_scheme scheme-full" >> /install-tl-unx/texlive.profile \
&& /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \
&& rm -r /install-tl-unx \
&& rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2019/bin/x86_64-linux:${PATH}"

View File

@ -1,20 +0,0 @@
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /data
WORKDIR /data
RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
# Install TexLive with scheme-gust
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir /install-tl-unx \
&& tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \
&& echo "selected_scheme scheme-gust" >> /install-tl-unx/texlive.profile \
&& /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \
&& rm -r /install-tl-unx \
&& rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2019/bin/x86_64-linux:${PATH}"

View File

@ -1,20 +0,0 @@
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /data
WORKDIR /data
RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
# Install TexLive with scheme-medium
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir /install-tl-unx \
&& tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \
&& echo "selected_scheme scheme-medium" >> /install-tl-unx/texlive.profile \
&& /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \
&& rm -r /install-tl-unx \
&& rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2019/bin/x86_64-linux:${PATH}"

View File

@ -1,20 +0,0 @@
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /data
WORKDIR /data
RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
# Install TexLive with scheme-minimal
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir /install-tl-unx \
&& tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \
&& echo "selected_scheme scheme-minimal" >> /install-tl-unx/texlive.profile \
&& /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \
&& rm -r /install-tl-unx \
&& rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2019/bin/x86_64-linux:${PATH}"

View File

@ -1,20 +0,0 @@
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /data
WORKDIR /data
RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
# Install TexLive with scheme-small
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir /install-tl-unx \
&& tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \
&& echo "selected_scheme scheme-small" >> /install-tl-unx/texlive.profile \
&& /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \
&& rm -r /install-tl-unx \
&& rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2019/bin/x86_64-linux:${PATH}"

View File

@ -1,20 +0,0 @@
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /data
WORKDIR /data
RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
# Install TexLive with scheme-tetex
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir /install-tl-unx \
&& tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \
&& echo "selected_scheme scheme-tetex" >> /install-tl-unx/texlive.profile \
&& /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \
&& rm -r /install-tl-unx \
&& rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2019/bin/x86_64-linux:${PATH}"

18
script.bat Normal file
View File

@ -0,0 +1,18 @@
docker build -t icaotix/latex:infraonly -f Dockerfile.infraonly .
docker build -t icaotix/latex:minimal -f Dockerfile.minimal .
docker build -t icaotix/latex:basic -f Dockerfile.basic .
docker build -t icaotix/latex:small -f Dockerfile.small .
docker build -t icaotix/latex:context -f Dockerfile.context .
docker build -t icaotix/latex:gust -f Dockerfile.gust .
docker build -t icaotix/latex:medium -f Dockerfile.medium .
docker build -t icaotix/latex:tetex -f Dockerfile.tetex .
docker build -t icaotix/latex:full -f Dockerfile.full .