19146: Remove unneeded special case checks, explain the needed one.
[arvados.git] / lib / install / example_from_scratch.sh
1 #!/bin/bash
2
3 set -e -o pipefail
4
5 # Starting with a base debian buster system, like "docker run -it
6 # debian:10"...
7
8 apt update
9 apt upgrade
10 apt install --no-install-recommends build-essential ca-certificates git golang
11 git clone https://git.arvados.org/arvados.git
12 cd arvados
13 [[ -e lib/install ]] || git checkout origin/16053-install-deps
14 cd cmd/arvados-server
15 go run ./cmd/arvados-server install -type test
16 pg_isready || pg_ctlcluster 11 main start # only needed if there's no init process (as in docker)
17 build/run-tests.sh