taler-deployment

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

make-buildbot-master.sh (1152B)


      1 #!/bin/bash
      2 
      3 # Bootstrap the Taler setup for the buildmaster.
      4 
      5 set -eu
      6 
      7 if ! test "buildbot-master" = $(whoami); then
      8   echo Only run as the 'buildbot-master' user.
      9   exit 1
     10 fi
     11 
     12 cd
     13 
     14 export PATH=$HOME/.local/bin:$PATH
     15 
     16 pip install --user --break-system-packages buildbot buildbot-www buildbot-profiler buildbot-prometheus buildbot-console-view buildbot-www-react buildbot-grid-view buildbot-enhanced-ui buildbot-react-waterfall-view buildbot-worker buildbot-waterfall-view
     17 
     18 BRANCH=master
     19 REPOS="taler-deployment"
     20 
     21 for component in $REPOS;
     22 do
     23     if ! test -d $HOME/$component;
     24     then
     25         git clone git://git.taler.net/$component.git
     26     fi
     27 done
     28 
     29 for component in $REPOS;
     30 do
     31   echo "Checking out $component to $BRANCH"
     32   git -C $HOME/$component checkout $BRANCH
     33 done
     34 
     35 if [[ ! -d ./master ]];
     36 then
     37     buildbot create-master master
     38     cd master
     39     ln -s ../taler-deployment/buildbot/master.cfg
     40     cd ..
     41 fi
     42 
     43 if [[ ! -d worker ]];
     44 then
     45   buildbot-worker create-worker --umask=0o22 ~/worker 127.0.0.1:9988 buildmaster-worker buildmaster-pass
     46    echo $HOSTNAME > worker/info/host
     47    echo "GNUnet.org admins <admin@gnunet.org>" > worker/info/admin
     48 fi