5 SRC=$(realpath $(dirname ${BASH_SOURCE[0]})/../..)
9 if [[ "${1}" != "--update" ]] || ! docker images --format={{.Repository}} | grep -x ${ctrbase}; then
13 if docker ps -a --format={{.Names}} | grep -x ${ctrname}; then
14 echo >&2 "container name already in use -- another builder running?"
18 (cd ${SRC}/cmd/arvados-server && go install)
19 trap "docker rm --volumes ${ctrname}" ERR
20 docker run -it --name ${ctrname} \
21 -v ${GOPATH:-${HOME}/go}/bin/arvados-server:/bin/arvados-server:ro \
22 -v ${SRC}:/src/arvados:ro \
29 arvados-server install -type test
30 pg_ctlcluster 11 main start
31 cp -a /src/arvados /tmp/
33 rm -rf tmp config.yml database.yml services/api/config/database.yml
35 build/run-tests.sh WORKSPACE=\$PWD --temp /tmp/arvados/tmp --only x"
36 docker commit ${ctrname} ${ctrname}
38 docker rm --volumes ${ctrname}