Bug 1432392 - Switch the spidermonkey rust bindings job to a Debian-based docker image. r?dustin draft
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 26 Jan 2018 11:43:31 +0900
changeset 747512 4bcdcdd12c68b1b36c0d3a4c2ab8b34dd63f3115
parent 747495 c53e26a69d95421ed400d4e22ae2581b3111e22d
child 747513 e0b5709940a4a25ab1ffe5ce819e2d1871e044c9
child 747531 691afd35ec53c5e9d0db4676ef12377a78cd6bca
push id96915
push userbmo:mh+mozilla@glandium.org
push dateFri, 26 Jan 2018 05:59:49 +0000
reviewersdustin
bugs1432392
milestone60.0a1
Bug 1432392 - Switch the spidermonkey rust bindings job to a Debian-based docker image. r?dustin This job requires cmake, which should be fixed, but in the meanwhile, create a separate docker image with it installed, based on the image we use for other spidermonkey builds.
taskcluster/ci/docker-image/kind.yml
taskcluster/ci/spidermonkey/linux.yml
taskcluster/docker/debian7-mozjs-rust-build/Dockerfile
--- a/taskcluster/ci/docker-image/kind.yml
+++ b/taskcluster/ci/docker-image/kind.yml
@@ -55,16 +55,21 @@ jobs:
   debian7-i386-build:
     symbol: I(deb7-32)
     parent: debian7-base
     definition: debian7-build
     packages:
       - deb7-valgrind
     args:
       ARCH: i386
+  debian7-mozjs-rust-build:
+    symbol: I(deb7jsrs)
+    parent: debian7-amd64-build
+    packages:
+      - deb7-cmake
   lint:
     symbol: I(lnt)
   debian9-base:
     symbol: I(deb9-base)
     definition: debian-base
     args:
       DIST: stretch
       BASE_TAG: '20170620'
--- a/taskcluster/ci/spidermonkey/linux.yml
+++ b/taskcluster/ci/spidermonkey/linux.yml
@@ -36,17 +36,17 @@ sm-rust-bindings-linux64/debug:
     description: "Build and test the Rust bindings for SpiderMonkey"
     index:
         job-name: sm-rust-bindings-linux64-debug
     treeherder:
         symbol: SM(rust)
         tier: 2
         platform: linux64/debug
     worker:
-        docker-image: {in-tree: desktop-build}
+        docker-image: {in-tree: debian7-mozjs-rust-build}
     run:
         using: spidermonkey-rust-bindings
         spidermonkey-variant: plain
     run-on-projects: ['integration', 'release', 'try']
 
 sm-plain-linux64/debug:
     description: "Spidermonkey Plain"
     index:
new file mode 100644
--- /dev/null
+++ b/taskcluster/docker/debian7-mozjs-rust-build/Dockerfile
@@ -0,0 +1,12 @@
+# %ARG DOCKER_IMAGE_PARENT
+FROM $DOCKER_IMAGE_PARENT
+MAINTAINER Mike Hommey <mhommey@mozilla.com>
+
+VOLUME /builds/worker/checkouts
+VOLUME /builds/worker/workspace
+VOLUME /builds/worker/tooltool-cache
+
+# %ARG DOCKER_IMAGE_PACKAGES
+RUN /usr/local/sbin/setup_packages.sh $DOCKER_IMAGE_PACKAGES && \
+    apt-get update && \
+    apt-get install cmake