Skip to content

Commit 86b9c97

Browse files
authored
chore: update envbox template image (coder#14256)
1 parent e978d4d commit 86b9c97

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

examples/templates/envbox/main.tf

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ data "coder_parameter" "home_disk" {
2424

2525
variable "use_kubeconfig" {
2626
type = bool
27-
sensitive = true
2827
default = true
2928
description = <<-EOF
3029
Use host kubeconfig? (true/false)
@@ -40,46 +39,39 @@ provider "coder" {
4039

4140
variable "namespace" {
4241
type = string
43-
sensitive = true
4442
description = "The namespace to create workspaces in (must exist prior to creating workspaces)"
4543
}
4644

4745
variable "create_tun" {
4846
type = bool
49-
sensitive = true
5047
description = "Add a TUN device to the workspace."
5148
default = false
5249
}
5350

5451
variable "create_fuse" {
5552
type = bool
5653
description = "Add a FUSE device to the workspace."
57-
sensitive = true
5854
default = false
5955
}
6056

6157
variable "max_cpus" {
6258
type = string
63-
sensitive = true
6459
description = "Max number of CPUs the workspace may use (e.g. 2)."
6560
}
6661

6762
variable "min_cpus" {
6863
type = string
69-
sensitive = true
7064
description = "Minimum number of CPUs the workspace may use (e.g. .1)."
7165
}
7266

7367
variable "max_memory" {
7468
type = string
7569
description = "Maximum amount of memory to allocate the workspace (in GB)."
76-
sensitive = true
7770
}
7871

7972
variable "min_memory" {
8073
type = string
8174
description = "Minimum amount of memory to allocate the workspace (in GB)."
82-
sensitive = true
8375
}
8476

8577
provider "kubernetes" {
@@ -104,11 +96,11 @@ resource "coder_agent" "main" {
10496
fi
10597
10698
# Install the latest code-server.
107-
# Append "-s -- --version x.x.x" to `sh` to install a specific version of code-server.
108-
curl -fsSL https://code-server.dev/install.sh | sh | tee code-server-install.log
99+
# Append "--version x.x.x" to install a specific version of code-server.
100+
curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
109101
110102
# Start code-server in the background.
111-
code-server --auth none --port 13337 | tee code-server-install.log &
103+
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
112104
EOT
113105
}
114106

@@ -191,7 +183,7 @@ resource "kubernetes_pod" "main" {
191183

192184
env {
193185
name = "CODER_INNER_IMAGE"
194-
value = "index.docker.io/codercom/enterprise-base@sha256:069e84783d134841cbb5007a16d9025b6aed67bc5b95eecc118eb96dccd6de68"
186+
value = "index.docker.io/codercom/enterprise-base:ubuntu-20240812"
195187
}
196188

197189
env {

0 commit comments

Comments
 (0)