diff --git a/deployments/native/bootstrap/ubuntu.sh b/deployments/native/bootstrap/ubuntu.sh index b2fe153f..be899f4a 100755 --- a/deployments/native/bootstrap/ubuntu.sh +++ b/deployments/native/bootstrap/ubuntu.sh @@ -1,14 +1,17 @@ #!/bin/sh # Copyright 2024 Contributors to the Veraison project. # SPDX-License-Identifier: Apache-2.0 + +arch=$(dpkg --print-architecture) + sudo apt update sudo apt install --yes git protobuf-compiler golang-1.22 make gettext sqlite3 openssl jq sudo ln -s /usr/lib/go-1.22/bin/go /usr/local/bin/go sudo ln -s /usr/lib/go-1.22/bin/gofmt /usr/local/bin/gofmt -wget https://dl.smallstep.com/cli/docs-cli-install/latest/step-cli_amd64.deb -O /tmp/step-cli_amd64.deb -sudo dpkg -i /tmp/step-cli_amd64.deb +wget https://dl.smallstep.com/cli/docs-cli-install/latest/step-cli_${arch}.deb -O /tmp/step-cli_${arch}.deb +sudo dpkg -i /tmp/step-cli_${arch}.deb go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2