taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 2ef3a0b8b754a172be2dd9eba3539f8320249723
parent 481a01d545728b1eb760523cbbe7d3884d566536
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 12 Jan 2025 15:00:27 +0100

-more scripts

Diffstat:
Mbuildbot/bootstrap-scripts/bootstrap-linkchecker | 0
Abuildbot/make-buildbot-containerworker.sh | 15+++++++++++++++
Msystemd-services/buildbot-worker-container.service | 10++++++----
3 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/buildbot/bootstrap-scripts/bootstrap-linkchecker b/buildbot/bootstrap-scripts/bootstrap-linkchecker diff --git a/buildbot/make-buildbot-containerworker.sh b/buildbot/make-buildbot-containerworker.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Bootstrap the Taler setup for the container-worker. + +set -eu +export PATH=/home/buildbot-master/.local/bin:$PATH + +if ! test "container-worker" = $(whoami); then + echo Only run as the 'container-worker' user. + exit 1 +fi + +if [[ ! -d worker ]]; then + buildbot-worker create-worker --umask=0o22 ~/worker 127.0.0.1:9988 container-worker container-pass +fi diff --git a/systemd-services/buildbot-worker-container.service b/systemd-services/buildbot-worker-container.service @@ -3,10 +3,12 @@ Description=Buildbot worker service for container worker AssertPathExists=/home/container-worker/worker [Service] -WorkingDirectory=/home/container-worker/ -ExecStart=/usr/bin/buildbot-worker start --nodaemon worker -ExecReload=/usr/bin/buildbot-worker restart --nodaemon worker -ExecStop=/usr/bin/buildbot-worker stop worker +User=container-worker +Group=container-worker +WorkingDirectory=~ +ExecStart=/home/buildbot-master/.local/bin/buildbot-worker start --nodaemon worker +ExecReload=/home/buildbot-master/.local/bin/buildbot-worker sighup worker +ExecStop=/home/buildbot-master/.local/bin/buildbot-worker stop worker Restart=always [Install]