From 8a60ee03917e9dc4133a30b04311704fe70fad5f Mon Sep 17 00:00:00 2001 From: Eric Paulsen Date: Tue, 30 Aug 2022 10:55:40 -0500 Subject: [PATCH] add: code-server to template examples (#3739) * add: code-server to template examples * add: code-server to gcp templates * add: code-server to gcp-linux template * update: READMEs * update: boot disk version * update: google provider version --- examples/templates/aws-linux/README.md | 6 +++++ examples/templates/aws-linux/main.tf | 14 ++++++++++++ .../templates/docker-image-builds/README.md | 6 +++++ .../templates/docker-image-builds/main.tf | 14 ++++++++++++ examples/templates/docker/README.md | 6 +++++ examples/templates/gcp-linux/README.md | 6 +++++ examples/templates/gcp-linux/main.tf | 22 ++++++++++++++++--- examples/templates/gcp-vm-container/README.md | 6 +++++ examples/templates/gcp-vm-container/main.tf | 16 ++++++++++++++ 9 files changed, 93 insertions(+), 3 deletions(-) diff --git a/examples/templates/aws-linux/README.md b/examples/templates/aws-linux/README.md index eb65f01cd8..681224cc32 100644 --- a/examples/templates/aws-linux/README.md +++ b/examples/templates/aws-linux/README.md @@ -68,3 +68,9 @@ instances provisioned by Coder: ] } ``` + +## code-server + +`code-server` is installed via the `startup_script` argument in the `coder_agent` +resource block. The `coder_app` resource is defined to access `code-server` through +the dashboard UI over `localhost:13337`. diff --git a/examples/templates/aws-linux/main.tf b/examples/templates/aws-linux/main.tf index fcd9b88d7b..a13b5fac87 100644 --- a/examples/templates/aws-linux/main.tf +++ b/examples/templates/aws-linux/main.tf @@ -76,6 +76,20 @@ resource "coder_agent" "main" { arch = "amd64" auth = "aws-instance-identity" os = "linux" + startup_script = <