@@ -28,7 +28,7 @@ variable "use_kubeconfig" {
28
28
variable "namespace" {
29
29
type = string
30
30
sensitive = true
31
- description = " The namespace to create workspaces in (must exist prior to creating workspaces)"
31
+ description = " The Kubernetes namespace to create workspaces in (must exist prior to creating workspaces)"
32
32
}
33
33
34
34
variable "home_disk_size" {
@@ -57,17 +57,9 @@ resource "coder_agent" "main" {
57
57
startup_script = <<- EOT
58
58
set -e
59
59
60
- # home folder can be empty, so copying default bash settings
61
- if [ ! -f ~/.profile ]; then
62
- cp /etc/skel/.profile $HOME
63
- fi
64
- if [ ! -f ~/.bashrc ]; then
65
- cp /etc/skel/.bashrc $HOME
66
- fi
67
-
68
60
# install and start code-server
69
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 4.8.3
70
- code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
61
+ curl -fsSL https://code-server.dev/install.sh | sh -s
62
+ code-server --auth none --port 13337 &
71
63
EOT
72
64
}
73
65
@@ -144,9 +136,10 @@ resource "kubernetes_pod" "main" {
144
136
fs_group = " 1000"
145
137
}
146
138
container {
147
- name = " dev"
148
- image = " codercom/enterprise-base:ubuntu"
149
- command = [" sh" , " -c" , coder_agent . main . init_script ]
139
+ name = " dev"
140
+ image = " codercom/enterprise-base:ubuntu"
141
+ image_pull_policy = " Always"
142
+ command = [" sh" , " -c" , coder_agent . main . init_script ]
150
143
security_context {
151
144
run_as_user = " 1000"
152
145
}
0 commit comments