locales \
pv \
pwgen \
+ python3-venv \
python3-pip \
signify-openbsd \
wget && \
apt-get clean && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
+RUN python3 -m venv /opt/venv
+ENV PATH="/opt/venv/bin:$PATH"
RUN pip3 install -U pip
RUN \
pip3 install \
"buildbot-worker==$BUILDBOT_VERSION" \
pyOpenSSL \
service_identity
+
RUN \
sed -i \
's/Welcome to buildbot/Welcome to OpenWrt buildbot/' \
- /usr/local/lib/python*/dist-packages/buildbot_www/static/scripts.js
+ /opt/venv/lib/python*/site-packages/buildbot_www/static/scripts.js
RUN \
sed -i \
"s;\"col-sm-12\"><ul><li ng-repeat;\"col-sm-12\"><ul><li>OpenWrt version: <a href=\"https://git.openwrt.org/$OPENWRT_VERSION\">$OPENWRT_VERSION</a></li><li ng-repeat;" \
- /usr/local/lib/python*/dist-packages/buildbot_www/static/scripts.js
+ /opt/venv/lib/python*/site-packages/buildbot_www/static/scripts.js
ENV LANG=en_US.utf8
case "${1:-start}" in
reconfig)
- exec /usr/local/bin/buildbot reconfig /master
+ exec /opt/venv/bin/buildbot reconfig /master
;;
start)
case "${BUILDMASTER_PHASE:-1}" in
;;
esac
- /usr/local/bin/buildbot create-master --config=/phase${BUILDMASTER_PHASE:-1}/master.cfg /master
+ /opt/venv/bin/buildbot create-master --config=/phase${BUILDMASTER_PHASE:-1}/master.cfg /master
unset BUILDMASTER_PHASE
rm -f /master/twistd.pid
- exec /usr/local/bin/buildbot start --nodaemon /master
+ exec /opt/venv/bin/buildbot start --nodaemon /master
;;
/*)
exec "$@"
pwgen \
python \
python3 \
+ python3-venv \
python3-pip \
qemu-utils \
rsync \
apt-get clean && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
+RUN python3 -m venv /opt/venv
+ENV PATH="/opt/venv/bin:$PATH"
RUN pip3 install -U pip
RUN pip3 install \
"buildbot-worker==$BUILDBOT_VERSION" \
use_tls=""
[ "$BUILDWORKER_TLS" = 1 ] && use_tls="--use-tls"
-/usr/local/bin/buildbot-worker create-worker --force --umask="0o22" $use_tls /builder \
+/opt/venv/bin/buildbot-worker create-worker --force --umask="0o22" $use_tls /builder \
"$BUILDWORKER_MASTER" "$BUILDWORKER_NAME" "$BUILDWORKER_PASSWORD"
if [ "$BUILDWORKER_TLS" = 1 ]; then
unset BUILDWORKER_ADMIN BUILDWORKER_DESCRIPTION BUILDWORKER_MASTER BUILDWORKER_NAME BUILDWORKER_PASSWORD
rm -f /builder/twistd.pid
-exec /usr/local/bin/buildbot-worker start --nodaemon /builder
+exec /opt/venv/bin/buildbot-worker start --nodaemon /builder