Skip to content

Commit

Permalink
fix(deployment): make bootstrap architecture-aware
Browse files Browse the repository at this point in the history
The Ubuntu bootstrap script assumes x86 as the target architecture.  When running on Arm, the installation of the step CLI package breaks.
  • Loading branch information
thomas-fossati authored Aug 23, 2024
1 parent 2063e7e commit f40ce72
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 f40ce72

Please sign in to comment.