Commit c371b180 authored by Adrian C. Hinrichs's avatar Adrian C. Hinrichs
Browse files

Merge branch 'docker' into 'master'

Dockerize everything

See merge request !27
parents 4ecc7694 f14e13a2
Pipeline #123153 passed with stage
in 3 minutes and 4 seconds
stages:
- build
variables:
# When using dind service we need to instruct docker, to talk with the
# daemon started inside of the service. The daemon is available with
# a network connection instead of the default /var/run/docker.sock socket.
#
# The 'docker' hostname is the alias of the service container as described at
# https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#accessing-the-services
#
# Note that if you're using Kubernetes executor, the variable should be set to
# tcp://localhost:2375 because of how Kubernetes executor connects services
# to the job container
DOCKER_HOST: tcp://docker:2375/
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
DOCKER_DRIVER: overlay2
services:
- docker:dind
build testing:
image: docker:stable-dind
stage: build
only:
- dev
- docker
script:
- echo "$CI_JOB_TOKEN" | docker login registry.git.rwth-aachen.de --username gitlab-ci-token --password-stdin
- docker build -t registry.git.rwth-aachen.de/achinrichs/latex-templates:testing ./docker/testing/
- docker push registry.git.rwth-aachen.de/achinrichs/latex-templates:testing
build latest:
image: docker:stable-dind
stage: build
only:
- master
script:
- echo "$CI_JOB_TOKEN" | docker login registry.git.rwth-aachen.de --username gitlab-ci-token --password-stdin
- docker build -t registry.git.rwth-aachen.de/achinrichs/latex-templates:latest ./docker/latest/
- docker push registry.git.rwth-aachen.de/achinrichs/latex-templates:latest
\ No newline at end of file
FROM debian:latest FROM thomasweise/texlive:latest
RUN apt-get update
RUN apt-get install -y wget
RUN apt-get install -y texlive-full
RUN apt-get install -y fonts-adf-gillius
RUN wget https://git.rwth-aachen.de/ACHinrichs/LaTeX-templates/-/archive/master/LaTeX-templates-master.tar.gz RUN wget https://git.rwth-aachen.de/ACHinrichs/LaTeX-templates/-/archive/master/LaTeX-templates-master.tar.gz
RUN tar xzf LaTeX-templates-master.tar.gz RUN tar xzf LaTeX-templates-master.tar.gz
RUN mkdir -p ~/texmf/tex/latex/local RUN mkdir -p ~/texmf/tex/latex/local
RUN mv LaTeX-templates-master ~/texmf/tex/latex/local/ RUN mv LaTeX-templates-master ~/texmf/tex/latex/local/
RUN texhash RUN texhash
RUN wget http://www.gust.org.pl/projects/e-foundry/tex-gyre/adventor/qag2_501bas.zip
RUN unzip qag2_501bas.zip -d ~/.fonts
RUN wget http://www.gust.org.pl/projects/e-foundry/tex-gyre/pagella/qpl2_501bas.zip
RUN unzip qpl2_501bas.zip -d ~/.fonts
RUN wget https://www.fontsquirrel.com/fonts/download/fira-mono
RUN unzip fira-mono -d ~/.fonts
RUN fc-cache -fv
\ No newline at end of file
FROM thomasweise/texlive:latest
RUN wget https://git.rwth-aachen.de/ACHinrichs/LaTeX-templates/-/archive/dev/LaTeX-templates-dev.tar.gz
RUN tar xzf LaTeX-templates-dev.tar.gz
RUN mkdir -p ~/texmf/tex/latex/local
RUN mv LaTeX-templates-dev ~/texmf/tex/latex/local/
RUN texhash
RUN wget http://www.gust.org.pl/projects/e-foundry/tex-gyre/adventor/qag2_501bas.zip
RUN unzip qag2_501bas.zip -d ~/.fonts
RUN wget http://www.gust.org.pl/projects/e-foundry/tex-gyre/pagella/qpl2_501bas.zip
RUN unzip qpl2_501bas.zip -d ~/.fonts
RUN wget https://www.fontsquirrel.com/fonts/download/fira-mono
RUN unzip fira-mono -d ~/.fonts
RUN fc-cache -fv
\ No newline at end of file
Markdown is supported
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