fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Steve McMaster 2023-02-25 01:19:40 -05:00
parent 6c55d17fe6
commit 097e43cb17

View File

@ -5,7 +5,7 @@
{% block coder_apps %} {% block coder_apps %}
resource "coder_app" "jupyter" { resource "coder_app" "jupyter" {
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
display_name = "Jupyter lab" display_name = "Jupyter notebook"
slug = "jupyter" slug = "jupyter"
icon = "/icon/jupyter.svg" icon = "/icon/jupyter.svg"
url = "http://localhost:8888/" url = "http://localhost:8888/"
@ -23,11 +23,11 @@ resource "coder_app" "jupyter" {
{% block kubernetes_pod_main_env %} {% block kubernetes_pod_main_env %}
env { env {
name = "DOCKER_STACKS_JUPYTER_CMD" name = "DOCKER_STACKS_JUPYTER_CMD"
value = "lab" value = "notebook"
} }
env { env {
name = "NOTEBOOK_ARGS" name = "NOTEBOOK_ARGS"
value = "--no-browser --ServerApp.token='' --ip='*'" value = "--no-browser --NotebookApp.token='' --ip='*'"
} }
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}
@ -35,3 +35,11 @@ resource "coder_app" "jupyter" {
{% block post_startup_script_setup_home %} {% block post_startup_script_setup_home %}
/usr/local/bin/start-notebook.sh | tee jupyter-startup.log & /usr/local/bin/start-notebook.sh | tee jupyter-startup.log &
{% endblock %} {% endblock %}
{% block kubernetes_pod_main_volume_mount %}
volume_mount {
mount_path = "/home/jovyan"
name = "home"
read_only = false
}
{% endblock %}