Fixes following errors during setup:
buildslave-phase2_1 | Failed to load application: name 'optionsForClientTLS' is not defined
[-] while starting BuildMaster
...
builtins.ModuleNotFoundError: No module named 'OpenSSL'
Signed-off-by: Petr Štetiar <ynezz@true.cz>
"buildbot-www==$BUILDBOT_VERSION" \
"buildbot-waterfall-view==$BUILDBOT_VERSION" \
"buildbot-console-view==$BUILDBOT_VERSION" \
- "buildbot-grid-view==$BUILDBOT_VERSION"
+ "buildbot-grid-view==$BUILDBOT_VERSION" \
+ pyOpenSSL \
+ service_identity
ENV LANG=en_US.utf8
apt-get clean && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
-RUN pip3 install "buildbot-worker==$BUILDBOT_VERSION"
+RUN pip3 install \
+ "buildbot-worker==$BUILDBOT_VERSION" \
+ pyOpenSSL \
+ service_identity
ENV LANG=en_US.utf8
rm -f /builder/buildbot.tac
-/usr/local/bin/buildbot-worker create-worker --force --umask="0o22" /builder \
+use_tls=""
+[ "$BUILDSLAVE_TLS" = 1 ] && use_tls="--use-tls"
+/usr/local/bin/buildbot-worker create-worker --force --umask="0o22" $use_tls /builder \
"$BUILDSLAVE_MASTER" "$BUILDSLAVE_NAME" "$BUILDSLAVE_PASSWORD"
if [ "$BUILDSLAVE_TLS" = 1 ]; then