infra/image/build.sh: "-s" help fix and cleanup

The help has been fixed for the -s option and the comments about how to
start the container later on has been removed as there will be a script
that is handling this..
This commit is contained in:
Thomas Woerner
2024-09-16 14:26:39 +02:00
parent 80693c431a
commit ad44f11887

View File

@@ -15,7 +15,7 @@ valid_distro() {
usage() {
local prog="${0##*/}"
cat << EOF
usage: ${prog} [-h] [i] distro
usage: ${prog} [-h] [-s] distro
${prog} build a container image to test ansible-freeipa.
EOF
}
@@ -38,7 +38,7 @@ name="ansible-freeipa-image-builder"
hostname="ipaserver.test.local"
# Number of cpus is not available in usptream CI (Ubuntu 22.04).
# cpus="2"
memory="4g"
memory="3g"
quayname="quay.io/ansible-freeipa/upstream-tests"
deploy_server="N"
@@ -115,9 +115,3 @@ then
fi
log info "= DONE: Image created. ="
# For tests:
# podman start "${name}"
# while [ -n "$(podman exec ansible-test systemctl list-jobs | grep -vi "no jobs running")" ]; do echo "waiting.."; sleep 5; done
# # Run tests
# podman stop "${name}"