Skip to content

Commit a0eec0a

Browse files
Installing noVNC in /tmp
1 parent 9ee56ba commit a0eec0a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

sagemaker_ssh_helper/sm-helper-functions

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,6 @@ function _install_noVNC_linux() {
162162
echo "Got latest noVNC release tag: $novnc_tag"
163163

164164
curl -sSL "https://api.github.com/repos/novnc/noVNC/tarball/$novnc_tag" -o "/tmp/noVNC.tgz"
165-
tar xzf /tmp/noVNC.tgz --transform 's/^novnc-noVNC-[0-9a-f]\+/noVNC/'
165+
mkdir -p /tmp/noVNC
166+
tar xzf /tmp/noVNC.tgz -C /tmp/noVNC --strip-components=1
166167
}

server-lc-config.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ pip uninstall -y -q awscli
1717
pip install -q sagemaker-ssh-helper
1818

1919
# Uncomment two lines below to update SageMaker SSH Helper to the latest dev version from main branch
20-
#git clone https://github.com/aws-samples/sagemaker-ssh-helper.git
21-
#cd sagemaker-ssh-helper && pip install . && cd ..
20+
#git clone https://github.com/aws-samples/sagemaker-ssh-helper.git /tmp/sagemaker-ssh-helper/
21+
#cd /tmp/sagemaker-ssh-helper/ && pip install . && cd ..
2222

2323
ps xfaeww
2424

@@ -31,5 +31,5 @@ sm-local-configure
3131

3232
_install_noVNC_linux
3333

34-
cd noVNC
34+
cd /tmp/noVNC
3535
nohup ./utils/novnc_proxy --vnc 127.0.0.1:5901 &

0 commit comments

Comments
 (0)