mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-17 21:26:21 +00:00
Improve ./up syntax
This commit is contained in:
parent
bb228df823
commit
59c77784f3
3 changed files with 62 additions and 18 deletions
24
firefox/up
24
firefox/up
|
|
@ -5,7 +5,23 @@
|
||||||
# docker build . \
|
# docker build . \
|
||||||
# --build-arg debug=${debug:-""} \
|
# --build-arg debug=${debug:-""} \
|
||||||
# --tag ${buildtag:-myvnc/novnc}
|
# --tag ${buildtag:-myvnc/novnc}
|
||||||
case ${1} in
|
# Grab options
|
||||||
build) docker compose up --build --detach;;
|
while [ ${1} ]
|
||||||
*) docker compose up --detach;;
|
do
|
||||||
esac
|
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}
|
||||||
|
|
|
||||||
32
novnc/up
32
novnc/up
|
|
@ -5,14 +5,26 @@
|
||||||
# docker build . \
|
# docker build . \
|
||||||
# --build-arg debug=${debug:-""} \
|
# --build-arg debug=${debug:-""} \
|
||||||
# --tag ${buildtag:-myvnc/novnc}
|
# --tag ${buildtag:-myvnc/novnc}
|
||||||
case ${2} in
|
# Grab options
|
||||||
build) build="--build"
|
while [ ${1} ]
|
||||||
;;
|
do
|
||||||
esac
|
case ${1} in
|
||||||
|
-b | --build | b | build )
|
||||||
|
build="--build"
|
||||||
|
;;
|
||||||
|
-d | --detach | d | detach )
|
||||||
|
detach="--detach"
|
||||||
|
;;
|
||||||
|
bd | db )
|
||||||
|
build="--build"
|
||||||
|
detach="--detach"
|
||||||
|
;;
|
||||||
|
590[0-9] )
|
||||||
|
envar="MYVNC_NOVNC_VNCSSH_PORT=${1}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
if [[ ${1} =~ ^[0-9]+$ ]]
|
# Compose up
|
||||||
then
|
${envar} docker compose up ${build} ${detach}
|
||||||
MYVNC_NOVNC_VNCSSH_PORT=${1} docker compose up ${build} --detach
|
|
||||||
else
|
|
||||||
docker compose up ${build} --detach
|
|
||||||
fi
|
|
||||||
|
|
|
||||||
24
plasma/up
24
plasma/up
|
|
@ -5,7 +5,23 @@
|
||||||
# docker build . \
|
# docker build . \
|
||||||
# --build-arg debug=${debug:-""} \
|
# --build-arg debug=${debug:-""} \
|
||||||
# --tag ${buildtag:-myvnc/novnc}
|
# --tag ${buildtag:-myvnc/novnc}
|
||||||
case ${1} in
|
# Grab options
|
||||||
build) docker compose up --build --detach;;
|
while [ ${1} ]
|
||||||
*) docker compose up --detach;;
|
do
|
||||||
esac
|
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}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue