packer build jenkins-image-arvados-tests.json
+*** IMAGE FOR RUNNING WB2 TESTS ***
+
+packer build jenkins-image-workbench2.json
+
*** IMAGE FOR RUNNING FEDERATION TESTS ***
packer build jenkins-image-federation-tests.json
--- /dev/null
+{
+ "variables": {
+ "key_file": "{{env `packerbuildkey`}}"
+ },
+ "builders": [
+ {
+ "type": "googlecompute",
+ "account_file": "{{user `key_file` }}",
+ "project_id": "phoenix-project-42-ci",
+ "source_image": "debian-10-buster-v20200714",
+ "zone": "us-central1-b",
+ "disk_size": "20",
+ "image_name": "jenkins-image-workbench2-{{isotime \"20060102150405\"}}",
+ "image_family": "jenkins",
+ "ssh_username": "jenkins"
+ }
+ ],
+ "provisioners": [
+ {
+ "type": "file",
+ "source": "node-ready.sh",
+ "destination": "/tmp/node-ready.sh"
+ },
+ {
+ "type": "shell",
+ "script": "./jenkins-image-common.sh"
+ },
+ {
+ "type": "shell",
+ "script": "./jenkins-image-with-docker.sh"
+ },
+ {
+ "type": "shell",
+ "script": "./jenkins-image-workbench2.sh"
+ }
+ ]
+}
--- /dev/null
+#!/bin/bash
+
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+set -eo pipefail
+
+# Get the wb2 repository
+cd /usr/src
+sudo git clone https://git.arvados.org/arvados-workbench2.git
+
+# Build the workbench2-build docker image
+cd arvados-workbench2
+sudo make workbench2-build-image
+
+cd ..
+sudo rm -rf arvados-workbench2