Iterate docker-stacks
This commit is contained in:
parent
68f453aa8b
commit
1f841558b0
@ -37,6 +37,12 @@ function compose_up_recreate {
|
|||||||
docker-compose up -d --force-recreate -f $STACK_PATH
|
docker-compose up -d --force-recreate -f $STACK_PATH
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_global_args {
|
||||||
|
for arg in $@; do
|
||||||
|
echo "\$arg is $arg"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
function main {
|
function main {
|
||||||
echo "\$@ is $@"
|
echo "\$@ is $@"
|
||||||
echo "Parse global flags"
|
echo "Parse global flags"
|
||||||
@ -54,6 +60,8 @@ function main {
|
|||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
echo "\$NASONLY is $NASONLY"
|
||||||
|
echo "\$LINT is $LINT"
|
||||||
echo "\$OPERATION is $OPERATION"
|
echo "\$OPERATION is $OPERATION"
|
||||||
echo "Determine operation"
|
echo "Determine operation"
|
||||||
case $OPERATION in
|
case $OPERATION in
|
||||||
@ -101,4 +109,4 @@ function main {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
get_global_args "$@"
|
Loading…
Reference in New Issue
Block a user