From 2dad5357405ad33cfa792f04b3ab62a5d188841e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 19:06:32 +0200 Subject: Adding upstream version 1.4.34+dfsg. Signed-off-by: Daniel Baumann --- environments/vncserver/run.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 environments/vncserver/run.sh (limited to 'environments/vncserver/run.sh') 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} -- cgit v1.2.3