3 # Example of using `arvados-server boot` in a script. Bring up a test
4 # cluster, wait for it to come up, fetch something from its discovery
11 kill ${boot_PID} ${consume_stdout_PID}
12 wait ${boot_PID} ${consume_stdout_PID} || true
16 coproc boot (arvados-server boot -type test -config doc/examples/config/zzzzz.yml -own-temporary-database -timeout 20m)
19 read controllerURL <&"${boot[0]}"
21 # Copy coproc's stdout to stderr, to ensure `arvados-server boot`
22 # doesn't get blocked trying to write stdout.
23 exec 7<&"${boot[0]}"; coproc consume_stdout (cat <&7 >&2)
25 keepwebURL=$(curl --silent --fail --insecure "${controllerURL}/discovery/v1/apis/arvados/v1/rest" | jq -r .keepWebServiceUrl)
26 echo >&2 "controller is at $controllerURL"
27 echo >&2 "keep-web is at $keepwebURL"