Improve ./up syntax

This commit is contained in:
Myve 2024-07-23 05:47:32 +00:00
commit 59c77784f3
3 changed files with 62 additions and 18 deletions

View file

@ -5,7 +5,23 @@
# docker build . \
# --build-arg debug=${debug:-""} \
# --tag ${buildtag:-myvnc/novnc}
case ${1} in
build) docker compose up --build --detach;;
*) docker compose up --detach;;
esac
# Grab options
while [ ${1} ]
do
case ${1} in
-b | --build | b | build )
build="--build"
;;
-d | --detach | d | detach )
detach="--detach"
;;
bd | db )
build="--build"
detach="--detach"
;;
esac
shift
done
# Compose up
docker compose up ${build} ${detach}