Skip to content

Commit

Permalink
fix: update bacalhau install script to use go v1.21.8
Browse files Browse the repository at this point in the history
  • Loading branch information
frrist committed Mar 21, 2024
1 parent 0948775 commit 8697f00
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions ops/marketplace-tf/modules/instance_files/install-bacalhau.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function install-bacalhau-dependencies() {
echo "Installing Bacalhau dependencies..."
apt-update
install-apt-dependencies
install-golang
install-earthly
}

Expand Down Expand Up @@ -139,4 +140,18 @@ function install-earthly() {
}
}

function install-golang() {
# Install go
export HOME=/root
export GOCACHE="$HOME/.cache/go-build"
export GOPATH="/root/go"
export PATH="$PATH:$GOPATH/bin:/usr/local/go/bin"
sudo mkdir -p "$GOPATH"

sudo rm -fr /usr/local/go /usr/local/bin/go
curl --silent --show-error --location --fail 'https://go.dev/dl/go1.21.8.linux-amd64.tar.gz' | sudo tar --extract --gzip --file=- --directory=/usr/local
sudo ln -s /usr/local/go/bin/go /usr/local/bin/go
go version
}

install-bacalhau "$@"
2 changes: 1 addition & 1 deletion ops/marketplace-tf/vars.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requester_machine_type ="e2-standard-8"
compute_machine_type = "e2-standard-8"
compute_count = 2

gcp_boot_image = "projects/forrest-dev-407420/global/images/bacalhau-ubuntu-2204-lts-test-latest"
gcp_boot_image = "projects/bacalhau-dev/global/images/bacalhau-v1-2-2-ubuntu-2204-lts"
gcp_project_id = "forrest-dev-407420"
gcp_region = "us-west1"
gcp_zone = "us-west1-b"
Expand Down

0 comments on commit 8697f00

Please sign in to comment.