summaryrefslogtreecommitdiff
path: root/utils/docker/scripts/run_buildbot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/docker/scripts/run_buildbot.sh')
-rwxr-xr-xutils/docker/scripts/run_buildbot.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/utils/docker/scripts/run_buildbot.sh b/utils/docker/scripts/run_buildbot.sh
index 45f5a1cf6..c135fc4af 100755
--- a/utils/docker/scripts/run_buildbot.sh
+++ b/utils/docker/scripts/run_buildbot.sh
@@ -5,9 +5,14 @@ BOT_DIR=/b
BOT_NAME=$1
BOT_PASS=$2
-mkdir -p $BOT_DIR
+pushd /tmp
+curl -sSO https://dl.google.com/cloudagents/install-monitoring-agent.sh
+bash install-monitoring-agent.sh
+curl -sSO https://dl.google.com/cloudagents/install-logging-agent.sh
+bash install-logging-agent.sh --structured
+popd
-#curl "https://repo.stackdriver.com/stack-install.sh" | bash -s -- --write-gcm
+mkdir -p $BOT_DIR
apt-get update -y
apt-get upgrade -y
@@ -15,9 +20,9 @@ apt-get upgrade -y
# FIXME(EricWF): Remove this hack. It's only in place to temporarily fix linking libclang_rt from the
# debian packages.
# WARNING: If you're not a buildbot, DO NOT RUN!
-apt-get install lld-8
+apt-get install lld-9
rm /usr/bin/ld
-ln -s /usr/bin/lld-8 /usr/bin/ld
+ln -s /usr/bin/lld-9 /usr/bin/ld
systemctl set-property buildslave.service TasksMax=100000
@@ -59,4 +64,4 @@ grep "slave is ready" $BOT_DIR/twistd.log || shutdown now
# Gracefully restart before that happen.
sleep 72000
while pkill -SIGHUP buildslave; do sleep 5; done;
-shutdown now \ No newline at end of file
+shutdown now