Skip to content

Commit

Permalink
Merge pull request #261 from veraison/ubuntu-bootstrap-with-arch
Browse files Browse the repository at this point in the history
fix(deployment): make bootstrap architecture-aware
  • Loading branch information
thomas-fossati authored Aug 27, 2024
2 parents 9612d01 + 5dadf35 commit 888a28f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deployments/native/bootstrap/ubuntu.sh
Original file line number Diff line number Diff line change
@@ -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/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
Expand Down

0 comments on commit 888a28f

Please sign in to comment.