9e10041d201f820f4f885cdd934f4dbcb9429335
[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 pip3 install -U pip
30 RUN \
31 pip3 install \
32 "buildbot-www==$BUILDBOT_VERSION" \
33 "buildbot-waterfall-view==$BUILDBOT_VERSION" \
34 "buildbot-console-view==$BUILDBOT_VERSION" \
35 "buildbot-grid-view==$BUILDBOT_VERSION" \
36 pyOpenSSL \
37 service_identity
38
39 ENV LANG=en_US.utf8
40
41 COPY docker/buildmaster/files/entry.sh /entry.sh
42 COPY docker/buildmaster/files/start.sh /start.sh
43 COPY phase1 /phase1
44 COPY phase2 /phase2
45 COPY scripts /scripts
46
47 RUN \
48 groupadd buildbot && \
49 useradd \
50 --create-home --home-dir /master \
51 --comment "OpenWrt buildbot" \
52 --gid buildbot --shell /bin/bash buildbot && \
53 chown buildbot:buildbot /master && \
54 chmod 0755 /entry.sh /start.sh
55
56 VOLUME [ "/master" ]
57 ENTRYPOINT [ "/entry.sh" ]
58 CMD [ "start" ]