2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
6 # Bring up a docker container with some locally-built commands (e.g.,
7 # cmd/arvados-server) replacing the ones that came with
8 # arvados-server-easy when the arvados-installpackage-* image was
11 # Assumes docker-build-install.sh has already succeeded.
15 # docker-boot.sh cmd/arvados-server services/keep-balance
20 while [[ $# -gt 0 ]]; do
33 if [[ -n "${tmpdir}" ]]; then
40 version=$(git describe --tag --dirty)
43 for inject in "$@"; do
46 volargs+=(-v "$(pwd)/sdk/python/tests/$inject:/var/lib/arvados/share/$inject:ro")
49 echo >&2 "building $inject..."
50 (cd $inject && GOBIN=$tmpdir go install -ldflags "-X git.arvados.org/arvados.git/lib/cmd.version=${version} -X main.version=${version}")
51 cmd="$(basename "$inject")"
52 volargs+=(-v "$tmpdir/$cmd:/var/lib/arvados/bin/$cmd:ro")
58 installimage=arvados-installpackage-${osbase}
59 command="/var/lib/arvados/bin/arvados-server boot -listen-host 0.0.0.0"
60 if [[ "${opts[shell]}" ]]; then
66 bash -c "/etc/init.d/postgresql start && /var/lib/arvados/bin/arvados-server init -cluster-id x1234 && $command"