All checks were successful
continuous-integration/drone/push Build is passing
49 lines
1.1 KiB
Django/Jinja
49 lines
1.1 KiB
Django/Jinja
{% extends "base.tf.jinja" %}
|
|
|
|
{% set coder_user_gid = 100 %}
|
|
|
|
{% 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"
|
|
|
|
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 %}
|
|
|
|
{% block kubernetes_pod_main_volume_mount %}
|
|
volume_mount {
|
|
mount_path = "/home/jovyan"
|
|
name = "home"
|
|
read_only = false
|
|
}
|
|
{% endblock %} |