[ARVADOS] updated: 2.1.0-2308-gb88c34d26
Git user
git at public.arvados.org
Wed Apr 13 19:04:32 UTC 2022
Summary of changes:
tools/compute-images/arvados-images-aws.json | 3 ++-
tools/compute-images/build.sh | 3 +++
tools/compute-images/scripts/base.sh | 3 +--
3 files changed, 6 insertions(+), 3 deletions(-)
via b88c34d26e23ecd991ec9dfed758b7629c1ebeec (commit)
from 3197db7788e10b33fb496bfe86c836382f723ff1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit b88c34d26e23ecd991ec9dfed758b7629c1ebeec
Author: Ward Vandewege <ward at curii.com>
Date: Wed Apr 13 15:04:01 2022 -0400
The compute image building script autodetects the correct Go version to
install.
No issue #
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>
diff --git a/tools/compute-images/arvados-images-aws.json b/tools/compute-images/arvados-images-aws.json
index 94cb24adf..c030ea6af 100644
--- a/tools/compute-images/arvados-images-aws.json
+++ b/tools/compute-images/arvados-images-aws.json
@@ -11,6 +11,7 @@
"public_key_file": "",
"mksquashfs_mem": "",
"nvidia_gpu_support": "",
+ "goversion": "",
"reposuffix": "",
"resolver": "",
"ssh_user": "admin",
@@ -93,6 +94,6 @@
"type": "shell",
"execute_command": "sudo -S env {{ .Vars }} /bin/bash '{{ .Path }}'",
"script": "scripts/base.sh",
- "environment_vars": ["RESOLVER={{user `resolver`}}","REPOSUFFIX={{user `reposuffix`}}","MKSQUASHFS_MEM={{user `mksquashfs_mem`}}","NVIDIA_GPU_SUPPORT={{user `nvidia_gpu_support`}}","CLOUD=aws","AWS_EBS_AUTOSCALE={{user `aws_ebs_autoscale`}}"]
+ "environment_vars": ["RESOLVER={{user `resolver`}}","REPOSUFFIX={{user `reposuffix`}}","MKSQUASHFS_MEM={{user `mksquashfs_mem`}}","NVIDIA_GPU_SUPPORT={{user `nvidia_gpu_support`}}","CLOUD=aws","AWS_EBS_AUTOSCALE={{user `aws_ebs_autoscale`}}","GOVERSION={{user `goversion`}}"]
}]
}
diff --git a/tools/compute-images/build.sh b/tools/compute-images/build.sh
index 769b9a5b5..c589ffa05 100755
--- a/tools/compute-images/build.sh
+++ b/tools/compute-images/build.sh
@@ -286,6 +286,9 @@ if [[ -n "$NVIDIA_GPU_SUPPORT" ]]; then
EXTRA2+=" -var nvidia_gpu_support=$NVIDIA_GPU_SUPPORT"
fi
+GOVERSION=$(grep 'const goversion =' ../../lib/install/deps.go |awk -F'"' '{print $2}')
+EXTRA2+=" -var goversion=$GOVERSION"
+
echo
packer version
echo
diff --git a/tools/compute-images/scripts/base.sh b/tools/compute-images/scripts/base.sh
index 260c5d47e..2bc41e347 100644
--- a/tools/compute-images/scripts/base.sh
+++ b/tools/compute-images/scripts/base.sh
@@ -115,10 +115,9 @@ $SUDO systemctl daemon-reload
$SUDO systemctl disable docker
# Get Go and build singularity
-goversion=1.17.1
mkdir -p /var/lib/arvados
rm -rf /var/lib/arvados/go/
-curl -s https://storage.googleapis.com/golang/go${goversion}.linux-amd64.tar.gz | tar -C /var/lib/arvados -xzf -
+curl -s https://storage.googleapis.com/golang/go${GOVERSION}.linux-amd64.tar.gz | tar -C /var/lib/arvados -xzf -
ln -sf /var/lib/arvados/go/bin/* /usr/local/bin/
singularityversion=3.7.4
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list