Skip to content
Snippets Groups Projects
Commit 95234ea5 authored by Sam Yaple's avatar Sam Yaple
Browse files

Additional option to cleanup even failed containers

Also support --pull flag to pull the latest version of the base

Change-Id: I3205d6e799772138edaf2b0666353c19dfbf52f0
parent 56e72a6b
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,9 @@ Options: ...@@ -18,7 +18,9 @@ Options:
--namespace, -n <namespace> --namespace, -n <namespace>
--tag, -t <tag> --tag, -t <tag>
--push, -p --push, -p
--force-rm, -f
--no-cache, -N --no-cache, -N
--pull, -u
--release --release
--no-use-released-parent --no-use-released-parent
EOF EOF
...@@ -27,7 +29,7 @@ EOF ...@@ -27,7 +29,7 @@ EOF
[ -f $TOPDIR/.buildconf ] && . $TOPDIR/.buildconf [ -f $TOPDIR/.buildconf ] && . $TOPDIR/.buildconf
[ -f $IMGDIR/.buildconf ] && . $IMGDIR/.buildconf [ -f $IMGDIR/.buildconf ] && . $IMGDIR/.buildconf
ARGS=$(getopt -o hn:t:pN -l help,namespace:,push,release,tag:,no-cache,no-use-released-parent -- "$@") || { usage >&2; exit 2; } ARGS=$(getopt -o hn:t:pfuN -l help,namespace:,push,pull,release,tag:,force-rm,no-cache,no-use-released-parent -- "$@") || { usage >&2; exit 2; }
eval set -- "$ARGS" eval set -- "$ARGS"
...@@ -50,6 +52,13 @@ while :; do ...@@ -50,6 +52,13 @@ while :; do
(--push|-p) PUSH=1 (--push|-p) PUSH=1
;; ;;
(--pull|-u) BUILDFLAGS="${BUILDFLAGS} --pull=true"
;;
(--force-rm|-f)
BUILDFLAGS="${BUILDFLAGS} --force-rm=true"
;;
(--no-cache|-N) (--no-cache|-N)
BUILDFLAGS="${BUILDFLAGS} --no-cache" BUILDFLAGS="${BUILDFLAGS} --no-cache"
;; ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment