From 316bd935d43fa3a1a99678569928ed81cd670d2b Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Thu, 15 Aug 2019 11:40:13 +0200 Subject: [PATCH] Initial commit. --- Dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..30e6015 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +FROM alpine:latest + +RUN apk update +RUN apk add --no-cache \ + build-base \ + docker \ + git \ + python3 \ + python3-dev \ + py3-pip + +RUN if [ ! -e /usr/bin/python ]; then ln -f /usr/bin/python3 /usr/bin/python ; fi +RUN if [ ! -e /usr/bin/pip ]; then ln -f /usr/bin/pip3 /usr/bin/pip ; fi + +RUN yes | pip install --upgrade pip + +RUN yes | pip install 'buildbot-worker' + +RUN addgroup -S buildbot && adduser -S -G buildbot buildbot && adduser buildbot docker + +#RUN mkdir /worker && chown buildbot:buildbot /worker + +#USER buildbot +WORKDIR /worker + +RUN buildbot-worker create-worker . nuc buildbot-docker-worker pass + +ENTRYPOINT ["/usr/bin/buildbot-worker"] +CMD ["start", "--nodaemon"] +