Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix folder paths and revert jetbrains-preinstall docs
- Restore original folder paths for devcontainer templates (/workspaces)
- Keep /home/coder for other templates
- Revert jetbrains-preinstall.md to original jetbrains-gateway format
  as the new jetbrains module doesn't support preinstall features

Co-authored-by: AtifUpdate <[email protected]>
  • Loading branch information
blink-so[bot] and AtifUpdate committed Aug 27, 2025
commit 9782b3e69bfe0212778d18a8db7cad4b711da6d0
30 changes: 23 additions & 7 deletions docs/admin/templates/extending-templates/jetbrains-preinstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,31 @@ Add the following command to your template's `startup_script`:

## Configure JetBrains Gateway Module

If you are using our [jetbrains](https://registry.coder.com/modules/coder/jetbrains) module, you can configure it by adding the following snippet to your template:
If you are using our [jetbrains-gateway](https://registry.coder.com/modules/coder/jetbrains-gateway) module, you can configure it by adding the following snippet to your template:

```tf
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder/example"
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.29"
agent_id = coder_agent.main.id
folder = "/home/coder/example"
jetbrains_ides = ["IU"]
default = "IU"
latest = false
jetbrains_ide_versions = {
"IU" = {
build_number = "251.25410.129"
version = "2025.1"
}
}
}

resource "coder_agent" "main" {
...
startup_script = <<-EOF
~/JetBrains/*/bin/remote-dev-server.sh registerBackendLocationForGateway
EOF
}
```

Expand Down
2 changes: 1 addition & 1 deletion examples/templates/docker-envbuilder/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ module "jetbrains" {
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder"
folder = "/workspaces"
}

resource "coder_metadata" "container_info" {
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/gcp-devcontainer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ module "jetbrains" {
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder"
folder = "/workspaces"
}

# Create metadata for the workspace and home disk.
Expand Down
Loading