buildmaster: replace horizons with JanitorConfigurator
[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 "buildbot-worker==$BUILDBOT_VERSION" \
37 pyOpenSSL \
38 service_identity
39
40 ENV LANG=en_US.utf8
41
42 COPY docker/buildmaster/files/entry.sh /entry.sh
43 COPY docker/buildmaster/files/start.sh /start.sh
44 COPY phase1 /phase1
45 COPY phase2 /phase2
46 COPY scripts /scripts
47
48 RUN \
49 groupadd buildbot && \
50 useradd \
51 --create-home --home-dir /master \
52 --comment "OpenWrt buildbot" \
53 --gid buildbot --shell /bin/bash buildbot && \
54 chown buildbot:buildbot /master && \
55 chmod 0755 /entry.sh /start.sh
56
57 VOLUME [ "/master" ]
58 ENTRYPOINT [ "/entry.sh" ]
59 CMD [ "start" ]