This commit is contained in:
Steve McMaster 2023-02-25 01:07:59 -05:00
parent 88e5cc7c6a
commit 3a32872b8c
3 changed files with 6 additions and 5 deletions

View File

@ -68,7 +68,7 @@ def main(ctx):
}, },
"commands": [ "commands": [
"apk add git", "apk add git",
"wget -q -O- {url} | tar -xzf - -C /usr/local/bin ./coder".format(url = CODER_URL), "wget -q -O- {url} | tar -xzf - -C /usr/local/bin ./coder".format(url = CODER_URL)
" || ".join([ " || ".join([
"coder templates push -d {name} --yes {name}".format(name = coder_template), "coder templates push -d {name} --yes {name}".format(name = coder_template),
"coder templates create -d {name} --yes {name}".format(name = coder_template), "coder templates create -d {name} --yes {name}".format(name = coder_template),

View File

@ -3,7 +3,7 @@ terraform {
required_providers { required_providers {
coder = { coder = {
source = "coder/coder" source = "coder/coder"
version = "0.5.3" version = "0.6.14"
} }
kubernetes = { kubernetes = {
source = "hashicorp/kubernetes" source = "hashicorp/kubernetes"

View File

@ -6,13 +6,14 @@
resource "coder_app" "jupyter" { resource "coder_app" "jupyter" {
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
name = "Jupyter" name = "Jupyter"
slug = "jupyter"
icon = "/icon/jupyter.svg" icon = "/icon/jupyter.svg"
url = "http://localhost:8888" url = "http://localhost:8888/"
subdomain = true subdomain = true
share = "owner" share = "owner"
healthcheck { healthcheck {
url = "http://localhost:8888/healthz" url = "http://localhost:8888/api"
interval = 3 interval = 3
threshold = 10 threshold = 10
} }
@ -26,7 +27,7 @@ resource "coder_app" "jupyter" {
} }
env { env {
name = "NOTEBOOK_ARGS" name = "NOTEBOOK_ARGS"
value = "--ServerApp.token='' --ip='*'" value = "--no-browser --ServerApp.token='' --ip='*'"
} }
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}