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
resources in the template. This gives you full control over the version,
15
+
behavior, and configuration for applications in your workspace.
16
+
17
+
## code-server
18
+
19
+

20
+
21
+
[code-server](https://github.com/coder/coder) is our supported method of running VS Code in the web browser. A simple way to install code-server in Linux/MacOS workspaces is via the Coder agent in your template:
22
+
23
+
```sh
24
+
# edit your template
25
+
cd your-template/
26
+
vim main.tf
27
+
```
28
+
29
+
```hcl
30
+
resource "coder_agent" "dev" {
31
+
arch = "amd64"
32
+
os = "linux"
33
+
startup_script = <<EOF
34
+
#!/bin/sh
35
+
# install and start code-server
36
+
curl -fsSL https://code-server.dev/install.sh | sh
37
+
code-server --auth none --port 13337
38
+
EOF
39
+
}
40
+
```
41
+
42
+
For advanced use, we recommend installing code-server in your VM snapshot or container image. Here's a Dockerfile which leverages some special [code-server features](https://coder.com/docs/code-server/):
43
+
44
+
```Dockerfile
45
+
FROM codercom/enterprise-base:ubuntu
46
+
47
+
# install a specific code-server version
48
+
RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version=4.3.0
49
+
50
+
# pre-install versions
51
+
RUN code-server --install-extension eamodio.gitlens
52
+
53
+
# directly start code-server with the agent's startup_script (see above),
54
+
# or use a proccess manager like supervisord
55
+
```
56
+
57
+
You'll also need to specify a `coder_app` resource related to the agent. This is how code-server is displayed on the workspace page.
Installation instructions will vary depending on your workspace's operating system, platform, and build system.
80
+
81
+
> Coder-provided VNC clients are on the roadmap ([#2106](https://github.com/coder/coder/issues/2106)).
82
+
83
+
As a starting point, see the [desktop-container](https://github.com/bpmct/coder-templates/tree/main/desktop-container) community template. It builds & provisions a Dockerized workspace with the following software:
84
+
85
+
- Ubuntu 20.04
86
+
- TigerVNC server
87
+
- noVNC client
88
+
- XFCE Desktop
89
+
90
+
## JetBrains Projector
91
+
92
+
[JetBrains Projector](https://jetbrains.github.io/projector-client/mkdocs/latest/) is a JetBrains Incubator project which renders JetBrains IDEs in the web browser.
93
+
94
+

95
+
96
+
> It is common to see latency and performance issues with Projector. We recommend using [Jetbrains Gateway](https://youtrack.jetbrains.com/issues/GTW) whenever possible (also no Template edits required!)
97
+
98
+
Workspace requirements:
99
+
100
+
- JetBrains server
101
+
- IDE (e.g IntelliJ IDEA, pyCharm)
102
+
103
+
Installation instructions will vary depending on your workspace's operating system, platform, and build system.
104
+
105
+
As a starting point, see the [jetbrains-container](https://github.com/bpmct/coder-templates/tree/main/jetbrains-container) community template. It builds & provisions a Dockerized workspaces for the following IDEs:
106
+
107
+
- CLion
108
+
- pyCharm
109
+
- DataGrip
110
+
- IntelliJ IDEA Community
111
+
- IntelliJ IDEA Ultimate
112
+
- PhpStorm
113
+
- pyCharm Community
114
+
- PyCharm Professional
115
+
- Rider
116
+
- Rubymine
117
+
- WebStorm
118
+
- ➕ code-server (just in case!)
119
+
120
+
## Custom IDEs and applications
121
+
122
+
As long as the process is running on the specified port inside your resource, you support any application.
0 commit comments