3 # Copyright (C) The Arvados Authors. All rights reserved.
5 # SPDX-License-Identifier: Apache-2.0
9 # Install the dependencies for arvados-server
10 sudo su -c "DEBIAN_FRONTEND=noninteractive apt-get install -y libpam0g-dev wget build-essential"
12 # Docker installed earlier by jenkins-image-with-docker.sh
14 # Check out a local copy of the arvados repo so we can use it to install the dependencies
16 sudo git clone arvados.git
18 if [[ "$GIT_HASH" != "" ]]; then
19 echo "GIT_HASH is set to $GIT_HASH, checking out that revision..."
20 (cd arvados && sudo git checkout $GIT_HASH)
23 # Install the correct version of Go
24 GO_VERSION=`grep 'const goversion =' /usr/src/arvados/lib/install/deps.go |awk -F'"' '{print $2}'`
26 sudo wget https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz
27 sudo tar xzf go${GO_VERSION}.linux-amd64.tar.gz
28 sudo ln -s /usr/src/go/bin/go /usr/local/bin/go-${GO_VERSION}
29 sudo ln -s /usr/src/go/bin/gofmt /usr/local/bin/gofmt-${GO_VERSION}
30 sudo ln -s /usr/local/bin/go-${GO_VERSION} /usr/local/bin/go
31 sudo ln -s /usr/local/bin/gofmt-${GO_VERSION} /usr/local/bin/gofmt
33 # Preseed our dependencies
36 sudo go run ./cmd/arvados-server install -type test
38 # FUSE must be configured with the 'user_allow_other' option enabled for Crunch to set up Keep mounts that are readable by containers.
39 # This is used in our test suite.
40 echo user_allow_other | sudo tee -a /etc/fuse.conf
42 # inotify.max_user_watches set earlier by jenkins-image-with-docker.sh
44 # Our Jenkins jobs use this directory to store the temporary files for the tests
45 mkdir /home/jenkins/tmp
47 # Preseed the run-tests.sh cache. This is a little bit silly (a lot of this
48 # stuff was already done by the call to `./cmd/arvados-server install -type
49 # test` above, but they do not share a cache.
50 sudo chown jenkins:jenkins /home/jenkins -R
51 sudo chown jenkins:jenkins /usr/src/arvados -R
52 sudo -u jenkins ./build/run-tests.sh WORKSPACE=/usr/src/arvados --temp /home/jenkins/tmp --only install
54 # arvados-dev cloned earlier by jenkins-image-with-docker.sh