mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-17 19:56: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 . \
|
||||
# --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}
|
||||
|
|
|
|||
32
novnc/up
32
novnc/up
|
|
@ -5,14 +5,26 @@
|
|||
# docker build . \
|
||||
# --build-arg debug=${debug:-""} \
|
||||
# --tag ${buildtag:-myvnc/novnc}
|
||||
case ${2} in
|
||||
build) build="--build"
|
||||
;;
|
||||
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"
|
||||
;;
|
||||
590[0-9] )
|
||||
envar="MYVNC_NOVNC_VNCSSH_PORT=${1}"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if [[ ${1} =~ ^[0-9]+$ ]]
|
||||
then
|
||||
MYVNC_NOVNC_VNCSSH_PORT=${1} docker compose up ${build} --detach
|
||||
else
|
||||
docker compose up ${build} --detach
|
||||
fi
|
||||
# Compose up
|
||||
${envar} docker compose up ${build} ${detach}
|
||||
|
|
|
|||
24
plasma/up
24
plasma/up
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue