diff --git a/docs/dotfiles.md b/docs/dotfiles.md index 41ef83293f..df2accf369 100644 --- a/docs/dotfiles.md +++ b/docs/dotfiles.md @@ -22,7 +22,7 @@ variable "dotfiles_uri" { default = "" } -resource "coder_agent" "dev" { +resource "coder_agent" "main" { ... startup_script = var.dotfiles_uri != "" ? "coder dotfiles -y ${var.dotfiles_uri}" : null } @@ -41,7 +41,7 @@ In such cases: - Set the `startup_script` to call a `~/personalize` script that the user can edit ```hcl -resource "coder_agent" "dev" { +resource "coder_agent" "main" { ... startup_script = "/home/coder/personalize" } diff --git a/docs/ides/configuring-web-ides.md b/docs/ides/configuring-web-ides.md index cb126df86b..30ce9e6cc7 100644 --- a/docs/ides/configuring-web-ides.md +++ b/docs/ides/configuring-web-ides.md @@ -38,7 +38,7 @@ vim main.tf ``` ```hcl -resource "coder_agent" "dev" { +resource "coder_agent" "main" { arch = "amd64" os = "linux" startup_script = < - ## VNC Desktop ![VNC Desktop in Coder](../images/vnc-desktop.png) @@ -116,7 +115,6 @@ Workspace requirements: - JetBrains projector CLI - At least 4 CPU cores and 4 GB RAM - - CLion - pyCharm - DataGrip @@ -130,13 +128,10 @@ Workspace requirements: - WebStorm - ➕ code-server (just in case!) - For advanced users who want to make a custom image, you can install the Projector CLI in the `startup_script` of the `coder_agent` resource in a Coder template. Using the Projector CLI, you can use `projector ide autoinstall` and `projector run` to download and start a JetBrains IDE in your workspace. - ![IntelliJ in Coder](../images/projector-intellij.png) - In this example, the version of JetBrains IntelliJ IDE is passed in from a Terraform input variable. You create a JetBrains icon in the workspace using a `coder_app` resource. > There is a known issue passing query string parameters when opening a JetBrains IDE from an icon in your workspace ([#2669](https://github.com/coder/coder/issues/2669)). Note the `grep` statement to remove an optional password token from the configuration so a query string parameter is not passed. @@ -205,7 +200,6 @@ resource "coder_app" "intellij" { } ``` - **Pre-built templates:** You can also reference/use to these pre-built templates with JetBrains projector: @@ -224,8 +218,6 @@ You can also reference/use to these pre-built templates with JetBrains projector > Coder OSS currently does not perform a health check([#2662](https://github.com/coder/coder/issues/2662)) that any IDE or commands in the `startup_script` have completed, so wait a minute or so before opening the JetBrains or code-server icons. As a precaution, you can open Terminal and run `htop` to see if the processes have completed. - - ## JupyterLab Configure your agent and `coder_app` like so to use Jupyter: diff --git a/docs/secrets.md b/docs/secrets.md index 6cb4003cc7..297d406438 100644 --- a/docs/secrets.md +++ b/docs/secrets.md @@ -42,7 +42,7 @@ resource "twilio_iam_api_key" "api_key" { friendly_name = "Test API Key" } -resource "coder_agent" "dev" { +resource "coder_agent" "main" { # ... env = { # Let users access the secret via $TWILIO_API_SECRET diff --git a/docs/templates.md b/docs/templates.md index 9dafeb71a0..b39f25c567 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -217,7 +217,7 @@ sets a few environment variables based on the username and email address of the that you can make Git commits immediately without any manual configuration: ```tf -resource "coder_agent" "dev" { +resource "coder_agent" "main" { # ... env = { GIT_AUTHOR_NAME = "${data.coder_workspace.me.owner}" diff --git a/dogfood/main.tf b/dogfood/main.tf index 5407a631e1..f8ac5a217e 100644 --- a/dogfood/main.tf +++ b/dogfood/main.tf @@ -23,7 +23,7 @@ provider "coder" { data "coder_workspace" "me" { } -resource "coder_agent" "dev" { +resource "coder_agent" "main" { arch = "amd64" os = "linux" startup_script = <