refactor: pin code-server to 4.8.3 (#5440)

* chore(templates): pin code-server to 4.8.3

* docs: use code-server 4.8.3 in install snippets
This commit is contained in:
Joe Previte
2022-12-15 13:14:49 -07:00
committed by GitHub
parent 31d38d4246
commit fceac39143
9 changed files with 12 additions and 11 deletions

View File

@@ -51,7 +51,8 @@ resource "coder_agent" "main" {
startup_script = <<EOF
#!/bin/sh
# install and start code-server
curl -fsSL https://code-server.dev/install.sh | sh
# remove '-s -- --version 4.8.3' to install the latest version
curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 4.8.3
code-server --auth none --port 13337
EOF
}
@@ -63,7 +64,7 @@ For advanced use, we recommend installing code-server in your VM snapshot or con
FROM codercom/enterprise-base:ubuntu
# install a specific code-server version
RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version=4.3.0
RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version=4.8.3
# pre-install versions
RUN code-server --install-extension eamodio.gitlens

View File

@@ -153,8 +153,8 @@ resource "coder_agent" "coder" {
startup_script = <<EOT
#!/bin/bash
# install code-server
curl -fsSL https://code-server.dev/install.sh | sh
# install code-server 4.8.3
curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 4.8.3
# The & prevents the startup_script from blocking so the
# next commands can run.