Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docs/ides/web-ides.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,33 @@ resource "coder_app" "code-server" {
}
```

## VS Code Web

VS Code supports launching a local web client using the `code serve-web`
command. To add VS COde web as a web IDE, Install and start this in your
`startup_script` and create a corresponding `coder_app`

```hcl
resource "coder_agent" "main" {
arch = "amd64"
os = "linux"
startup_script = <<EOF
#!/bin/sh
# install VS Code
curl -L "https://update.code.visualstudio.com/latest/linux-deb-x64/stable" -o /tmp/code.deb
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thoughts on us hardcoding a version here?

sudo dpkg -i /tmp/code.deb && sudo apt-get install -f -y
# start the web server on a specific port
code serve-web --port 13338 --without-connection-token --accept-server-license-terms >/tmp/vscode-web.log 2>&1 &
EOF
}
```

You also need to add a `coder_app` resource for this,

resource "coder_app" "vscode-web" { agent_id = coder_agent.coder.id slug =
"vscode-web" display_name = "VS Code Web" url = "http://localhost:13338" icon =
"/icon/code.svg" share = "owner" subdomain = true }

## JupyterLab

Configure your agent and `coder_app` like so to use Jupyter. Notice the
Expand Down