forked from mattock/openvpn-buildbot
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
44 lines (35 loc) · 1.33 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
ARG MY_NAME="buildmaster"
ARG MY_VERSION="v2.7.2"
ARG IMAGE=buildbot/buildbot-master:v3.11.9
FROM $IMAGE
LABEL maintainer="OpenVPN Community Project"
EXPOSE 8010/tcp
EXPOSE 9989/tcp
ENV BASEDIR=/var/lib/buildbot/masters/default
RUN mkdir -p $BASEDIR
# Required for latent docker buildslaves
RUN . /buildbot_venv/bin/activate && pip install treq docker==5.0.3 || false
RUN set -ex; \
apt-get update || false
COPY buildmaster/buildbot.tac $BASEDIR
COPY buildmaster/start_buildmaster.sh $BASEDIR
COPY buildmaster/*.cfg $BASEDIR/
COPY buildmaster/master*.ini $BASEDIR/
COPY buildmaster/worker*.ini $BASEDIR/
COPY buildmaster/build-openvpn-gui.ps1 $BASEDIR
COPY buildmaster/msbuild-x64.bat $BASEDIR
COPY buildmaster/msbuild-x64_x86.bat $BASEDIR
COPY buildmaster/msbuild-x64_arm64.bat $BASEDIR
COPY buildmaster/sign-binaries.bat $BASEDIR
COPY buildmaster/debian-*.sh $BASEDIR/
COPY buildmaster/debian-*.py $BASEDIR/
COPY buildmaster/debian-changelog.tmpl $BASEDIR/
COPY buildmaster/import-signing-cert.ps1 $BASEDIR/
COPY buildmaster/authenticode.pfx $BASEDIR/
ADD buildmaster/openvpn $BASEDIR/openvpn
ADD buildmaster/openvpn3 $BASEDIR/openvpn3
ADD buildmaster/openvpn3-linux $BASEDIR/openvpn3-linux
ADD buildmaster/ovpn-dco $BASEDIR/ovpn-dco
COPY scripts/ensure-tun-is-present.sh $BASEDIR
WORKDIR $BASEDIR
CMD dumb-init $BASEDIR/start_buildmaster.sh