Bug 1216655: clean ~/.npm after installing; r=garndt
authorDustin J. Mitchell <dustin@mozilla.com>
Mon, 21 Mar 2016 16:00:11 +0000
changeset 289731 d1cd0639aa524dd2f04a3111e4a4e051af4a39c7
parent 289730 08e7097a302f34a66812f609d0b53394670b06e2
child 289732 3c4c381012154ce012797db32d312d420cdda50a
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgarndt
bugs1216655
milestone48.0a1
Bug 1216655: clean ~/.npm after installing; r=garndt MozReview-Commit-ID: K7tlIer3Am9
testing/docker/desktop-test/Dockerfile
--- a/testing/docker/desktop-test/Dockerfile
+++ b/testing/docker/desktop-test/Dockerfile
@@ -20,19 +20,20 @@ ADD            https://s3-us-west-2.amaz
 RUN chmod +x /usr/local/bin/linux64-minidump_stackwalk
 
 # allow the worker user to access video devices
 RUN usermod -a -G video worker
 
 RUN mkdir Documents; mkdir Pictures; mkdir Music; mkdir Videos; mkdir artifacts
 
 # install a new enough npm, plus tc-vcs and tc-npm-cache
-RUN npm install -g npm@^2.0.0
-RUN npm install -g taskcluster-vcs@2.3.12
-RUN npm install -g taskcluster-npm-cache@1.1.14
+RUN npm install -g npm@^2.0.0 \
+ && npm install -g taskcluster-vcs@2.3.12 \
+ && npm install -g taskcluster-npm-cache@1.1.14 \
+ && rm -rf ~/.npm
 ENV PATH $PATH:/home/worker/bin
 
 # Remove once running under 'worker' user.  This is necessary for pulseaudio to start
 # XXX: change this back to worker:worker once permissions issues are resolved
 RUN            chown -R root:root /home/worker
 
 
 # TODO Re-enable worker when bug 1093833 lands