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"]