Skip to content

Commit 05b83e5

Browse files
authored
Using release-tag instead of commit-id on novnc and websockify and updated them (#1787)
Using release tag instead of commit-id on novnc and websockify and updated both to the latest version [deploy]
1 parent d57f909 commit 05b83e5

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

NodeBase/Dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,20 @@ RUN apt-get -qqy update \
9292
########################################
9393
# noVNC exposes VNC through a web page #
9494
########################################
95-
# Download https://github.com/novnc/noVNC dated 2021-03-30 commit 84f102d6a9ffaf3972693d59bad5c6fddb6d7fb0
96-
# Download https://github.com/novnc/websockify dated 2021-03-22 commit c5d365dd1dbfee89881f1c1c02a2ac64838d645f
97-
ENV NOVNC_SHA="84f102d6a9ffaf3972693d59bad5c6fddb6d7fb0" \
98-
WEBSOCKIFY_SHA="c5d365dd1dbfee89881f1c1c02a2ac64838d645f"
95+
ENV NOVNC_VERSION="1.4.0" \
96+
WEBSOCKIFY_VERSION="0.11.0"
9997
RUN wget -nv -O noVNC.zip \
100-
"https://github.com/novnc/noVNC/archive/${NOVNC_SHA}.zip" \
98+
"https://github.com/novnc/noVNC/archive/refs/tags/v${NOVNC_VERSION}.zip" \
10199
&& unzip -x noVNC.zip \
102-
&& mv noVNC-${NOVNC_SHA} /opt/bin/noVNC \
100+
&& mv noVNC-${NOVNC_VERSION} /opt/bin/noVNC \
103101
&& cp /opt/bin/noVNC/vnc.html /opt/bin/noVNC/index.html \
104102
&& rm noVNC.zip \
105103
&& wget -nv -O websockify.zip \
106-
"https://github.com/novnc/websockify/archive/${WEBSOCKIFY_SHA}.zip" \
104+
"https://github.com/novnc/websockify/archive/refs/tags/v${WEBSOCKIFY_VERSION}.zip" \
107105
&& unzip -x websockify.zip \
108106
&& rm websockify.zip \
109-
&& rm -rf websockify-${WEBSOCKIFY_SHA}/tests \
110-
&& mv websockify-${WEBSOCKIFY_SHA} /opt/bin/noVNC/utils/websockify
107+
&& rm -rf websockify-${WEBSOCKIFY_VERSION}/tests \
108+
&& mv websockify-${WEBSOCKIFY_VERSION} /opt/bin/noVNC/utils/websockify
111109

112110
#=========================================================================================================================================
113111
# Run this command for executable file permissions for /dev/shm when this is a "child" container running in Docker Desktop and WSL2 distro

NodeBase/start-novnc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
if [ "${START_XVFB:-$SE_START_XVFB}" = true ] ; then
66
if [ "${START_NO_VNC:-$SE_START_NO_VNC}" = true ] ; then
7-
/opt/bin/noVNC/utils/launch.sh --listen ${NO_VNC_PORT:-$SE_NO_VNC_PORT} --vnc localhost:${VNC_PORT:-$SE_VNC_PORT}
7+
/opt/bin/noVNC/utils/novnc_proxy --listen ${NO_VNC_PORT:-$SE_NO_VNC_PORT} --vnc localhost:${VNC_PORT:-$SE_VNC_PORT}
88
else
99
echo "noVNC won't start because SE_START_NO_VNC is false."
1010
fi

0 commit comments

Comments
 (0)