This commit is contained in:
parent
f3894b10eb
commit
534927e112
@ -1,4 +1,4 @@
|
|||||||
CODER_URL = "https://github.com/coder/coder/releases/download/v0.11.0/coder_0.11.0_linux_amd64.tar.gz"
|
CODER_URL = "https://github.com/coder/coder/releases/download/v0.17.4/coder_0.17.4_linux_amd64.tar.gz"
|
||||||
|
|
||||||
TEMPLATES = {
|
TEMPLATES = {
|
||||||
"base": {
|
"base": {
|
||||||
@ -21,6 +21,9 @@ TEMPLATES = {
|
|||||||
"proxychains": {
|
"proxychains": {
|
||||||
"splunk-python": {"image": "cr.smcm.xyz/coder-images/python-38:latest"},
|
"splunk-python": {"image": "cr.smcm.xyz/coder-images/python-38:latest"},
|
||||||
},
|
},
|
||||||
|
"jupyter": {
|
||||||
|
"jupyter": {"image": "cr.smcm.xyz/coder-images/jupyter-scipy-notebook:latest"},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_jinja_command(template, output, context):
|
def get_jinja_command(template, output, context):
|
||||||
|
|||||||
33
jupyter.tf.jinja
Normal file
33
jupyter.tf.jinja
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{% extends "base.tf.jinja" %}
|
||||||
|
|
||||||
|
{% block coder_apps %}
|
||||||
|
resource "coder_app" "jupyter" {
|
||||||
|
agent_id = coder_agent.main.id
|
||||||
|
name = "Jupyter"
|
||||||
|
icon = "/icon/jupyter.svg"
|
||||||
|
url = "http://localhost:8888/lab"
|
||||||
|
subdomain = true
|
||||||
|
share = "public"
|
||||||
|
|
||||||
|
healthcheck {
|
||||||
|
url = "http://localhost:8888/lab"
|
||||||
|
interval = 3
|
||||||
|
threshold = 10
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block kubernetes_pod_main_env %}
|
||||||
|
env {
|
||||||
|
name = "DOCKER_STACKS_JUPYTER_CMD"
|
||||||
|
value = "lab"
|
||||||
|
}
|
||||||
|
env {
|
||||||
|
name = "NOTEBOOK_ARGS"
|
||||||
|
value = "--ServerApp.token='' --ip='*'"
|
||||||
|
}
|
||||||
|
{{ super() }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block post_startup_script_setup_home %}
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user