Bug 1279040 - Move 'run-wizard' binary out of docker image, r?dustin
The run-wizard binary (used by interactive workers) will likely need to
change relatively frequently. Therefore, it should be baked directly into
the docker image. This patch instead downloads it from the appropriate
commit on hg.mozilla.org, only when needed.
MozReview-Commit-ID: 70hlloywCSj
rename from testing/docker/desktop-test/bin/run-wizard
rename to taskcluster/scripts/tester/run-wizard
--- a/testing/docker/desktop-test/taskcluster-interactive-shell
+++ b/testing/docker/desktop-test/taskcluster-interactive-shell
@@ -1,10 +1,22 @@
#!/usr/bin/env bash
-/home/worker/bin/run-wizard;
+
+download() {
+ name=`basename $1`
+ url=${GECKO_HEAD_REPOSITORY}/raw-file/${GECKO_HEAD_REV}/$1
+ if ! curl --fail --silent -o ./$name --retry 10 $url; then
+ fail "failed downloading $1 from ${GECKO_HEAD_REPOSITORY}"
+ fi
+}
+
+cd $HOME/bin;
+download taskcluster/scripts/tester/run-wizard;
+chmod +x run-wizard;
+./run-wizard;
SPAWN="$SHELL";
-
if [ "$SHELL" = "bash" ]; then
SPAWN="bash -li";
fi;
+cd $HOME;
exec $SPAWN;