summaryrefslogtreecommitdiffstats
path: root/environments/vncserver/run.sh
diff options
context:
space:
mode:
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}