diff options
author | Suren A. Chilingaryan <csa@ipecompute4.ands.kit.edu> | 2022-09-08 02:16:52 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@ipecompute4.ands.kit.edu> | 2022-09-08 02:16:52 +0200 |
commit | ea2245b35cbfddb8c7473453b7d977b0a64f61b2 (patch) | |
tree | c97fb8c2e4c0f081eeb44cfb360f5d54c577a725 /build/buildah-remote.sh | |
parent | a3f77df3864464fa8cd6fdc613d2cf4bbae39124 (diff) | |
download | ccpi-ea2245b35cbfddb8c7473453b7d977b0a64f61b2.tar.gz ccpi-ea2245b35cbfddb8c7473453b7d977b0a64f61b2.tar.bz2 ccpi-ea2245b35cbfddb8c7473453b7d977b0a64f61b2.tar.xz ccpi-ea2245b35cbfddb8c7473453b7d977b0a64f61b2.zip |
Update containers to ubuntu 22.04, gcc-12; include perf/gdb; add python libraries for opencv, machine learning, etc.
Diffstat (limited to 'build/buildah-remote.sh')
-rw-r--r-- | build/buildah-remote.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/build/buildah-remote.sh b/build/buildah-remote.sh index 5e9d038..7cb0eeb 100644 --- a/build/buildah-remote.sh +++ b/build/buildah-remote.sh @@ -3,9 +3,12 @@ set -o errexit image="$1" -[ -n "$image" ] || { echo "Usage: $0 <astra|ccpi|ufo|tomo|imageX>"; exit 1; } +[ -n "$image" ] || { echo "Usage: $0 <astra|ccpi|ufo|tomo|imageX> [tag]"; exit 1; } -container=$(buildah from ${image}:latest) +tag=latest +[ -n "$2" ] && tag="$2" + +container=$(buildah from ${image}:${tag}) buildah config --port 2222/tcp --port 8888/tcp $container buildah run $container sh -c 'apt-get install -y supervisor' @@ -36,6 +39,6 @@ exitcodes=0 EOF ' -buildah commit --format docker $container ${image}-remote:latest +buildah commit --format docker $container ${image}-remote:${tag} -echo "$container build from ${image} and saved as ${image}-remote" +echo "$container build from ${image}:${tag} and saved as ${image}-remote:${tag}" |