1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00
gocsaf/docs/scripts/prepareUbuntuInstanceForITests.sh
Sascha L. Teichmann 05efc82bec
Improve scripts/prepareUbuntuInstanceForITests.sh
* Add code to fetch the lastest Go binary version.
2022-04-21 16:39:56 +02:00

14 lines
419 B
Bash
Executable file

#!/usr/bin/env bash
set -e
# This script prepares a naked Ubuntu 20.04 LTS amd64
# for the csaf_distribution integration tests
# by installing the required packages.
apt install -y make bash sed tar git nginx fcgiwrap gnutls-bin
# Install Go from binary distribution
latest_go="$(curl https://go.dev/VERSION\?m=text).linux-amd64.tar.gz"
curl -O https://dl.google.com/go/$latest_go
tar -C /usr/local -xzf $latest_go