Bug 1293737 - Move ubuntu1204-test's system-setup.sh to recipes; r?dustin draft
authorGregory Szorc <gps@mozilla.com>
Tue, 09 Aug 2016 11:32:22 -0700
changeset 398794 57ed3949afc15436566dc2add90d37c4ace5470f
parent 398793 82eba2e77c35de3026ee1c501dc43d13b57df508
child 398795 da77c928ed1f2411625a354f328adad257d6d837
push id25628
push userbmo:gps@mozilla.com
push dateTue, 09 Aug 2016 18:38:55 +0000
reviewersdustin
bugs1293737
milestone51.0a1
Bug 1293737 - Move ubuntu1204-test's system-setup.sh to recipes; r?dustin In preparation for deleting this image. MozReview-Commit-ID: Iu9vifGgGE0
testing/docker/recipes/ubuntu1204-test-system-setup.sh
testing/docker/ubuntu1204-test/Dockerfile
testing/docker/ubuntu1204-test/system-setup.sh
rename from testing/docker/ubuntu1204-test/system-setup.sh
rename to testing/docker/recipes/ubuntu1204-test-system-setup.sh
--- a/testing/docker/ubuntu1204-test/system-setup.sh
+++ b/testing/docker/recipes/ubuntu1204-test-system-setup.sh
@@ -264,9 +264,9 @@ update-alternatives --install /usr/bin/g
 
 # clean up
 apt_packages+=('mesa-common-dev')
 
 cd /
 rm -rf /setup ~/.ccache ~/.cache ~/.npm
 apt-get clean
 apt-get autoclean
-rm $0
+rm -f $0
--- a/testing/docker/ubuntu1204-test/Dockerfile
+++ b/testing/docker/ubuntu1204-test/Dockerfile
@@ -6,18 +6,19 @@ WORKDIR /home/worker
 
 # %include testing/docker/recipes/tooltool.py
 ADD topsrcdir/testing/docker/recipes/tooltool.py /setup/tooltool.py
 
 # %include testing/docker/recipes/install-mercurial.sh
 ADD topsrcdir/testing/docker/recipes/install-mercurial.sh /tmp/install-mercurial.sh
 
 # install non-build specific dependencies in a single layer
-ADD           system-setup.sh   /tmp/system-setup.sh
-RUN           bash /tmp/system-setup.sh
+# %include testing/docker/recipes/ubuntu1204-test-system-setup.sh
+ADD topsrcdir/testing/docker/recipes/ubuntu1204-test-system-setup.sh /setup/system-setup.sh
+RUN           bash /setup/system-setup.sh
 
 # %include testing/docker/recipes/run-task
 ADD topsrcdir/testing/docker/recipes/run-task /home/worker/bin/run-task
 
 # Set variable normally configured at login, by the shells parent process, these
 # are taken from GNU su manual
 ENV           HOME          /home/worker
 ENV           SHELL         /bin/bash