From d520eb1c0563d015c864ee13ffc7e91993dc7e0b Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 23 Sep 2020 17:06:20 +0200 Subject: [PATCH] initial --- .gitignore | 2 ++ .gitlab-ci.yml | 25 +++++++++++++++++++++++++ Dockerfile | 26 ++++++++++++++++++++++++++ VERSION | 1 + readme.md | 9 +++++++++ 5 files changed, 63 insertions(+) create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml create mode 100644 Dockerfile create mode 100644 VERSION create mode 100644 readme.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4cf8c91 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +.*~ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..dad8e8b --- /dev/null +++ b/.gitlab-ci.yml @@ -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 + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e05dc22 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM registry.hottis.de/dockerized/base-build-env:0.3.0 + +LABEL Maintainer="Wolfgang Hottgenroth " +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 + + + + diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..6e8bf73 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1.0 diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..09874dd --- /dev/null +++ b/readme.md @@ -0,0 +1,9 @@ +## Build image for build containers with LaTeX + +Based on base-build-env + +Contains additionally: + * texlive + * acrotex + +