blob: 8d21245eaeb0ce6bcc14d6cddda9baf6ea1b6ef8 (
plain)
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
|
FROM debian:11
MAINTAINER OpenWrt Maintainers
ARG DEBIAN_FRONTEND=noninteractive
ARG BUILDBOT_VERSION=2.10.1
ARG OPENWRT_VERSION=unknown
ENV BUILDMASTER_CONFIG config.ini
ENV BUILDMASTER_PHASE 1
USER root
RUN \
apt-get update && \
apt-get install -y \
build-essential \
gawk \
git-core \
gosu \
libncurses5-dev \
locales \
pv \
pwgen \
python3-pip \
signify-openbsd \
wget && \
apt-get clean && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
RUN pip3 install -U pip
RUN \
pip3 install \
"buildbot==$BUILDBOT_VERSION" \
"buildbot-www==$BUILDBOT_VERSION" \
"buildbot-waterfall-view==$BUILDBOT_VERSION" \
"buildbot-console-view==$BUILDBOT_VERSION" \
"buildbot-grid-view==$BUILDBOT_VERSION" \
"buildbot-worker==$BUILDBOT_VERSION" \
pyOpenSSL \
service_identity
RUN \
sed -i \
's/Welcome to buildbot/Welcome to OpenWrt buildbot/' \
/usr/local/lib/python*/dist-packages/buildbot_www/static/scripts.js
RUN \
sed -i \
"s;\"col-sm-12\"><ul><li ng-repeat;\"col-sm-12\"><ul><li>OpenWrt version: <a href=\"https://git.openwrt.org/$OPENWRT_VERSION\">$OPENWRT_VERSION</a></li><li ng-repeat;" \
/usr/local/lib/python*/dist-packages/buildbot_www/static/scripts.js
ENV LANG=en_US.utf8
COPY docker/buildmaster/files/entry.sh /entry.sh
COPY docker/buildmaster/files/start.sh /start.sh
COPY phase1 /phase1
COPY phase2 /phase2
COPY scripts /scripts
RUN \
groupadd buildbot && \
useradd \
--create-home --home-dir /master \
--comment "OpenWrt buildbot" \
--gid buildbot --shell /bin/bash buildbot && \
chown buildbot:buildbot /master && \
chmod 0755 /entry.sh /start.sh
VOLUME [ "/master" ]
ENTRYPOINT [ "/entry.sh" ]
CMD [ "start" ]
|