This commit is contained in:
Wolfgang Hottgenroth 2020-09-23 17:06:20 +02:00
commit d520eb1c05
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4
5 changed files with 63 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*~
.*~

25
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,25 @@
image: wollud1969/docker-bash:latest
stages:
- build
variables:
IMAGE_NAME: registry.hottis.de/dockerized/build-env-latex
HUB_IMAGE_NAME: wollud1969/build-env-latex
build:
stage: build
tags:
- hottis
- linux
- docker
script:
- VERSION=`cat VERSION`
- docker build --tag $IMAGE_NAME:latest --tag $IMAGE_NAME:$VERSION --tag $HUB_IMAGE_NAME:$VERSION --tag $HUB_IMAGE_NAME:latest .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $IMAGE_NAME:latest
- docker push $IMAGE_NAME:$VERSION
- docker login -u $DOCKER_HUB_LOGIN -p $DOCKER_HUB_PASSWORD
- docker push $HUB_IMAGE_NAME:latest
- docker push $HUB_IMAGE_NAME:$VERSION

26
Dockerfile Normal file
View File

@ -0,0 +1,26 @@
FROM registry.hottis.de/dockerized/base-build-env:0.3.0
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName="registry.hottis.de/dockerized/build-env-latex"
LABEL AlternativeImageName="wollud1969/build-env-latex"
ARG ACROTEX_URL="http://mirrors.ctan.org/macros/latex/contrib/acrotex.zip"
ENV TEXINPUTS "~/texmf//:"
RUN \
apt-get update && \
apt-get install -y texlive-full && \
rm -rf /var/lib/apt/lists/* && \
cd /tmp && \
wget $ACROTEX_URL && \
tlmgr init-usertree && \
unzip acrotex.zip && \
mv acrotex ~/texmf && \
pushd ~/texmf/acrotex && \
latex acrotex.ins && \
popd

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.1.0

9
readme.md Normal file
View File

@ -0,0 +1,9 @@
## Build image for build containers with LaTeX
Based on base-build-env
Contains additionally:
* texlive
* acrotex