Initial commit.
This commit is contained in:
commit
316bd935d4
30
Dockerfile
Normal file
30
Dockerfile
Normal file
@ -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"]
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user