test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Steve McMaster 2023-02-24 23:11:04 -05:00
parent f3894b10eb
commit 534927e112
2 changed files with 37 additions and 1 deletions

View File

@ -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
View 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 %}