@@ -24,7 +24,6 @@ data "coder_parameter" "home_disk" {
24
24
25
25
variable "use_kubeconfig" {
26
26
type = bool
27
- sensitive = true
28
27
default = true
29
28
description = <<- EOF
30
29
Use host kubeconfig? (true/false)
@@ -40,46 +39,39 @@ provider "coder" {
40
39
41
40
variable "namespace" {
42
41
type = string
43
- sensitive = true
44
42
description = " The namespace to create workspaces in (must exist prior to creating workspaces)"
45
43
}
46
44
47
45
variable "create_tun" {
48
46
type = bool
49
- sensitive = true
50
47
description = " Add a TUN device to the workspace."
51
48
default = false
52
49
}
53
50
54
51
variable "create_fuse" {
55
52
type = bool
56
53
description = " Add a FUSE device to the workspace."
57
- sensitive = true
58
54
default = false
59
55
}
60
56
61
57
variable "max_cpus" {
62
58
type = string
63
- sensitive = true
64
59
description = " Max number of CPUs the workspace may use (e.g. 2)."
65
60
}
66
61
67
62
variable "min_cpus" {
68
63
type = string
69
- sensitive = true
70
64
description = " Minimum number of CPUs the workspace may use (e.g. .1)."
71
65
}
72
66
73
67
variable "max_memory" {
74
68
type = string
75
69
description = " Maximum amount of memory to allocate the workspace (in GB)."
76
- sensitive = true
77
70
}
78
71
79
72
variable "min_memory" {
80
73
type = string
81
74
description = " Minimum amount of memory to allocate the workspace (in GB)."
82
- sensitive = true
83
75
}
84
76
85
77
provider "kubernetes" {
@@ -104,11 +96,11 @@ resource "coder_agent" "main" {
104
96
fi
105
97
106
98
# 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
109
101
110
102
# 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 &
112
104
EOT
113
105
}
114
106
@@ -191,7 +183,7 @@ resource "kubernetes_pod" "main" {
191
183
192
184
env {
193
185
name = " CODER_INNER_IMAGE"
194
- value = " index.docker.io/codercom/enterprise-base@sha256:069e84783d134841cbb5007a16d9025b6aed67bc5b95eecc118eb96dccd6de68 "
186
+ value = " index.docker.io/codercom/enterprise-base:ubuntu-20240812 "
195
187
}
196
188
197
189
env {
0 commit comments