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 498306 c3105c9e0647782a6cecc6a12dcd653a87720fc9
parent 498305 2db0ba9693400ee26ea3071079f2fde51142457a
child 498307 4a8f26b29962f52103234709f16c3875d48336ed
push id10103
push usermozilla@hocat.ca
push dateFri, 02 Nov 2018 16:35:51 +0000
treeherdermozilla-beta@c00f4ecec6e7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps, release
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
--- 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 \