From ea2245b35cbfddb8c7473453b7d977b0a64f61b2 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 8 Sep 2022 02:16:52 +0200 Subject: Update containers to ubuntu 22.04, gcc-12; include perf/gdb; add python libraries for opencv, machine learning, etc. --- build/update.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'build/update.sh') diff --git a/build/update.sh b/build/update.sh index a3dc9ff..6a8ac7a 100644 --- a/build/update.sh +++ b/build/update.sh @@ -3,10 +3,14 @@ set -o errexit image="$1" -[ -n "$image" ] || { echo "Usage: $0 "; exit 1; } +[ -n "$image" ] || { echo "Usage: $0 [tag]"; exit 1; } + +tag=latest +[ -n "$2" ] && tag="$2" + #container=cuda-working-container-15 -container=$(buildah from localhost/${image}) +container=$(buildah from localhost/${image}:${tag}) #buildah run $container bash #exit @@ -15,5 +19,5 @@ buildah config --env CIL_VERSION=19.10 --env HOME=/ccpi/data --env LD_LIBRARY_PA buildah copy $container setup /root/setup buildah run $container bash /root/setup/repos.sh "all" "/root/setup" -#buildah commit --format docker $container ccpi:latest -echo "buildah commit --format docker $container ${image}:latest" +#buildah commit --format docker $container ccpi:${tag} +echo "buildah commit --format docker $container ${image}:${tag}" -- cgit v1.2.3