Bug 1413976: Build docker images, rather than using indexed images; r?dustin draft
authorTom Prince <mozilla@hocat.ca>
Thu, 19 Oct 2017 11:17:08 -0600
changeset 22975 f76b304ddacaff960b902b16c7d100e41c9e6413
parent 22974 731f391e46d73e4e72cfe44e02c7ef1f1c7c62c9
child 22976 abbddea59127581b95eefa22686f7aa97382d919
push id128
push userbmo:mozilla@hocat.ca
push dateThu, 02 Nov 2017 16:21:46 +0000
reviewersdustin
bugs1413976
Bug 1413976: Build docker images, rather than using indexed images; r?dustin MozReview-Commit-ID: BnEz6K6tjny
taskcluster/ci/docker-image/kind.yml
taskcluster/ci/source-test/mozlint.yml
new file mode 100644
--- /dev/null
+++ b/taskcluster/ci/docker-image/kind.yml
@@ -0,0 +1,22 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+loader: taskgraph.loader.transform:loader
+
+transforms:
+  - taskgraph.transforms.docker_image:transforms
+  - taskgraph.transforms.task:transforms
+
+# make a task for each docker-image we might want.  For the moment, since we
+# write artifacts for each, these are whitelisted, but ideally that will change
+# (to use subdirectory clones of the proper directory), at which point we can
+# generate tasks for every docker image in the directory, secure in the
+# knowledge that unnecessary images will be omitted from the target task graph
+jobs:
+  desktop1604-test:
+    symbol: I(dt16t)
+  desktop-build:
+    symbol: I(db)
+  lint:
+    symbol: I(lnt)
--- a/taskcluster/ci/source-test/mozlint.yml
+++ b/taskcluster/ci/source-test/mozlint.yml
@@ -3,22 +3,18 @@ eslint:
     platform: lint/opt
     treeherder:
         symbol: ES
         kind: test
         tier: 1
     worker-type: aws-provisioner-v1/gecko-t-linux-xlarge
     worker:
         docker-image:
-          indexed: "docker.images.v2.level-3.lint.latest"
+          in-tree: "lint"
         max-run-time: 1800
-        # FIXME: https://bugzilla.mozilla.org/show_bug.cgi?id=1408574
-        volumes:
-        - /builds/worker/checkouts
-        - /builds/worker/.cache
     run:
         using: run-task
         comm-checkout: true
         command: >
             cd /builds/worker/checkouts/gecko/ &&
             cp -r /build/node_modules_eslint node_modules &&
             ln -s ../tools/lint/eslint/eslint-plugin-mozilla node_modules &&
             ln -s ../tools/lint/eslint/eslint-plugin-spidermonkey-js node_modules &&