You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the `code-server` integrated terminal fails to load, (i.e., xterm fails to load), go to DevTools to ensure xterm is loaded, clear your browser cache and refresh.
80
+
If the code-server integrated terminal fails to load, (i.e., xterm fails to load), go to DevTools to ensure xterm is loaded, clear your browser cache and refresh.
81
81
</blockquote>
82
82
83
+
83
84
## VNC Desktop
84
85
85
86

@@ -112,12 +113,9 @@ As a starting point, see the [desktop-container](https://github.com/bpmct/coder-
112
113
113
114
Workspace requirements:
114
115
115
-
- JetBrains server
116
-
- IDE (e.g IntelliJ IDEA, pyCharm)
117
-
118
-
Installation instructions will vary depending on your workspace's operating system, platform, and build system.
116
+
- JetBrains projector CLI
117
+
- At least 4 CPU cores and 4 GB RAM
119
118
120
-
As a starting point, see the [projector-container](https://github.com/bpmct/coder-templates/tree/main/projector-container) community template. It builds & provisions a Dockerized workspaces for the following IDEs:
121
119
122
120
- CLion
123
121
- pyCharm
@@ -132,6 +130,102 @@ As a starting point, see the [projector-container](https://github.com/bpmct/code
132
130
- WebStorm
133
131
- ➕ code-server (just in case!)
134
132
133
+
134
+
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.
135
+
136
+
137
+

138
+
139
+
140
+
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.
141
+
142
+
> 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.
143
+
144
+
```hcl
145
+
146
+
variable "jetbrains-ide" {
147
+
description = "JetBrains IntelliJ IDE"
148
+
default = "IntelliJ IDEA Community Edition 2022.1.3"
149
+
validation {
150
+
condition = contains([
151
+
"IntelliJ IDEA Community Edition 2022.1.3",
152
+
"IntelliJ IDEA Community Edition 2021.3",
153
+
"IntelliJ IDEA Ultimate 2022.1.3",
154
+
"IntelliJ IDEA Ultimate 2021.3"
155
+
], var.jetbrains-ide)
156
+
# Find all compatible IDEs with the `projector IDE find` command
157
+
error_message = "Invalid JetBrains IDE!"
158
+
}
159
+
}
160
+
161
+
resource "coder_agent" "coder" {
162
+
dir = "/home/coder"
163
+
startup_script = <<EOT
164
+
#!/bin/bash
165
+
166
+
# install projector
167
+
PROJECTOR_BINARY=/home/coder/.local/bin/projector
168
+
if [ -f $PROJECTOR_BINARY ]; then
169
+
echo 'projector has already been installed - check for update'
170
+
/home/coder/.local/bin/projector self-update 2>&1 | tee projector.log
171
+
else
172
+
echo 'installing projector'
173
+
pip3 install projector-installer --user 2>&1 | tee projector.log
174
+
fi
175
+
176
+
echo 'access projector license terms'
177
+
/home/coder/.local/bin/projector --accept-license 2>&1 | tee -a projector.log
> 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.
220
+
221
+

222
+
223
+
> 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.
224
+
225
+
> 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.
226
+
227
+
228
+
135
229
## JupyterLab
136
230
137
231
Configure your agent and `coder_app` like so to use Jupyter:
0 commit comments