Bug 1247168 - Use vendored tooltool in lint image; r=dustin
authorGregory Szorc <gps@mozilla.com>
Fri, 22 Jul 2016 13:04:56 -0700
changeset 331578 f80ee48750419ebad29664c589e8ba8923478021
parent 331577 3ad658f9ddc52694bf5f65de84118e917f7dc607
child 331579 2a31541145b552e564801e7d0d2aacd878a40826
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
Bug 1247168 - Use vendored tooltool in lint image; r=dustin Using our special Dockerfile syntax to include arbitrary files, we include the previously vendored tooltool.py file in the image build context and add it directly from there. No github.com communication needed. MozReview-Commit-ID: J42iXj87LEu
--- a/testing/docker/lint/Dockerfile
+++ b/testing/docker/lint/Dockerfile
@@ -1,18 +1,17 @@
 FROM          ubuntu:16.04
 MAINTAINER    Andrew Halberstadt <ahalberstadt@mozilla.com>
 RUN useradd -d /home/worker -s /bin/bash -m worker
 WORKDIR /home/worker
-# Install tooltool directly from github.
 RUN mkdir /build
-ADD https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py /build/tooltool.py
-RUN chmod +rx /build/tooltool.py
+# %include testing/docker/decision/tooltool.py
+ADD topsrcdir/testing/docker/decision/tooltool.py /build/tooltool.py
 # Install lint packages
 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