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

Skip to content

Commit 9782b3e

Browse files
blink-so[bot]AtifUpdate
andcommitted
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]>
1 parent 2e63a26 commit 9782b3e

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

docs/admin/templates/extending-templates/jetbrains-preinstall.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,31 @@ Add the following command to your template's `startup_script`:
4040

4141
## Configure JetBrains Gateway Module
4242

43-
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:
43+
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:
4444

4545
```tf
46-
module "jetbrains" {
47-
count = data.coder_workspace.me.start_count
48-
source = "registry.coder.com/modules/jetbrains/coder"
49-
version = "1.0.3"
50-
agent_id = coder_agent.main.id
51-
folder = "/home/coder/example"
46+
module "jetbrains_gateway" {
47+
count = data.coder_workspace.me.start_count
48+
source = "registry.coder.com/modules/jetbrains-gateway/coder"
49+
version = "1.0.29"
50+
agent_id = coder_agent.main.id
51+
folder = "/home/coder/example"
52+
jetbrains_ides = ["IU"]
53+
default = "IU"
54+
latest = false
55+
jetbrains_ide_versions = {
56+
"IU" = {
57+
build_number = "251.25410.129"
58+
version = "2025.1"
59+
}
60+
}
61+
}
62+
63+
resource "coder_agent" "main" {
64+
...
65+
startup_script = <<-EOF
66+
~/JetBrains/*/bin/remote-dev-server.sh registerBackendLocationForGateway
67+
EOF
5268
}
5369
```
5470

examples/templates/docker-envbuilder/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ module "jetbrains" {
340340
source = "registry.coder.com/coder/jetbrains/coder"
341341
version = "1.0.3"
342342
agent_id = coder_agent.main.id
343-
folder = "/home/coder"
343+
folder = "/workspaces"
344344
}
345345

346346
resource "coder_metadata" "container_info" {

examples/templates/gcp-devcontainer/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ module "jetbrains" {
301301
source = "registry.coder.com/coder/jetbrains/coder"
302302
version = "1.0.3"
303303
agent_id = coder_agent.main.id
304-
folder = "/home/coder"
304+
folder = "/workspaces"
305305
}
306306

307307
# Create metadata for the workspace and home disk.

0 commit comments

Comments
 (0)