File tree 13 files changed +67
-29
lines changed
parameters-dynamic-options
13 files changed +67
-29
lines changed Original file line number Diff line number Diff line change @@ -159,11 +159,12 @@ resource "coder_agent" "coder" {
159
159
startup_script = <<EOT
160
160
#!/bin/bash
161
161
162
- # Install code-server 4.8.3 under /tmp/code-server using the "standalone" installation
163
- # that does not require root permissions. Note that /tmp may be mounted in tmpfs which
164
- # can lead to increased RAM usage. To avoid this, you can pre-install code-server inside
165
- # the Docker image or VM image.
166
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.8.3
162
+ # Install the latest code-server under /tmp/code-server using the "standalone"
163
+ # installation that does not require root permissions. Note that /tmp may be
164
+ # mounted in tmpfs which can lead to increased RAM usage. To avoid this, you can
165
+ # pre-install code-server inside the Docker image or VM image.
166
+ # Append "--version x.x.x" to install a specific version of code-server.
167
+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
167
168
168
169
# The & prevents the startup_script from blocking so the next commands can run.
169
170
# The stdout and stderr of code-server is redirected to /tmp/code-server.log.
Original file line number Diff line number Diff line change @@ -160,8 +160,11 @@ resource "coder_agent" "main" {
160
160
startup_script = <<-EOT
161
161
set -e
162
162
163
- # install and start code-server
164
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
163
+ # Install the latest code-server.
164
+ # Append "--version x.x.x" to install a specific version of code-server.
165
+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
166
+
167
+ # Start code-server in the background.
165
168
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
166
169
EOT
167
170
Original file line number Diff line number Diff line change @@ -56,8 +56,11 @@ resource "coder_agent" "main" {
56
56
os = " linux"
57
57
startup_script = << EOF
58
58
#!/bin/sh
59
- # install and start code-server
60
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 4.8.3
59
+ # Install the latest code-server.
60
+ # Append "-s -- --version x.x.x" to install a specific version of code-server.
61
+ curl -fsSL https://code-server.dev/install.sh | sh
62
+
63
+ # Start code-server.
61
64
code-server --auth none --port 13337
62
65
EOF
63
66
Original file line number Diff line number Diff line change @@ -29,8 +29,11 @@ resource "coder_agent" "main" {
29
29
startup_script = <<- EOT
30
30
set -e
31
31
32
- # install and start code-server
33
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
32
+ # Install the latest code-server.
33
+ # Append "--version x.x.x" to install a specific version of code-server.
34
+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
35
+
36
+ # Start code-server in the background.
34
37
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
35
38
EOT
36
39
}
Original file line number Diff line number Diff line change @@ -165,8 +165,11 @@ resource "coder_agent" "dev" {
165
165
startup_script = <<- EOT
166
166
set -e
167
167
168
- # install and start code-server
169
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
168
+ # Install the latest code-server.
169
+ # Append "--version x.x.x" to install a specific version of code-server.
170
+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
171
+
172
+ # Start code-server in the background.
170
173
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
171
174
EOT
172
175
Original file line number Diff line number Diff line change @@ -196,8 +196,11 @@ resource "coder_agent" "main" {
196
196
startup_script = <<- EOT
197
197
set -e
198
198
199
- # install and start code-server
200
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
199
+ # Install the latest code-server.
200
+ # Append "--version x.x.x" to install a specific version of code-server.
201
+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
202
+
203
+ # Start code-server in the background.
201
204
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
202
205
EOT
203
206
dir = " /workspaces"
Original file line number Diff line number Diff line change @@ -315,8 +315,11 @@ resource "coder_agent" "main" {
315
315
startup_script = <<- EOT
316
316
set -e
317
317
318
- # install and start code-server
319
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
318
+ # Install the latest code-server.
319
+ # Append "--version x.x.x" to install a specific version of code-server.
320
+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
321
+
322
+ # Start code-server in the background.
320
323
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
321
324
EOT
322
325
dir = " /workspaces"
Original file line number Diff line number Diff line change @@ -35,8 +35,11 @@ resource "coder_agent" "main" {
35
35
touch ~/.init_done
36
36
fi
37
37
38
- # install and start code-server
39
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.19.1
38
+ # Install the latest code-server.
39
+ # Append "--version x.x.x" to install a specific version of code-server.
40
+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
41
+
42
+ # Start code-server in the background.
40
43
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
41
44
EOT
42
45
Original file line number Diff line number Diff line change @@ -102,8 +102,12 @@ resource "coder_agent" "main" {
102
102
if [ ! -f ~/.bashrc ]; then
103
103
cp /etc/skel/.bashrc $HOME
104
104
fi
105
- # install and start code-server
106
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 4.8.3 | tee code-server-install.log
105
+
106
+ # 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
109
+
110
+ # Start code-server in the background.
107
111
code-server --auth none --port 13337 | tee code-server-install.log &
108
112
EOT
109
113
}
Original file line number Diff line number Diff line change @@ -80,8 +80,11 @@ resource "coder_agent" "main" {
80
80
startup_script = <<- EOT
81
81
set -e
82
82
83
- # install and start code-server
84
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
83
+ # Install the latest code-server.
84
+ # Append "--version x.x.x" to install a specific version of code-server.
85
+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
86
+
87
+ # Start code-server in the background.
85
88
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
86
89
EOT
87
90
Original file line number Diff line number Diff line change @@ -70,8 +70,11 @@ resource "coder_agent" "main" {
70
70
startup_script = <<- EOT
71
71
set -e
72
72
73
- # install and start code-server
74
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
73
+ # Install the latest code-server.
74
+ # Append "--version x.x.x" to install a specific version of code-server.
75
+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
76
+
77
+ # Start code-server in the background.
75
78
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
76
79
EOT
77
80
}
Original file line number Diff line number Diff line change @@ -109,8 +109,11 @@ resource "coder_agent" "main" {
109
109
startup_script = <<- EOT
110
110
set -e
111
111
112
- # install and start code-server
113
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
112
+ # Install the latest code-server.
113
+ # Append "--version x.x.x" to install a specific version of code-server.
114
+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
115
+
116
+ # Start code-server in the background.
114
117
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
115
118
EOT
116
119
Original file line number Diff line number Diff line change @@ -72,8 +72,11 @@ resource "coder_agent" "main" {
72
72
os = " linux"
73
73
startup_script = << EOF
74
74
#!/bin/sh
75
- # install and start code-server
76
- curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 4.8.3
75
+ # Install the latest code-server.
76
+ # Append "-s -- --version x.x.x" to install a specific version of code-server.
77
+ curl -fsSL https://code-server.dev/install.sh | sh
78
+
79
+ # Start code-server.
77
80
code-server --auth none --port 13337
78
81
EOF
79
82
You can’t perform that action at this time.
0 commit comments