summaryrefslogtreecommitdiffstats
path: root/build/buildah-astra.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/buildah-astra.sh')
-rw-r--r--build/buildah-astra.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/buildah-astra.sh b/build/buildah-astra.sh
index 1282e28..6f6e7b1 100644
--- a/build/buildah-astra.sh
+++ b/build/buildah-astra.sh
@@ -2,9 +2,12 @@
set -o errexit
-container=$(buildah from pycuda:latest)
+tag=latest
+[ -n "$1" ] && tag="$1"
+
+container=$(buildah from pycuda:$tag)
buildah config --env LANG="C.UTF-8" --env LC_ALL="C.UTF-8" --env TERM="xterm" --env HOME=/ccpi/data $container
buildah run $container bash /root/setup/repos.sh "astra"
-buildah commit --format docker $container astra:latest
+buildah commit --format docker $container astra:$tag