Skip to content

Commit

Permalink
update to 3.5.0 and ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
jerowe committed Apr 5, 2023
1 parent 7386f54 commit 964b34d
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions jupyter_dcv_proxy/run-dcv-user-session.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,26 @@

echo "========================================================="
echo "Creating DCV Session:"
echo "dcv create-session --owner ${NB_USER} ${SESSION_ID}"

dcv create-session --owner ${NB_USER} ${SESSION_ID}
export SESSION_ID=$(uuidgen)
echo "dcv create-session --owner ${USER} ${SESSION_ID}"
dcv create-session --owner ${USER} ${SESSION_ID}

echo "Listing DCV Sessions"
dcv list-sessions

configurable-http-proxy --port ${PORT} --default-target=https://localhost:8443 --insecure --log-level=debug
configurable-http-proxy --port ${PORT} --default-target=https://localhost:8443 --insecure --log-level=debug &


while true; do

dcv describe-session "${SESSION_ID}" || {
echo >&2 "DCV session ${SESSION_ID} exited unexpectedly. Starting new session"
SESSION_ID=$(openssl rand -hex 12)
dcv create-session --owner $USER ${SESSION_ID}
}
sleep 10

done

echo "========================================================="

0 comments on commit 964b34d

Please sign in to comment.