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
chore: update web-ides section with revised docker examples and Airflow/RStudio using subdomain config (#4855)
* chore: update web-ides section with docker examples and subdomain rstudio and airflow examples
* Update docs/ides/web-ides.md
* Update docs/ides/web-ides.md
Co-authored-by: Ben Potter <ben@coder.com>
Copy file name to clipboardExpand all lines: docs/ides/web-ides.md
+60-101
Original file line number
Diff line number
Diff line change
@@ -117,99 +117,34 @@ Workspace requirements:
117
117
- RubyMine
118
118
- WebStorm
119
119
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.
120
+
For advanced users who want to make a custom image, you can install the
121
+
Projector CLI in the `startup_script` of the `coder_agent` resource in a Coder
122
+
template. Using the Projector CLI, you can use `projector config add` and
123
+
`projector run` to configure and start a JetBrains IDE in your workspace.
121
124
122
-

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

144
+
> You need to have a valid `~/.kube/config` on your Coder host and a namespace
145
+
> on a Kubernetes cluster to use the Kubernetes pod template examples.
211
146
212
-
> 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.
147
+
======= 
Check out this [RStudio Dockerfile](https://github.com/mark-theshark/dockerfiles/blob/main/rstudio/no-args/Dockerfile) for a starting point to creating a template.
283
-
284
225

285
226
286
227
### Airflow
287
228
229
+
Configure your agent and `coder_app` like so to use Airflow. Notice the
0 commit comments