Remote development environments on your infrastructure
Go to file
Kyle Carberry 1724cbf872
feat: automatically use websockets if DERP upgrade is unavailable (#6381)
* feat: automatically use websockets if DERP upgrade is unavailable

This might be our biggest hangup for deployments at the moment...

Load balancers by default do not support the DERP protocol, so many
of our prospects and customers run into failing workspace connections.
This automatically swaps to use WebSockets, and reports the reason to
coderd.

In a future contribution, a warning will appear by the agent if it was
forced to use WebSockets instead of DERP.

* Fix nil pointer type in Tailscale dep

* Fix requested changes
2023-03-01 22:18:14 +00:00
.devcontainer chore: update to go 1.20 (#5968) 2023-02-02 12:36:27 -06:00
.github chore: bump aquasecurity/trivy-action from 0.8.0 to 0.9.1 (#6385) 2023-03-01 15:19:13 -06:00
.vscode feat: add 'Show all tokens' toggle for owners (#6325) 2023-03-01 08:35:55 -08:00
agent chore: convert agent stats to use a table (#6374) 2023-02-28 13:33:33 -06:00
buildinfo feat: remove server subcommand from slim binaries (#5747) 2023-01-17 16:58:00 +00:00
cli feat: add 'Show all tokens' toggle for owners (#6325) 2023-03-01 08:35:55 -08:00
cmd feat: add support for `coder_git_auth` data source (#6334) 2023-02-27 10:18:19 -06:00
coderd feat: automatically use websockets if DERP upgrade is unavailable (#6381) 2023-03-01 22:18:14 +00:00
codersdk feat: add 'Show all tokens' toggle for owners (#6325) 2023-03-01 08:35:55 -08:00
cryptorand chore: format Go more aggressively 2023-02-18 18:32:09 -06:00
docs docs: fix very small typo 2023-02-28 16:51:53 -06:00
dogfood chore: update template examples and docs to install code-server under /tmp (#6138) 2023-02-10 13:36:46 +00:00
enterprise feat: add support for `coder_git_auth` data source (#6334) 2023-02-27 10:18:19 -06:00
examples add: resource reqs/limits on K8s template (#6308) 2023-02-26 19:23:45 -05:00
helm fix: add notes to helm chart about access URL (#6231) 2023-02-16 08:46:49 -06:00
provisioner feat: add support for `coder_git_auth` data source (#6334) 2023-02-27 10:18:19 -06:00
provisionerd feat: add support for `coder_git_auth` data source (#6334) 2023-02-27 10:18:19 -06:00
provisionersdk feat: add support for `coder_git_auth` data source (#6334) 2023-02-27 10:18:19 -06:00
pty test: Refactor ptytest to use contexts and less duplication (#5740) 2023-01-17 16:02:38 +02:00
scaletest chore: format Go more aggressively 2023-02-18 18:32:09 -06:00
scripts feat(docs): rework CLI docs (#6312) 2023-02-23 01:53:21 +00:00
site chore: bump eslint-plugin-import from 2.26.0 to 2.27.5 in /site (#6391) 2023-03-01 21:55:27 +00:00
tailnet feat: automatically use websockets if DERP upgrade is unavailable (#6381) 2023-03-01 22:18:14 +00:00
testutil chore: update to go 1.20 (#5968) 2023-02-02 12:36:27 -06:00
.editorconfig chore: Improve project-wide prettier formatting and ignored files (#5505) 2023-01-03 15:11:13 +02:00
.gitattributes chore: mark apidoc files as linguist-generated (#5713) 2023-01-13 18:01:40 +01:00
.gitignore chore(site): Improve the e2e setup (#5840) 2023-01-24 14:45:44 -03:00
.golangci.yaml chore: Improve project-wide prettier formatting and ignored files (#5505) 2023-01-03 15:11:13 +02:00
.prettierignore chore(site): Improve the e2e setup (#5840) 2023-01-24 14:45:44 -03:00
.prettierignore.include chore: Improve project-wide prettier formatting and ignored files (#5505) 2023-01-03 15:11:13 +02:00
.prettierrc.yaml chore: Improve project-wide prettier formatting and ignored files (#5505) 2023-01-03 15:11:13 +02:00
.swaggo docs: update swaggo/swag v1.8.9 (#5590) 2023-01-10 15:47:08 +01:00
LICENSE chore: Add license (#841) 2022-04-04 11:55:06 -05:00
LICENSE.enterprise Add Enterprise License text (#3932) 2022-09-07 16:55:57 +00:00
Makefile fix: use proper generated cli.md for deploy (#6323) 2023-02-23 11:07:57 -06:00
README.md Revert "docs: Change console to shell and remove unused elements (#5960)" (#5964) 2023-02-01 17:05:45 -03:00
SECURITY.md docs: create a SECURITY.md file (#5875) 2023-01-26 14:13:36 -06:00
coder.env feat: Add tunnel by default (#4399) 2022-10-07 08:05:56 -05:00
coder.service Fix kill mode stopping the built-in PostgreSQL 2022-10-17 23:50:29 +00:00
docker-compose.yaml feat: Add tunnel by default (#4399) 2022-10-07 08:05:56 -05:00
flake.lock fix: Update flake.lock to fix Go build (#6173) 2023-02-13 11:05:28 +01:00
flake.nix chore: update to go 1.20 (#5968) 2023-02-02 12:36:27 -06:00
go.mod feat: automatically use websockets if DERP upgrade is unavailable (#6381) 2023-03-01 22:18:14 +00:00
go.sum feat: automatically use websockets if DERP upgrade is unavailable (#6381) 2023-03-01 22:18:14 +00:00
install.sh fix: use `-U` when installing with rpm (#6349) 2023-02-26 18:11:23 +00:00
preinstall.sh fix: Refactor preinstall script to use useradd if adduser is not available (#2858) 2022-07-08 16:09:19 -05:00
release.key feat: PGP sign the checksum file in releases (#5757) 2023-01-18 04:45:27 +10:00
shell.nix chore: Add nix shell for simple development setup (#3399) 2022-08-08 15:49:12 +00:00

README.md

Self-Hosted Remote Development Environments



Quickstart | Docs | Why Coder | Enterprise

discord codecov release godoc Go Report Card license

Coder enables organizations to set up development environments in the cloud. Environments are defined with Terraform, connected through a secure high-speed Wireguard® tunnel, and are automatically shut down when not in use to save on costs. Coder gives engineering teams the flexibility to use the cloud for workloads that are most beneficial to them.

  • Define development environments in Terraform
    • EC2 VMs, Kubernetes Pods, Docker Containers, etc.
  • Automatically shutdown idle resources to save on costs
  • Onboard developers in seconds instead of days

Quickstart

The most convenient way to try Coder is to install it on your local machine and experiment with provisioning development environments using Docker (works on Linux, macOS, and Windows).

# First, install Coder
curl -L https://coder.com/install.sh | sh

# Start the Coder server (caches data in ~/.cache/coder)
coder server

# Navigate to http://localhost:3000 to create your initial user
# Create a Docker template, and provision a workspace

Install

The easiest way to install Coder is to use our install script for Linux and macOS. For Windows, use the latest ..._installer.exe file from GitHub Releases.

curl -L https://coder.com/install.sh | sh

You can run the install script with --dry-run to see the commands that will be used to install without executing them. You can modify the installation process by including flags. Run the install script with --help for reference.

See install for additional methods.

Once installed, you can start a production deployment1 with a single command:

# Automatically sets up an external access URL on *.try.coder.app
coder server

# Requires a PostgreSQL instance (version 13 or higher) and external access URL
coder server --postgres-url <url> --access-url <url>

1 For production deployments, set up an external PostgreSQL instance for reliability.

Use coder --help to get a list of flags and environment variables. Use our quickstart guide for a full walkthrough.

Documentation

Browse our docs here or visit a specific section below:

  • Templates: Templates are written in Terraform and describe the infrastructure for workspaces
  • Workspaces: Workspaces contain the IDEs, dependencies, and configuration information needed for software development
  • IDEs: Connect your existing editor to a workspace
  • Administration: Learn how to operate Coder
  • Enterprise: Learn about our paid features built for large teams

Community and Support

Feel free to open an issue if you have questions, run into bugs, or have a feature request.

Join our Discord to provide feedback on in-progress features, and chat with the community using Coder!

Contributing

Contributions are welcome! Read the contributing docs to get started.

Find our list of contributors here.

We are always working on new integrations. Feel free to open an issue to request an integration. Contributions are welcome in any official or community repositories.

Official

Community

  • Provision Coder with Terraform: Provision Coder on Google GKE, Azure AKS, AWS EKS, DigitalOcean DOKS, IBMCloud K8s, OVHCloud K8s, and Scaleway K8s Kapsule with Terraform
  • Coder GitHub Action: A GitHub Action that updates Coder templates
  • Various Templates: Hetzner Cloud, Docker in Docker, and other templates the community has built.