frappy/ci/Dockerfile
Björn Pedersen 21fa01ff03 Use correct locale
Change-Id: Ic35065a2bbbbb2fdb3036a7e2a4da97e9b4fed07
Reviewed-on: https://forge.frm2.tum.de/review/18946
Reviewed-by: Bjoern Pedersen <bjoern.pedersen@frm2.tum.de>
Tested-by: Bjoern Pedersen <bjoern.pedersen@frm2.tum.de>
2018-09-26 09:52:10 +02:00

48 lines
1.4 KiB
Docker

FROM debian:8 AS base
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade && \
apt-get install --no-install-recommends --no-install-suggests -y \
gcc \
git \
openssh-client \
make \
locales \
python \
python-dev \
python-pytango \
python-virtualenv \
virtualenv
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV LANGUAGE=C.UTF-8
# Add user jenkins to the image
RUN groupadd -g 1001 jenkins && \
useradd -m -u 1001 -g 1001 -d /home/jenkins2 -s /bin/bash jenkins && \
mkdir /home/jenkins && chown jenkins:jenkins /home/jenkins && \
echo "jenkins:jenkins" | chpasswd
USER jenkins
RUN virtualenv /home/jenkins/secopvenv && \
git clone https://forge.frm2.tum.de/review/sine2020/secop/playground /home/jenkins/playground && \
. /home/jenkins/secopvenv/bin/activate && \
pip install -U pip wheel setuptools && \
pip install -r /home/jenkins/playground/requirements-dev.txt -r /home/jenkins/playground/requirements.txt && \
rm -rf /home/jenkins/playground
FROM base AS docs
ENV DEBIAN_FRONTEND=noninteractive
USER root
RUN apt-get update && \
apt-get install -y --no-install-suggests --no-install-recommends \
texlive-latex-extra \
texlive-latex-base \
texlive-latex-recommended \
texlive-fonts-recommended \
texlive-base \
texlive-binaries \
latexmk