21700: Install Bundler system-wide in Rails postinst
[arvados.git] / lib / install / example_from_scratch.sh
1 #!/bin/bash
2 #
3 # Copyright (C) The Arvados Authors. All rights reserved.
4 #
5 # SPDX-License-Identifier: AGPL-3.0
6
7 set -e -o pipefail
8
9 # Starting with a base debian bullseye system, like "docker run -it
10 # debian:11"...
11
12 apt update
13 apt upgrade
14 apt install --no-install-recommends build-essential ca-certificates git golang
15 git clone https://git.arvados.org/arvados.git
16 cd arvados/cmd/arvados-server
17 go run ./cmd/arvados-server install -type test
18 pg_isready || pg_ctlcluster 13 main start # only needed if there's no init process (as in docker)
19 build/run-tests.sh