Fixes to Subpath on Jupyter module #313

pull/316/head
framctr 9 months ago
parent 92a898e529
commit acbf564df6

@ -65,7 +65,7 @@ resource "coder_script" "jupyterlab" {
resource "coder_app" "jupyterlab" { resource "coder_app" "jupyterlab" {
agent_id = var.agent_id agent_id = var.agent_id
slug = "jupyterlab" # sync with with end of subdomain URL slug = "jupyterlab" # sync with the usage in URL
display_name = "JupyterLab" display_name = "JupyterLab"
url = var.subdomain ? "http://localhost:${var.port}/@${data.coder_workspace_owner.me.name}/${data.coder_workspace.me.name}/apps/jupyterlab" : "http://localhost:${var.port}" url = var.subdomain ? "http://localhost:${var.port}/@${data.coder_workspace_owner.me.name}/${data.coder_workspace.me.name}/apps/jupyterlab" : "http://localhost:${var.port}"
icon = "/icon/jupyter.svg" icon = "/icon/jupyter.svg"

@ -1,6 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
if [ -n "$BASE_URL" ] if [ -n "${BASE_URL}" ]
then then
BASE_URL="--ServerApp.base_url=${BASE_URL}" BASE_URL="--ServerApp.base_url=${BASE_URL}"
fi fi
@ -25,8 +25,8 @@ else
printf "%s\n\n" "🥳 jupyterlab is already installed" printf "%s\n\n" "🥳 jupyterlab is already installed"
fi fi
echo "👷 Starting jupyterlab in background..." printf "👷 Starting jupyterlab in background..."
echo "check logs at ${LOG_PATH}" printf "check logs at ${LOG_PATH}"
$HOME/.local/bin/jupyter-lab --no-browser \ $HOME/.local/bin/jupyter-lab --no-browser \
"$BASE_URL" \ "$BASE_URL" \
--ServerApp.ip='*' \ --ServerApp.ip='*' \

Loading…
Cancel
Save