From 86b9c97e8eba4770930c147b2bb9d0fed771c97d Mon Sep 17 00:00:00 2001 From: Chris LaRose Date: Wed, 14 Aug 2024 06:39:43 -0700 Subject: [PATCH] chore: update envbox template image (#14256) --- examples/templates/envbox/main.tf | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/examples/templates/envbox/main.tf b/examples/templates/envbox/main.tf index b11a728182..73e6d4fd45 100644 --- a/examples/templates/envbox/main.tf +++ b/examples/templates/envbox/main.tf @@ -24,7 +24,6 @@ data "coder_parameter" "home_disk" { variable "use_kubeconfig" { type = bool - sensitive = true default = true description = <<-EOF Use host kubeconfig? (true/false) @@ -40,13 +39,11 @@ provider "coder" { variable "namespace" { type = string - sensitive = true description = "The namespace to create workspaces in (must exist prior to creating workspaces)" } variable "create_tun" { type = bool - sensitive = true description = "Add a TUN device to the workspace." default = false } @@ -54,32 +51,27 @@ variable "create_tun" { variable "create_fuse" { type = bool description = "Add a FUSE device to the workspace." - sensitive = true default = false } variable "max_cpus" { type = string - sensitive = true description = "Max number of CPUs the workspace may use (e.g. 2)." } variable "min_cpus" { type = string - sensitive = true description = "Minimum number of CPUs the workspace may use (e.g. .1)." } variable "max_memory" { type = string description = "Maximum amount of memory to allocate the workspace (in GB)." - sensitive = true } variable "min_memory" { type = string description = "Minimum amount of memory to allocate the workspace (in GB)." - sensitive = true } provider "kubernetes" { @@ -104,11 +96,11 @@ resource "coder_agent" "main" { fi # Install the latest code-server. - # Append "-s -- --version x.x.x" to `sh` to install a specific version of code-server. - curl -fsSL https://code-server.dev/install.sh | sh | tee code-server-install.log + # Append "--version x.x.x" to install a specific version of code-server. + curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server # Start code-server in the background. - code-server --auth none --port 13337 | tee code-server-install.log & + /tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 & EOT } @@ -191,7 +183,7 @@ resource "kubernetes_pod" "main" { env { name = "CODER_INNER_IMAGE" - value = "index.docker.io/codercom/enterprise-base@sha256:069e84783d134841cbb5007a16d9025b6aed67bc5b95eecc118eb96dccd6de68" + value = "index.docker.io/codercom/enterprise-base:ubuntu-20240812" } env {