summaryrefslogtreecommitdiffstats
path: root/environments/vncserver/run.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 17:06:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 17:06:32 +0000
commit2dad5357405ad33cfa792f04b3ab62a5d188841e (patch)
treeb8f8893942060fe3cfb04ac374cda96fdfc8f453 /environments/vncserver/run.sh
parentInitial commit. (diff)
downloadremmina-upstream/1.4.34+dfsg.tar.xz
remmina-upstream/1.4.34+dfsg.zip
Adding upstream version 1.4.34+dfsg.upstream/1.4.34+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'environments/vncserver/run.sh')
-rw-r--r--environments/vncserver/run.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/environments/vncserver/run.sh b/environments/vncserver/run.sh
new file mode 100644
index 0000000..2f19341
--- /dev/null
+++ b/environments/vncserver/run.sh
@@ -0,0 +1,20 @@
+if ! type podman > /dev/null; then
+ if ! type docker > /dev/null; then
+ echo "Install podman or docker to use the remmina environments!"
+ exit 1
+ fi
+ CRT=docker
+else
+ CRT=podman
+fi
+
+
+CONTAINER_NAME="vncserver-ssh-socket-forward"
+IMAGE_NAME="remmina/environments/vncserver"
+
+$CRT stop "${CONTAINER_NAME}"
+$CRT rm "${CONTAINER_NAME}"
+
+$CRT build . -t ${IMAGE_NAME}
+
+$CRT run -p 5555:5555 -v "${PWD}/vnc-server-tmp:/vnc-server-tmp:rw" --rm --name "${CONTAINER_NAME}" -it ${IMAGE_NAME}