summaryrefslogtreecommitdiff
path: root/deploy/buildbot/worker/start-worker.sh
blob: 286285f7fe4386b10e465d3cf019ea92a4de679b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e
W=${WORKER_DIR:-/worker}
MASTER=${MASTER:-192.168.3.110:9989}
NAME=${WORKER_NAME:-lan-builder}

if [ ! -f "$W/buildbot.tac" ]; then
  PASS=$(cat /run/secrets/worker_pass)
  buildbot-worker create-worker "$W" "$MASTER" "$NAME" "$PASS"
  echo "ketsuban <ketsuban@192.168.3.110>" > "$W/info/admin"
  echo "LAN x64 builder: JDK21 / Android SDK 35 / wasm+native toolchains (gradle caches mounted)" > "$W/info/host"
fi

# No audio daemon is started: the image ships the client libraries only (see
# Dockerfile.worker), so there is nothing to launch here. Previously this ran
# `pulseaudio --exit-idle-time=-1 -D`; that is gone with the server package.
exec buildbot-worker start --nodaemon "$W"