From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- testing/docker/decision/Dockerfile | 28 ++++++++++++++++++++++++++++ testing/docker/decision/README.md | 5 +++++ testing/docker/decision/REGISTRY | 1 + testing/docker/decision/VERSION | 1 + testing/docker/decision/system-setup.sh | 29 +++++++++++++++++++++++++++++ 5 files changed, 64 insertions(+) create mode 100644 testing/docker/decision/Dockerfile create mode 100644 testing/docker/decision/README.md create mode 100644 testing/docker/decision/REGISTRY create mode 100644 testing/docker/decision/VERSION create mode 100644 testing/docker/decision/system-setup.sh (limited to 'testing/docker/decision') diff --git a/testing/docker/decision/Dockerfile b/testing/docker/decision/Dockerfile new file mode 100644 index 000000000..3f58399fd --- /dev/null +++ b/testing/docker/decision/Dockerfile @@ -0,0 +1,28 @@ +FROM ubuntu:16.04 +MAINTAINER Greg Arndt + +# Add worker user +RUN useradd -d /home/worker -s /bin/bash -m worker +RUN mkdir /home/worker/artifacts && chown worker:worker /home/worker/artifacts + +# %include testing/docker/recipes/tooltool.py +ADD topsrcdir/testing/docker/recipes/tooltool.py /tmp/tooltool.py + +# %include testing/mozharness/external_tools/robustcheckout.py +ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py + +# %include testing/docker/recipes/install-mercurial.sh +ADD topsrcdir/testing/docker/recipes/install-mercurial.sh /tmp/install-mercurial.sh + +ADD system-setup.sh /tmp/system-setup.sh +RUN bash /tmp/system-setup.sh + +# %include testing/docker/recipes/run-task +ADD topsrcdir/testing/docker/recipes/run-task /home/worker/bin/run-task + +ENV PATH /home/worker/bin:$PATH +ENV SHELL /bin/bash +ENV HOME /home/worker + +# Set a default command useful for debugging +CMD ["/bin/bash", "--login"] diff --git a/testing/docker/decision/README.md b/testing/docker/decision/README.md new file mode 100644 index 000000000..4490880be --- /dev/null +++ b/testing/docker/decision/README.md @@ -0,0 +1,5 @@ +# Decision Tasks + +The decision image is a "boostrapping" image for the in tree logic it +deals with cloning gecko and the related utilities for providing an +environment where we can run gecko. diff --git a/testing/docker/decision/REGISTRY b/testing/docker/decision/REGISTRY new file mode 100644 index 000000000..cb1e1bb48 --- /dev/null +++ b/testing/docker/decision/REGISTRY @@ -0,0 +1 @@ +taskcluster diff --git a/testing/docker/decision/VERSION b/testing/docker/decision/VERSION new file mode 100644 index 000000000..11808190d --- /dev/null +++ b/testing/docker/decision/VERSION @@ -0,0 +1 @@ +0.1.7 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 -- cgit v1.2.3