cc85aabc90c15c3df250e2ce03076c17319f93ab
[buildbot.git] / docker / buildmaster / Dockerfile
1 FROM debian:10
2 MAINTAINER OpenWrt Maintainers
3
4 ARG DEBIAN_FRONTEND=noninteractive
5 ARG BUILDBOT_VERSION=2.10.1
6
7 ENV BUILDMASTER_CONFIG config.ini
8 ENV BUILDMASTER_PHASE 1
9
10 USER root
11
12 RUN \
13 apt-get update && \
14 apt-get install -y \
15 build-essential \
16 gawk \
17 git-core \
18 gosu \
19 libncurses5-dev \
20 locales \
21 signify-openbsd \
22 pv \
23 pwgen \
24 python3-pip \
25 wget && \
26 apt-get clean && \
27 localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
28
29 RUN \
30 pip3 install \
31 "buildbot-www==$BUILDBOT_VERSION" \
32 "buildbot-waterfall-view==$BUILDBOT_VERSION" \
33 "buildbot-console-view==$BUILDBOT_VERSION" \
34 "buildbot-grid-view==$BUILDBOT_VERSION" \
35 pyOpenSSL \
36 service_identity
37
38 ENV LANG=en_US.utf8
39
40 COPY docker/buildmaster/files/entry.sh /entry.sh
41 COPY docker/buildmaster/files/start.sh /start.sh
42 COPY phase1 /phase1
43 COPY phase2 /phase2
44 COPY scripts /scripts
45
46 RUN \
47 groupadd buildbot && \
48 useradd \
49 --create-home --home-dir /master \
50 --comment "OpenWrt buildbot" \
51 --gid buildbot --shell /bin/bash buildbot && \
52 chown buildbot:buildbot /master && \
53 chmod 0755 /entry.sh /start.sh
54
55 VOLUME [ "/master" ]
56 ENTRYPOINT [ "/entry.sh" ]
57 CMD [ "start" ]