You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2021/08/19 07:43:54 UTC
[cloudstack] branch main updated: Possiblity to choose between
docker and podman from the command line (#5217)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new eec43a4 Possiblity to choose between docker and podman from the command line (#5217)
eec43a4 is described below
commit eec43a4c53917b800d9b05ff5685d159ab90f706
Author: j-porsche <j....@ewerk.com>
AuthorDate: Thu Aug 19 09:43:34 2021 +0200
Possiblity to choose between docker and podman from the command line (#5217)
* Possiblity to choose between docker and podman from the command line
* Update docker.sh
---
ui/docker.sh | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/ui/docker.sh b/ui/docker.sh
index 2af7570..3a6b0b4 100755
--- a/ui/docker.sh
+++ b/ui/docker.sh
@@ -29,5 +29,20 @@ DATE="$(date --iso-8601=seconds)"
LABEL_DATE="--label \"org.opencontainers.image.created=${DATE}\""
GIT_REV="$(git rev-parse HEAD)"
LABEL_GIT_REV="--label \"org.opencontainers.image.revision=${GIT_REV}\""
-
+USE_PODMAN=0
+USE_DOCKER=0
+OPTIONS='pd'
+while getopts $OPTIONS OPTION
+do
+ case "$OPTION" in
+ p)USE_PODMAN=1;;
+ d)USE_DOCKER=1;;
+ *)echo "Please choose between -p for podman or -d for docker."
+ exit;;
+ esac
+done
+if [[ $USE_PODMAN -eq 1 ]]; then
+ podman build -t cloudstack-ui ${LABEL_DATE} ${LABEL_GIT_REV} ${LABEL_GIT_TAG} .
+ exit
+fi
docker build -t cloudstack-ui ${LABEL_DATE} ${LABEL_GIT_REV} ${LABEL_GIT_TAG} .