Bug 1291365 - Use install-mercurial.sh in ubuntu1604-test; r=dustin draft
authorGregory Szorc <gps@mozilla.com>
Fri, 05 Aug 2016 09:23:31 -0700
changeset 398119 b26b500a43087480df7cfeec602c483e42b7b7af
parent 398118 ac9bd88f5b0e11526d16684f447f9633c90166d5
child 398120 f7d04c7259a3ecd9fc3a9d2ea022e4c6013a0a0f
push id25452
push userbmo:gps@mozilla.com
push dateMon, 08 Aug 2016 18:58:02 +0000
reviewersdustin
bugs1291365
milestone51.0a1
Bug 1291365 - Use install-mercurial.sh in ubuntu1604-test; r=dustin MozReview-Commit-ID: EiNT8Lmr8O6
testing/docker/ubuntu1604-test/Dockerfile
testing/docker/ubuntu1604-test/system-setup.sh
--- a/testing/docker/ubuntu1604-test/Dockerfile
+++ b/testing/docker/ubuntu1604-test/Dockerfile
@@ -2,16 +2,19 @@ FROM          ubuntu:16.04
 MAINTAINER    Joel Maher <joel.maher@gmail.com>
 
 RUN useradd -d /home/worker -s /bin/bash -m worker
 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 /setup/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
 
 # 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
--- a/testing/docker/ubuntu1604-test/system-setup.sh
+++ b/testing/docker/ubuntu1604-test/system-setup.sh
@@ -92,20 +92,21 @@ dpkg-reconfigure locales
 
 # set up tooltool (temporarily)
 tooltool_fetch() {
     cat >manifest.tt
     python /setup/tooltool.py fetch
     rm manifest.tt
 }
 
+. /setup/install-mercurial.sh
+
 pip install --upgrade pip
 
 pip install virtualenv
-pip install mercurial
 
 # Install node
 tooltool_fetch <<'EOF'
 [
 {
     "size": 5676610,
     "digest": "ce27b788dfd141a5ba7674332825fc136fe2c4f49a319dd19b3a87c8fffa7a97d86cbb8535661c9a68c9122719aa969fc6a8c886458a0df9fc822eec99ed130b",
     "algorithm": "sha512",