From bb228df823c740cee62481b035d16f8e9b7b073c Mon Sep 17 00:00:00 2001 From: Myve Date: Tue, 23 Jul 2024 03:09:00 +0000 Subject: [PATCH] Update build command --- firefox/build | 9 --------- firefox/up | 11 +++++++++++ novnc/{build => up} | 9 +++++++-- plasma/build | 7 ------- plasma/up | 11 +++++++++++ 5 files changed, 29 insertions(+), 18 deletions(-) delete mode 100755 firefox/build create mode 100755 firefox/up rename novnc/{build => up} (55%) delete mode 100755 plasma/build create mode 100755 plasma/up diff --git a/firefox/build b/firefox/build deleted file mode 100755 index a2c001e..0000000 --- a/firefox/build +++ /dev/null @@ -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 diff --git a/firefox/up b/firefox/up new file mode 100755 index 0000000..256603a --- /dev/null +++ b/firefox/up @@ -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 diff --git a/novnc/build b/novnc/up similarity index 55% rename from novnc/build rename to novnc/up index 8557756..7054851 100755 --- a/novnc/build +++ b/novnc/up @@ -5,9 +5,14 @@ # docker build . \ # --build-arg debug=${debug:-""} \ # --tag ${buildtag:-myvnc/novnc} +case ${2} in + build) build="--build" + ;; +esac + if [[ ${1} =~ ^[0-9]+$ ]] then - MYVNC_NOVNC_VNCSSH_PORT=${1} docker compose up --build --detach + MYVNC_NOVNC_VNCSSH_PORT=${1} docker compose up ${build} --detach else - docker compose up --build --detach + docker compose up ${build} --detach fi diff --git a/plasma/build b/plasma/build deleted file mode 100755 index a3fd2fb..0000000 --- a/plasma/build +++ /dev/null @@ -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 diff --git a/plasma/up b/plasma/up new file mode 100755 index 0000000..256603a --- /dev/null +++ b/plasma/up @@ -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