Bug 1492128: Add `VOLUME` definitions to base debian images; r=gps a=release
authorTom Prince <mozilla@hocat.ca>
Tue, 30 Oct 2018 18:26:04 +0000
changeset 501017 c3105c9e0647782a6cecc6a12dcd653a87720fc9
parent 501016 2db0ba9693400ee26ea3071079f2fde51142457a
child 501018 4a8f26b29962f52103234709f16c3875d48336ed
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps, release
bugs1492128
milestone64.0
Bug 1492128: Add `VOLUME` definitions to base debian images; r=gps a=release For tasks that only need python, the base images are sufficient. The in-tree code verifies that the caches are setup as volumes in the image being used, so set the caches in the base images as well. Differential Revision: https://phabricator.services.mozilla.com/D10148
taskcluster/docker/debian-base/Dockerfile
--- a/taskcluster/docker/debian-base/Dockerfile
+++ b/taskcluster/docker/debian-base/Dockerfile
@@ -8,16 +8,20 @@ RUN mkdir /builds && \
     groupadd -g 1000 worker && \
     useradd -u 1000 -g 1000 -d /builds/worker -s /bin/bash -m worker && \
     mkdir -p /builds/worker/workspace && \
     chown -R worker:worker /builds
 
 # Declare default working folder
 WORKDIR /builds/worker
 
+VOLUME /builds/worker/checkouts
+VOLUME /builds/worker/workspace
+VOLUME /builds/worker/tooltool-cache
+
 # Set variable normally configured at login, by the shells parent process, these
 # are taken from GNU su manual
 ENV HOME=/builds/worker \
     SHELL=/bin/bash \
     USER=worker \
     LOGNAME=worker \
     HOSTNAME=taskcluster-worker \
     DEBIAN_FRONTEND=noninteractive