3 # Copyright (C) The Arvados Authors. All rights reserved.
5 # SPDX-License-Identifier: AGPL-3.0
9 SRC=$(realpath $(dirname ${BASH_SOURCE[0]})/../..)
13 if [[ "${1}" != "--update" ]] || ! docker images --format={{.Repository}} | grep -x ${ctrbase}; then
17 if docker ps -a --format={{.Names}} | grep -x ${ctrname}; then
18 echo >&2 "container name already in use -- another builder running?"
22 (cd ${SRC}/cmd/arvados-server && go install)
23 trap "docker rm --volumes ${ctrname}" ERR
24 docker run -it --name ${ctrname} \
25 -v ${GOPATH:-${HOME}/go}/bin/arvados-server:/bin/arvados-server:ro \
26 -v ${SRC}:/src/arvados:ro \
33 arvados-server install -type test
34 pg_ctlcluster 11 main start
35 cp -a /src/arvados /tmp/
37 rm -rf tmp config.yml database.yml services/api/config/database.yml
39 build/run-tests.sh WORKSPACE=\$PWD --temp /tmp/arvados/tmp --only x"
40 docker commit ${ctrname} ${ctrname}
42 docker rm --volumes ${ctrname}