refactoring: rename packer templates and the resulting images to make it
[arvados-dev.git] / jenkins / packer-images / jenkins-image-arvados-tests.sh
1 #!/bin/bash
2
3 # Copyright (C) The Arvados Authors. All rights reserved.
4 #
5 # SPDX-License-Identifier: Apache-2.0
6
7 set -eo pipefail
8
9 # Install the dependencies for arvados-server
10 sudo su -c "DEBIAN_FRONTEND=noninteractive apt-get install -y libpam0g-dev golang-1.14"
11
12 # Check out a local copy of the arvados repo so we can use it to install the dependencies
13 cd /usr/src
14 sudo git clone arvados.git
15 cd arvados
16 /usr/lib/go-1.14/bin/go mod download
17 sudo /usr/lib/go-1.14/bin/go run ./cmd/arvados-server install -type test
18
19 # Our Jenkins jobs use this directory to store the temporary files for the tests
20 mkdir /home/jenkins/tmp