Remote development environments on your infrastructure
Go to file
Spike Curtis b79785c86f
feat: move agent v2 API connection monitoring to yamux layer (#11910)
Moves monitoring of the agent v2 API connection to the yamux layer.

Present behavior monitors this at the websocket layer, and closes the websocket on completion. This can cause yamux to hit unexpected errors since the connection is closed underneath it.

This might be the cause of yamux errors that some customers are seeing

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/tCz4CxRU9jhAJ7zH8RTi/53b8b5ef-e9e5-44a5-b559-99c37c136071.png)

In any case, it's more graceful to close yamux first and let yamux close the underlying websocket.  That should limit yamux error logging to truly unexpected/error cases.

The only downside is that the yamux `Close()` doesn't accept a reason, so if the agent becomes outdated and we close the API connection, the agent just sees the connection close without a reason.  I'm not sure we log this at the agent anyway, but it would be nice.  I think more accurate logging on Coderd are more important.

I've also added some logging when the monitor disconnects for reasons other than the context being canceled (e.g. agent outdated, failed pings).
2024-02-01 08:18:35 +04:00
.devcontainer chore: revert nix dogfood image (#11022) 2023-12-05 09:02:57 +00:00
.github chore: experiment building dogfood image with nix (#11680) 2024-01-31 14:27:11 +00:00
.vscode chore: remove legacy wsconncache (#11816) 2024-01-30 07:56:36 +04:00
agent feat: use agent v2 API to update app health (#11889) 2024-01-30 11:35:12 +04:00
buildinfo fix: consider all 'devel' builds as 'dev' builds (#9794) 2023-09-25 13:59:49 -05:00
cli feat: add logging to pgPubsub (#11953) 2024-01-31 15:49:16 +04:00
cmd chore: improve fake IDP script (#11602) 2024-01-15 10:01:41 -06:00
coderd feat: move agent v2 API connection monitoring to yamux layer (#11910) 2024-02-01 08:18:35 +04:00
codersdk feat: add logging to agent yamux session (#11912) 2024-02-01 08:18:13 +04:00
cryptorand chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
docs fix: strip timezone information from a date in dau response (#11962) 2024-01-31 16:01:50 -06:00
dogfood fix(dogfood): fix startup script on workspace creation (#11958) 2024-01-31 18:01:22 +03:00
enterprise feat: add logging to pgcoord subscribe/unsubscribe (#11952) 2024-01-31 12:15:58 +04:00
examples docs: fix example template README 404s and semantics (#11903) 2024-01-29 21:34:12 +00:00
helm chore: remove `useLocalStorage` hook (#11712) 2024-01-19 16:04:19 -07:00
offlinedocs chore: bump the offlinedocs group in /offlinedocs with 1 update (#11428) 2024-01-05 02:03:26 +03:00
provisioner feat: support template bundles as zip archives (#11839) 2024-01-31 14:49:55 +01:00
provisionerd fix: publish workspace update on quota failure (#11559) 2024-01-11 14:59:40 -05:00
provisionersdk feat: expose `owner_name` in `coder_workspace` resource (#11639) 2024-01-17 13:20:45 +01:00
pty feat(agent/agentssh): handle session signals (#10842) 2023-11-23 19:55:36 +02:00
scaletest feat(scaletest/templates): add support for concurrent scenarios (#11753) 2024-01-30 14:54:54 +02:00
scripts chore: bump alpine from 3.19.0 to 3.19.1 in /scripts (#11887) 2024-01-30 00:35:44 +03:00
site fix: improve click UX and styling for Auth Token page (#11863) 2024-01-31 21:25:30 -05:00
tailnet fix: close MultiAgentConn when coordinator closes (#11941) 2024-01-31 00:38:19 +04:00
testutil feat: set peers lost when disconnected from coordinator (#11681) 2024-01-22 15:26:20 +04:00
.dockerignore chore: experiment building dogfood image with nix (#11680) 2024-01-31 14:27:11 +00:00
.editorconfig chore: Improve project-wide prettier formatting and ignored files (#5505) 2023-01-03 15:11:13 +02:00
.git-blame-ignore-revs chore: add #9555 to .git-blame-ignore-revs (#9557) 2023-09-06 13:10:58 -06:00
.gitattributes feat: add additional fields to first time setup trial flow (#11533) 2024-01-16 18:19:16 -06:00
.gitignore chore(site): remove xstate (#10659) 2023-11-14 18:34:38 +00:00
.golangci.yaml chore: enable exhaustruct linter for database param structs (#9995) 2023-10-03 09:23:45 +01:00
.prettierignore feat: support v2 Tailnet API in AGPL coordinator (#11010) 2023-12-06 15:04:28 +04:00
.prettierignore.include feat: support v2 Tailnet API in AGPL coordinator (#11010) 2023-12-06 15:04:28 +04:00
.prettierrc.yaml chore: format code with semicolons when using prettier (#9555) 2023-09-06 12:59:26 -06:00
.swaggo chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00: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 feat: make ServerTailnet set peers lost when it reconnects to the coordinator (#11682) 2024-01-23 13:17:56 +04:00
README.md chore: replace remote with cloud when referencing development environments; add Slack as an enterprise option for community sharing (#11375) 2024-01-15 05:31:35 -05:00
SECURITY.md chore(docs): update docs for correct use of shell and console and enforce linewidth (#9245) 2023-08-23 12:27:57 +03:00
coder.env docs: align CODER_HTTP_ADDRESS with document (#10779) 2023-11-19 15:38:39 +00:00
docker-compose.yaml fix: use `CODER_HTTP_ADDRESS` in `docker-compose.yml` (#7185) 2023-04-18 11:44:41 -05:00
flake.lock chore: experiment building dogfood image with nix (#11680) 2024-01-31 14:27:11 +00:00
flake.nix chore: experiment building dogfood image with nix (#11680) 2024-01-31 14:27:11 +00:00
go.mod feat: use Agent v2 API for Service Banner (#11806) 2024-01-30 07:44:47 +04:00
go.sum feat: use Agent v2 API for Service Banner (#11806) 2024-01-30 07:44:47 +04:00
install.sh feat: add `--net-admin` option to install script (#9953) 2023-10-03 23:01:46 +00:00
package.json chore: fix linting issues and generated files (#10317) 2023-10-17 14:41:35 -06:00
pnpm-lock.yaml docs: ui option for adding licenses (#9322) 2023-08-24 22:23:59 -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 Cloud Development Environments



Quickstart | Docs | Why Coder | Enterprise

discord codecov release godoc Go Report Card license

Coder enables organizations to set up development environments in their public or private cloud infrastructure. Cloud development 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 cloud 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 cloud 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 install guides 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 or Slack 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.