File tree 1 file changed +25
-2
lines changed
1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,16 @@ resource "coder_agent" "main" {
55
55
# start ttyd / tmux
56
56
tmux new -d
57
57
ttyd tmux at 2>&1 | tee ttyd.log &
58
+ # install and start code-server
59
+ curl -fsSL https://code-server.dev/install.sh | sh | tee code-server-install.log
60
+ code-server --auth none --port 13337 | tee code-server-install.log &
61
+
58
62
EOT
59
63
}
60
64
61
65
# emacs-broadway
62
66
resource "coder_app" "emacs-broadway" {
63
- subdomain = true
67
+ subdomain = false
64
68
share = " public"
65
69
agent_id = coder_agent. main . id
66
70
slug = " emacs-broadway"
@@ -78,7 +82,7 @@ resource "coder_app" "emacs-broadway" {
78
82
79
83
# ttyd
80
84
resource "coder_app" "ttyd" {
81
- subdomain = true
85
+ subdomain = false
82
86
share = " public"
83
87
slug = " ttyd"
84
88
display_name = " ttyd for tmux"
@@ -104,11 +108,30 @@ resource "coder_app" "tmux" {
104
108
share = " public"
105
109
}
106
110
111
+ # code-server
112
+ resource "coder_app" "code-server" {
113
+ agent_id = coder_agent. main . id
114
+ display_name = " code-server"
115
+ slug = " code-server"
116
+ icon = " /icon/code.svg"
117
+ url = " http://localhost:13337?folder=/home/coder"
118
+ subdomain = false
119
+
120
+ # healthcheck {
121
+ # url = "http://localhost:13337/healthz"
122
+ # interval = 3
123
+ # threshold = 10
124
+ # }
125
+ }
126
+
107
127
resource "kubernetes_pod" "main" {
108
128
count = data. coder_workspace . me . start_count
109
129
metadata {
110
130
name = " coder-${ lower (data. coder_workspace . me . owner )} -${ lower (data. coder_workspace . me . name )} "
111
131
namespace = var. namespace
132
+ labels = {
133
+ name = " coder-${ lower (data. coder_workspace . me . owner )} -${ lower (data. coder_workspace . me . name )} "
134
+ }
112
135
}
113
136
spec {
114
137
security_context {
You can’t perform that action at this time.
0 commit comments