Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 4f7dc29

Browse files
Merge pull request #20 from xavierog/trunk
Fix race condition when launching websockify. fixes #18 and fixes #21
2 parents 6d52beb + 9d9db4e commit 4f7dc29

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- run:
2828
name: "Prepare workflow environment variables"
2929
command: |
30-
echo 'export BRANCH="$CIRCLE_BRANCH"' >> $BASH_ENV
30+
echo 'export BRANCH="${CIRCLE_BRANCH//\//-}"' >> $BASH_ENV
3131
cat $BASH_ENV
3232
source $BASH_ENV
3333
echo "Workflow environment variables:"
@@ -43,7 +43,7 @@ jobs:
4343
- run:
4444
name: "Save Docker Images in Cache"
4545
command: |
46-
export VERSION=$CIRCLE_BRANCH
46+
export VERSION=${CIRCLE_BRANCH//\//-}
4747
echo $NAMESPACE/base:$VERSION-$BUILD_DATE
4848
echo $NAMESPACE/node-base:$VERSION-$BUILD_DATE
4949
echo $NAMESPACE/hub:$VERSION-$BUILD_DATE
@@ -98,7 +98,7 @@ jobs:
9898
no_output_timeout: 2m
9999
command: |
100100
export USE_RANDOM_USER=false
101-
export BRANCH=$CIRCLE_BRANCH
101+
export BRANCH=${CIRCLE_BRANCH//\//-}
102102
USE_RANDOM_USER_ID=${USE_RANDOM_USER} NAMESPACE=${NAMESPACE} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} SKIP_BUILD=true make test_multi_arch
103103
104104
deploy-multi-arch:

NodeBase/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ RUN apt-get -qqy update \
9494
########################################
9595
# Download https://github.com/novnc/noVNC dated 2021-03-30 commit 84f102d6a9ffaf3972693d59bad5c6fddb6d7fb0
9696
# Download https://github.com/novnc/websockify dated 2021-03-22 commit c5d365dd1dbfee89881f1c1c02a2ac64838d645f
97+
# Install procps as noVNC's launch.sh depends on it to launch websockify properly
9798
ENV NOVNC_SHA="84f102d6a9ffaf3972693d59bad5c6fddb6d7fb0" \
9899
WEBSOCKIFY_SHA="c5d365dd1dbfee89881f1c1c02a2ac64838d645f"
99100
RUN wget -nv -O noVNC.zip \
@@ -107,7 +108,11 @@ RUN wget -nv -O noVNC.zip \
107108
&& unzip -x websockify.zip \
108109
&& rm websockify.zip \
109110
&& rm -rf websockify-${WEBSOCKIFY_SHA}/tests \
110-
&& mv websockify-${WEBSOCKIFY_SHA} /opt/bin/noVNC/utils/websockify
111+
&& mv websockify-${WEBSOCKIFY_SHA} /opt/bin/noVNC/utils/websockify \
112+
&& apt-get -qqy update \
113+
&& apt-get -qqy --no-install-recommends install procps \
114+
&& rm -rf /var/lib/apt/lists/* \
115+
&& apt-get -qqy clean
111116

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

0 commit comments

Comments
 (0)