--- /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-v20210420",
+ "zone": "us-central1-b",
+ "disk_size": "20",
+ "image_name": "jenkins-image-arvados-formula-tests-{{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-arvados-formula-tests.sh"
+ }
+ ]
+}
--- /dev/null
+#!/bin/bash
+
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+set -eo pipefail
+
+# Install the dependencies for the package building/testing jobs
+sudo su -c "DEBIAN_FRONTEND=noninteractive apt-get install -y docker.io git ruby ruby-dev make gcc g++"
+sudo usermod -a -G docker jenkins
+
+cd /tmp
+wget -c https://git.arvados.org/arvados-formula.git/blob_plain/refs/heads/main:/Gemfile
+wget -c https://git.arvados.org/arvados-formula.git/blob_plain/refs/heads/main:/Gemfile.lock
+sudo su -c "gem install bundler"
+sudo su -c "bundler install"
+sudo su -c "gem install kitchen-docker"