taler-deployment

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

make-buildbot-containerworker.sh (535B)


      1 #!/bin/bash
      2 
      3 # Bootstrap the Taler setup for the container-worker.
      4 
      5 set -eu
      6 
      7 if ! test "container-worker" = $(whoami); then
      8   echo Only run as the 'container-worker' user.
      9   exit 1
     10 fi
     11 
     12 export PATH=$HOME/.local/bin:$PATH
     13 
     14 pip install --user --break-system-packages buildbot-worker
     15 
     16 mkdir -p workspace
     17 
     18 if [[ ! -d worker ]];
     19 then
     20   buildbot-worker create-worker --umask=0o22 ~/worker 127.0.0.1:19989 container-worker container-pass
     21   echo $HOSTNAME > worker/info/host
     22   echo "GNUnet.org admins <admin@gnunet.org>" > worker/info/admin
     23 fi