commit 9f398169af96587813de5920b0e44ce85e39903f Author: Thomas Klaehn Date: Tue Aug 13 14:59:53 2019 +0200 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..59fadaf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,46 @@ +FROM alpine:latest + +RUN apk update +RUN apk add --no-cache \ + bash \ + build-base \ + cppcheck \ + gcc \ + git \ + libftdi1-dev \ + openssl-dev \ + perl \ + perl-dev \ + python3 \ + python3-dev \ + py3-pip \ + zlib-dev + +# add perl modules +RUN echo "yes" | perl -MCPAN -e shell +RUN echo "install PerlIO:gzip" | perl -MCPAN -e shell +RUN echo "install JSON" | perl -MCPAN -e shell + +# lcov isn't available as apk packet... +RUN git clone https://github.com/linux-test-project/lcov.git && \ + cd lcov && \ + make install + +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 + +RUN mkdir /worker && chown buildbot:buildbot /worker + +USER buildbot +WORKDIR /worker + +RUN buildbot-worker create-worker . nuc buildbot-cpp-worker pass + +ENTRYPOINT ["/usr/bin/buildbot-worker"] +CMD ["start", "--nodaemon"] +