8000 feat(jupyterlab): add support for `subdomain=false` by framctr · Pull Request #316 · coder/modules · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

feat(jupyterlab): add support for subdomain=false #316

Merged
merged 20 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes to Subpath on Jupyter module #313
  • Loading branch information
framctr committed Oct 8, 2024
commit acbf564df6ddd0463431c761a25ac6a6cdcb23ac
2 changes: 1 addition & 1 deletion jupyterlab/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ resource "coder_script" "jupyterlab" {

resource "coder_app" "jupyterlab" {
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"
url = var.subdomain ? "http://localhost:${var.port}/@${data.coder_workspace_own 8000 er.me.name}/${data.coder_workspace.me.name}/apps/jupyterlab" : "http://localhost:${var.port}"
icon = "/icon/jupyter.svg"
Expand Down
6 changes: 3 additions & 3 deletions jupyterlab/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

if [ -n "$BASE_URL" ]
if [ -n "${BASE_URL}" ]
then
BASE_URL="--ServerApp.base_url=${BASE_URL}"
fi
Expand All @@ -25,8 +25,8 @@ else
printf "%s\n\n" "🥳 jupyterlab is already installed"
fi

echo "👷 Starting jupyterlab in background..."
echo "check logs at ${LOG_PATH}"
printf "👷 Starting jupyterlab in background..."
printf "check logs at ${LOG_PATH}"
$HOME/.local/bin/jupyter-lab --no-browser \
"$BASE_URL" \
--ServerApp.ip='*' \
Expand Down
Loading
0