Update build command

This commit is contained in:
Myve 2024-07-23 03:09:00 +00:00
commit bb228df823
5 changed files with 29 additions and 18 deletions

View file

@ -1,9 +0,0 @@
#!/usr/bin/env bash
# Docker build
# Optional buildtag
# DOCKER_BUILDKIT=1 \
# docker build . \
# --build-arg debug=${debug:-""} \
# --tag ${buildtag:-myvnc/firefox}
docker compose up --build --detach

11
firefox/up Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Docker build
# Optional buildtag
# DOCKER_BUILDKIT=1 \
# docker build . \
# --build-arg debug=${debug:-""} \
# --tag ${buildtag:-myvnc/novnc}
case ${1} in
build) docker compose up --build --detach;;
*) docker compose up --detach;;
esac

View file

@ -5,9 +5,14 @@
# docker build . \ # docker build . \
# --build-arg debug=${debug:-""} \ # --build-arg debug=${debug:-""} \
# --tag ${buildtag:-myvnc/novnc} # --tag ${buildtag:-myvnc/novnc}
case ${2} in
build) build="--build"
;;
esac
if [[ ${1} =~ ^[0-9]+$ ]] if [[ ${1} =~ ^[0-9]+$ ]]
then then
MYVNC_NOVNC_VNCSSH_PORT=${1} docker compose up --build --detach MYVNC_NOVNC_VNCSSH_PORT=${1} docker compose up ${build} --detach
else else
docker compose up --build --detach docker compose up ${build} --detach
fi fi

View file

@ -1,7 +0,0 @@
#!/usr/bin/env bash
# Docker build
# Optional: buildtag
# DOCKER_BUILDKIT=1 \
# docker build . \
# --tag ${buildtag:-myvnc/webtop:plasma}
docker compose up --build --detach

11
plasma/up Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Docker build
# Optional buildtag
# DOCKER_BUILDKIT=1 \
# docker build . \
# --build-arg debug=${debug:-""} \
# --tag ${buildtag:-myvnc/novnc}
case ${1} in
build) docker compose up --build --detach;;
*) docker compose up --detach;;
esac