diff options
Diffstat (limited to 'build/buildah-ccpi.sh')
-rw-r--r-- | build/buildah-ccpi.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build/buildah-ccpi.sh b/build/buildah-ccpi.sh index 661e0ef..6912476 100644 --- a/build/buildah-ccpi.sh +++ b/build/buildah-ccpi.sh @@ -2,9 +2,12 @@ set -o errexit -container=$(buildah from astra:latest) +tag=latest +[ -n "$1" ] && tag="$1" + +container=$(buildah from astra:$tag) buildah config --env LANG="C.UTF-8" --env LC_ALL="C.UTF-8" --env TERM="xterm" --env CIL_VERSION=21.0.0 --env HOME=/ccpi/data --env LD_LIBRARY_PATH="/ccpi/repos/CCPi-Regularisation-Toolkit/src/Core:/ccpi/repos/CCPi-Framework/src/Core" $container buildah run $container bash /root/setup/repos.sh "ccpi" -buildah commit --format docker $container ccpi:latest +buildah commit --format docker $container ccpi:$tag |