-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
75 lines (62 loc) · 2.58 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM sameersbn/ubuntu:16.04.20180124
MAINTAINER Jan Unsleber <j.unsleber@wwu.de>
ENV GITLAB_RUNNER_VERSION=10.1.0 \
GITLAB_RUNNER_USER=gitlab_runner \
GITLAB_RUNNER_HOME_DIR="/home/gitlab_runner"
ENV GITLAB_RUNNER_DATA_DIR="${GITLAB_RUNNER_HOME_DIR}/data"
ENV CA_CERTIFICATES_PATH=''
ENV RUNNER_CONCURRENT=''
ENV CI_SERVER_URL=''
ENV RUNNER_TOKEN=''
ENV RUNNER_EXECUTOR='shell'
ENV RUNNER_DESCRIPTION=gcc7-python2
ENV RUNNER_TAG_LIST=gcc,python
ENV RUNNER_LIMIT=1
ENV RUNNER_DOCKER_MODE='socket'
ENV RUNNER_DOCKER_PRIVATE_REGISTRY_URL=''
ENV RUNNER_DOCKER_PRIVATE_REGISTRY_TOKEN=''
ENV RUNNER_DOCKER_ADDITIONAL_VOLUME=''
ENV RUNNER_OUTPUT_LIMIT='4096'
ENV RUNNER_AUTOUNREGISTER='false'
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E1DD270288B4E6030699E45FA1715D88E1DF1F24 \
&& echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu trusty main" >> /etc/apt/sources.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
git-core openssh-client curl libapparmor1 \
&& wget -O /usr/local/bin/gitlab-runner \
https://gitlab-runner-downloads.s3.amazonaws.com/v${GITLAB_RUNNER_VERSION}/binaries/gitlab-runner-linux-amd64 \
&& chmod 0755 /usr/local/bin/gitlab-runner \
&& adduser --disabled-login --gecos 'GitLab CI Runner' ${GITLAB_RUNNER_USER} \
&& sudo -HEu ${GITLAB_RUNNER_USER} ln -sf ${GITLAB_RUNNER_DATA_DIR}/.ssh ${GITLAB_RUNNER_HOME_DIR}/.ssh \
&& rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh
VOLUME ["${GITLAB_RUNNER_DATA_DIR}"]
WORKDIR "${GITLAB_RUNNER_HOME_DIR}"
ENTRYPOINT ["/sbin/entrypoint.sh"]
# include additional repos
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-add-repository -y ppa:ubuntu-toolchain-r/test
RUN add-apt-repository -y ppa:george-edison55/cmake-3.x
RUN apt-get update
# install build essentials
RUN apt-get install -y --no-install-recommends make cmake \
gfortran-7 gfortran-7-multilib gcc-7 g++-7 \
autotools-dev autoconf libtool automake \
libboost-dev libgmp3-dev liblapack-dev \
doxygen gcovr graphviz
RUN apt-get install -y libboost-python-dev
RUN apt-get install -y locales
# (Re)create links for cmake
RUN rm /usr/bin/gcov
RUN rm /usr/bin/gcc
RUN rm /usr/bin/gfortran
RUN ln -s /usr/bin/gcov-7 /usr/bin/gcov
RUN ln -s /usr/bin/g++-7 /usr/bin/g++
RUN ln -s /usr/bin/gcc-7 /usr/bin/gcc
RUN ln -s /usr/bin/gfortran-7 /usr/bin/gfortran
RUN chown -R ${GITLAB_RUNNER_USER}:${GITLAB_RUNNER_USER} ${GITLAB_RUNNER_HOME_DIR}
RUN locale-gen en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8