-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
worker_example.Dockerfile
52 lines (47 loc) · 1.23 KB
/
worker_example.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
45
46
47
48
49
50
51
52
# This is an example worker setup, currently used by the ware-alpine worker.
FROM python:3.6-alpine3.7
ARG WORKER_VERSION=9999
RUN apk update \
&& apk add --no-cache \
ca-certificates \
bzip2-dev \
coreutils \
dpkg-dev dpkg \
expat-dev \
gcc \
gdbm-dev \
git \
libc-dev \
libffi-dev \
libnsl-dev \
libtirpc-dev \
linux-headers \
make \
ncurses-dev \
openssl \
openssl-dev \
pax-utils \
readline-dev \
sqlite-dev \
tcl-dev \
tk \
tk-dev \
xz-dev \
zlib-dev \
xvfb \
&& update-ca-certificates \
&& pip install -U pip setuptools wheel --no-cache-dir \
&& pip install -U "buildbot-worker<=${WORKER_VERSION}" --no-cache-dir \
&& adduser -h /buildbot -S -D buildbot
USER buildbot
WORKDIR /buildbot
ARG BUILDER_NAME=test-worker
ARG BUILDER_PASS=badsecret
ARG BUILDER_MASTER=localhost:9021
ARG BUILDER_INFO="Alpine Linux 3.7 Docker image"
ARG BUILDER_ADMIN="Somebody who should have set BUILDER_ADMIN"
RUN buildbot-worker create-worker buildarea ${BUILDER_MASTER} ${BUILDER_NAME} ${BUILDER_PASS} \
&& echo "${BUILDER_INFO}" > buildarea/info/host \
&& echo "${BUILDER_ADMIN}" > buildarea/info/admin
ENV DISPLAY :99
CMD ["/bin/sh", "-c", "Xvfb $DISPLAY -ac & buildbot-worker start --nodaemon buildarea"]