summaryrefslogtreecommitdiffstats
path: root/taskcluster/docker/decision/system-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'taskcluster/docker/decision/system-setup.sh')
-rw-r--r--taskcluster/docker/decision/system-setup.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/taskcluster/docker/decision/system-setup.sh b/taskcluster/docker/decision/system-setup.sh
new file mode 100644
index 0000000000..f90052565f
--- /dev/null
+++ b/taskcluster/docker/decision/system-setup.sh
@@ -0,0 +1,35 @@
+#!/usr/bin/env bash
+
+set -v -e
+
+test "$(whoami)" == 'root'
+
+apt-get update
+apt-get install -y --force-yes --no-install-recommends \
+ ca-certificates \
+ python \
+ sudo \
+ python3 \
+ python3-yaml \
+ python-psutil \
+ python3-psutil
+
+BUILD=/root/build
+mkdir "$BUILD"
+
+tooltool_fetch() {
+ cat >manifest.tt
+ python2.7 /tmp/tooltool.py fetch
+ rm manifest.tt
+}
+
+cd $BUILD
+# shellcheck disable=SC1091
+. /tmp/install-mercurial.sh
+
+cd /
+rm -rf $BUILD
+apt-get clean
+apt-get autoclean
+rm -rf /var/lib/apt/lists/
+rm "$0"