This commit is contained in:
parent
0dfa260b59
commit
333a70645c
@ -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"},
|
||||
},
|
||||
}
|
||||
|
||||
@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user