Skip to content

Commit 3a6f5a8

Browse files
committed
chore: update install of code-server in envbox template
Update the installation to match the other templates, in particular: * Install using standalone method * Install to /tmp * Close parent stderr stream (write code-server stderr to log file)
1 parent d77eb70 commit 3a6f5a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/templates/envbox/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ resource "coder_agent" "main" {
104104
fi
105105
106106
# 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
107+
# Append "--version x.x.x" to install a specific version of code-server.
108+
curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
109109
110110
# Start code-server in the background.
111-
code-server --auth none --port 13337 | tee code-server-install.log &
111+
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
112112
EOT
113113
}
114114

0 commit comments

Comments
 (0)