summaryrefslogtreecommitdiffstats
path: root/testing/docker/decision/system-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testing/docker/decision/system-setup.sh')
-rw-r--r--testing/docker/decision/system-setup.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/docker/decision/system-setup.sh b/testing/docker/decision/system-setup.sh
new file mode 100644
index 000000000..6a8eccfdf
--- /dev/null
+++ b/testing/docker/decision/system-setup.sh
@@ -0,0 +1,29 @@
+#!/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
+
+BUILD=/root/build
+mkdir $BUILD
+
+tooltool_fetch() {
+ cat >manifest.tt
+ python2.7 /tmp/tooltool.py fetch
+ rm manifest.tt
+}
+
+cd $BUILD
+. /tmp/install-mercurial.sh
+
+cd /
+rm -rf $BUILD
+apt-get clean
+apt-get autoclean
+rm $0