For running our tests, FUSE must be configured with the
[arvados-dev.git] / jenkins / packer-images / jenkins-image-arvados-tests.sh
index c2a9a8f8fe7ae9b60569793f01ca9e136df40444..b673ecf0eef6510e833addc457dccf5bfd58b951 100755 (executable)
@@ -9,6 +9,14 @@ set -eo pipefail
 # Install the dependencies for arvados-server
 sudo su -c "DEBIAN_FRONTEND=noninteractive apt-get install -y libpam0g-dev wget build-essential"
 
+# Install docker (used in our tests and also for package building/testing)
+sudo su -c "DEBIAN_FRONTEND=noninteractive apt-get install -y docker.io make wget dpkg-dev createrepo unzip"
+sudo usermod -a -G docker jenkins
+
+# FUSE must be configured with the 'user_allow_other' option enabled for Crunch to set up Keep mounts that are readable by containers.
+# This is used in our test suite.
+echo user_allow_other | sudo tee -a /etc/fuse.conf
+
 # Check out a local copy of the arvados repo so we can use it to install the dependencies
 cd /usr/src
 sudo git clone arvados.git
@@ -37,3 +45,9 @@ mkdir /home/jenkins/tmp
 sudo chown jenkins:jenkins /home/jenkins -R
 sudo chown jenkins:jenkins /usr/src/arvados -R
 sudo -u jenkins ./build/run-tests.sh WORKSPACE=/usr/src/arvados --temp /home/jenkins/tmp --only install
+
+# Install the arvados-dev repo where the jenkins `test-provision-multinode` job
+# expects it
+cd /usr/local
+sudo git clone --depth 1 https://github.com/arvados/arvados-dev
+sudo chown -R jenkins:jenkins /usr/local/arvados-dev/