diff --git a/.drone.star b/.drone.star index 3f42d43..6110401 100644 --- a/.drone.star +++ b/.drone.star @@ -22,6 +22,8 @@ TEMPLATES = { # "splunk-python": {"image": "cr.smcm.xyz/coder-images/python-38:latest"}, # }, "jupyter": { + "jupyter-base-notebook": {"image": "cr.smcm.xyz/coder-images/jupyter-base-notebook:latest"}, + "jupyter-minimal-notebook": {"image": "cr.smcm.xyz/coder-images/jupyter-minimal-notebook:latest"}, "jupyter-scipy-notebook": {"image": "cr.smcm.xyz/coder-images/jupyter-scipy-notebook:latest"}, }, } diff --git a/jupyter.tf.jinja b/jupyter.tf.jinja index fed46fa..edbcd3c 100644 --- a/jupyter.tf.jinja +++ b/jupyter.tf.jinja @@ -5,13 +5,15 @@ {% block coder_apps %} resource "coder_app" "jupyter" { agent_id = coder_agent.main.id - name = "jupyter" + slug = "jupyter" + name = "Jupyter" icon = "/icon/jupyter.svg" - url = "http://localhost:8888/@${data.coder_workspace.me.owner}/${data.coder_workspace.me.name}/apps/jupyter/" + url = "http://localhost:8888" + subdomain = true share = "owner" healthcheck { - url = "http://localhost:8888/@${data.coder_workspace.me.owner}/${data.coder_workspace.me.name}/apps/jupyter/" + url = "http://localhost:8888/healthz" interval = 3 threshold = 10 } @@ -25,7 +27,7 @@ resource "coder_app" "jupyter" { } env { name = "NOTEBOOK_ARGS" - value = "--ServerApp.base_url=/@${data.coder_workspace.me.owner}/${data.coder_workspace.me.name}/apps/jupyter/ --ServerApp.token='' --ip='*'" + value = "--ServerApp.token='' --ip='*'" } {{ super() }} {% endblock %}