Skip to content

Commit df95d65

Browse files
committed
chore: remove sample jetbrains projector code, only use 2 kubernetes example repos
1 parent 17f5e83 commit df95d65

File tree

1 file changed

+3
-82
lines changed

1 file changed

+3
-82
lines changed

docs/ides/web-ides.md

Lines changed: 3 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -117,92 +117,13 @@ Workspace requirements:
117117
- RubyMine
118118
- WebStorm
119119

120-
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.
121-
122-
![IntelliJ in Coder](../images/projector-intellij.png)
123-
124-
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.
125-
126-
> 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.
127-
128-
```hcl
129-
130-
variable "jetbrains-ide" {
131-
description = "JetBrains IntelliJ IDE"
132-
default = "IntelliJ IDEA Community Edition 2022.1.3"
133-
validation {
134-
condition = contains([
135-
"IntelliJ IDEA Community Edition 2022.1.3",
136-
"IntelliJ IDEA Community Edition 2021.3",
137-
"IntelliJ IDEA Ultimate 2022.1.3",
138-
"IntelliJ IDEA Ultimate 2021.3"
139-
], var.jetbrains-ide)
140-
# Find all compatible IDEs with the `projector IDE find` command
141-
error_message = "Invalid JetBrains IDE!"
142-
}
143-
}
144-
145-
resource "coder_agent" "coder" {
146-
dir = "/home/coder"
147-
startup_script = <<EOT
148-
#!/bin/bash
149-
150-
# install projector
151-
PROJECTOR_BINARY=/home/coder/.local/bin/projector
152-
if [ -f $PROJECTOR_BINARY ]; then
153-
echo 'projector has already been installed - check for update'
154-
/home/coder/.local/bin/projector self-update 2>&1 | tee projector.log
155-
else
156-
echo 'installing projector'
157-
pip3 install projector-installer --user 2>&1 | tee projector.log
158-
fi
159-
160-
echo 'access projector license terms'
161-
/home/coder/.local/bin/projector --accept-license 2>&1 | tee -a projector.log
162-
163-
PROJECTOR_CONFIG_PATH=/home/coder/.projector/configs/intellij
164-
165-
if [ -d "$PROJECTOR_CONFIG_PATH" ]; then
166-
echo 'projector has already been configured and the JetBrains IDE downloaded - skip step' 2>&1 | tee -a projector.log
167-
else
168-
echo 'autoinstalling IDE and creating projector config folder'
169-
/home/coder/.local/bin/projector ide autoinstall --config-name "intellij" --ide-name "${var.jetbrains-ide}" --hostname=localhost --port 8997 --use-separate-config --password coder 2>&1 | tee -a projector.log
170-
171-
# delete the configuration's run.sh input parameters that check password tokens since tokens do not work with coder_app yet passed in the querystring
172-
grep -iv "HANDSHAKE_TOKEN" $PROJECTOR_CONFIG_PATH/run.sh > temp && mv temp $PROJECTOR_CONFIG_PATH/run.sh 2>&1 | tee -a projector.log
173-
chmod +x $PROJECTOR_CONFIG_PATH/run.sh 2>&1 | tee -a projector.log
174-
175-
echo "creation of intellij configuration complete" 2>&1 | tee -a projector.log
176-
fi
177-
# start JetBrains projector-based IDE
178-
/home/coder/.local/bin/projector run intellij &
179-
180-
EOT
181-
}
182-
183-
resource "coder_app" "intellij" {
184-
agent_id = coder_agent.coder.id
185-
slug = "intellij"
186-
display_name = "${var.jetbrains-ide}"
187-
icon = "/icon/intellij.svg"
188-
url = "http://localhost:8997/"
189-
190-
healthcheck {
191-
url = "http://localhost:8997/"
192-
interval = 6
193-
threshold = 20
194-
}
195-
196-
}
197-
```
198-
199120
**Pre-built templates:**
200121

201-
You can also reference/use to these pre-built templates with JetBrains projector:
122+
You can reference/use these pre-built templates with JetBrains projector:
202123

203-
- IntelliJ ([Docker](https://github.com/mark-theshark/v2-templates/tree/main/docker-with-intellij), [Kubernetes](https://github.com/sharkymark/v2-templates/tree/main/multi-projector-intellij))
124+
- IntelliJ [Kubernetes](https://github.com/sharkymark/v2-templates/tree/main/multi-projector-intellij))
204125

205-
- PyCharm ([Docker](https://github.com/mark-theshark/v2-templates/tree/main/docker-with-pycharm), [Kubernetes](https://github.com/sharkymark/v2-templates/tree/main/multi-projector-pycharm)
126+
- PyCharm [Kubernetes](https://github.com/sharkymark/v2-templates/tree/main/multi-projector-pycharm)
206127

207128
> You need to have a valid `~/.kube/config` on your Coder host and a namespace on a Kubernetes cluster to use the Kubernetes pod template examples.
208129

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy