mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 20:59:02 +02:00

Add a docker compose configuration, allowing to easily create a local autobuilder instance. Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
24 lines
583 B
Bash
24 lines
583 B
Bash
#!/bin/sh
|
|
|
|
chown pokybuild:nogroup /sharedrepo
|
|
chown pokybuild:nogroup /publish
|
|
chown pokybuild:nogroup /home/pokybuild/git/mirror
|
|
chown pokybuild:nogroup /srv/autobuilder
|
|
cd /home/pokybuild/ || exit 1
|
|
|
|
role="$1"
|
|
|
|
if [ "${role}" = "controller" ]; then
|
|
su pokybuild -c "yocto-autobuilder-helper/janitor/ab-janitor" &
|
|
su pokybuild -c "buildbot start yocto-controller"
|
|
#tail -F yocto-controller/twistd.log &
|
|
elif [ "${role}" = "worker" ]; then
|
|
workername="$2"
|
|
su pokybuild -c "buildbot-worker start ${workername}"
|
|
else
|
|
echo "Unexpected role: ${role}"
|
|
exit 2
|
|
fi
|
|
|
|
/bin/bash
|