This repository has been archived on 2026-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
coder-templates/jupyter.tf.j2
Steve McMaster 37fe2f8c81
Some checks failed
continuous-integration/drone/push Build is failing
Icons
2023-12-13 20:44:34 -05:00

40 lines
1004 B
Django/Jinja

{% extends "base.tf.j2" %}
{% block coder_apps %}
resource "coder_app" "jupyter" {
agent_id = coder_agent.main.id
display_name = "Jupyter lab"
slug = "jupyter"
icon = "/icon/jupyter.svg"
url = "http://localhost:8888/"
subdomain = true
share = "owner"
icon = "/icons/jupyter.svg"
healthcheck {
url = "http://localhost:8888/api"
interval = 3
threshold = 10
}
}
{% endblock %}
{% block kubernetes_pod_main_env %}
env {
name = "CONDA_ENVS_PATH"
value = "/home/jovyan/envs"
}
env {
name = "DOCKER_STACKS_JUPYTER_CMD"
value = "lab"
}
env {
name = "NOTEBOOK_ARGS"
value = "--no-browser --ServerApp.token='' --ip='*'"
}
{{ super() }}
{% endblock %}
{% block post_startup_script_setup_home %}
/usr/local/bin/start-notebook.sh | tee jupyter-startup.log &
{% endblock %}