new script docker-build to preconfigure parameters for docker build, set environment variable DOCKER_USER; fixed path in docker-update
This commit is contained in:
@@ -39,7 +39,7 @@ for f in $*; do
|
||||
echo "upgrading ${name}"
|
||||
IFS="
|
||||
"
|
||||
for param in $(sed -n '/^ *\([^:]\+\): *$/{s//'"${name}"'_\1/;h};/^ *image: */{s///;G;s/\n/ /p}' $file); do
|
||||
for param in $(sed -n '/^ *\([^:]\+\): *$/{s,,'"${name}"'_\1,;h};/^ *image: */{s///;G;s/\n/ /p}' $file); do
|
||||
IFS=" "
|
||||
if [ -z "$limit" ] || [[ "${param}" =~ " ${name}_${limit}" ]]; then
|
||||
echo "....update $param: docker service update -d --image $param"
|
||||
|
Reference in New Issue
Block a user