Remote development environments on your infrastructure
Go to file
Spike Curtis 4e7beee102
feat: show tailnet peer diagnostics after coder ping (#12314)
Beginnings of a solution to #12297 

Doesn't cover disco or definitively display whether we successfully connected to DERP, but shows some checklist diagnostics for connecting to an agent.

For this first PR, I just added it to `coder ping` to see how we like it, but could be incorporated into `coder ssh` _et al._ after a timeout.

```
$ coder ping dogfood2
p2p connection established in 147ms
pong from dogfood2 p2p via  95.217.xxx.yyy:42631  in 147ms
pong from dogfood2 p2p via  95.217.xxx.yyy:42631  in 140ms
pong from dogfood2 p2p via  95.217.xxx.yyy:42631  in 140ms
✔ preferred DERP region 999 (Council Bluffs, Iowa)
✔ sent local data to Coder networking coodinator
✔ received remote agent data from Coder networking coordinator
    preferred DERP 10013 (Europe Fly.io (Paris))
    endpoints: 95.217.xxx.yyy:42631, 95.217.xxx.yyy:37576, 172.17.0.1:37576, 172.20.0.10:37576
✔ Wireguard handshake 11s ago
```
2024-02-27 22:04:46 +04:00
.devcontainer chore: revert nix dogfood image (#11022) 2023-12-05 09:02:57 +00:00
.github ci: bump the github-actions group with 1 update (#12303) 2024-02-27 11:53:48 -03:00
.vscode fix: add tests and improve accessibility for useClickable (#12218) 2024-02-21 10:59:13 -05:00
agent test(agent/agentscripts): fix test flake in `TestEnv` (#12326) 2024-02-27 17:58:10 +00:00
apiversion fix(enterprise/coderd): check provisionerd API version on connection (#12191) 2024-02-16 18:43:07 +00:00
buildinfo fix: consider all 'devel' builds as 'dev' builds (#9794) 2023-09-25 13:59:49 -05:00
cli feat: show tailnet peer diagnostics after coder ping (#12314) 2024-02-27 22:04:46 +04:00
cmd chore: improve fake IDP script (#11602) 2024-01-15 10:01:41 -06:00
coderd fix(coderd): mark provisioner daemon psk as secret (#12322) 2024-02-27 16:33:32 +00:00
codersdk feat: show tailnet peer diagnostics after coder ping (#12314) 2024-02-27 22:04:46 +04:00
cryptorand chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
docs fix(coderd): mark provisioner daemon psk as secret (#12322) 2024-02-27 16:33:32 +00:00
dogfood chore(dogfood): bump jetbrains-gateway module to 1.0.6 (#12298) 2024-02-26 11:57:40 +00:00
enterprise feat: audit oauth2 app management (#12275) 2024-02-26 23:52:08 +00:00
examples fix(examples): remove dead code comment (#12194) 2024-02-17 17:38:19 +00:00
helm fix(helm)!: remove prometheus-http port declaration from coderd service spec (#12214) 2024-02-20 11:36:17 +00:00
offlinedocs chore: bump the offlinedocs group in /offlinedocs with 1 update (#11428) 2024-01-05 02:03:26 +03:00
provisioner feat: add support for optional external auth providers (#12021) 2024-02-21 11:18:38 -07:00
provisionerd feat: add support for optional external auth providers (#12021) 2024-02-21 11:18:38 -07:00
provisionersdk feat: add support for optional external auth providers (#12021) 2024-02-21 11:18:38 -07:00
pty feat(agent/agentssh): handle session signals (#10842) 2023-11-23 19:55:36 +02:00
scaletest chore(examples): remove deprecated startup_script_timeout and shutdown_script_timeout (#12104) 2024-02-12 14:29:41 +00:00
scripts chore: drop github per user rate limit tracking (#12286) 2024-02-23 11:17:52 -06:00
site chore(site): apply code conventions (#12316) 2024-02-27 12:24:07 +00:00
tailnet feat: show tailnet peer diagnostics after coder ping (#12314) 2024-02-27 22:04:46 +04:00
testutil feat(coderd): add prometheus metrics to servertailnet (#11988) 2024-02-05 23:57:18 -06: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 support for optional external auth providers (#12021) 2024-02-21 11:18:38 -07: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 chore: clean out site/out/assets/ when building to prevent "too much data" errors (#12313) 2024-02-27 10:45:57 -07: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 fix: nix: google-chrome installed conditionally (#12029) 2024-02-06 16:46:58 +01:00
go.mod chore: bump github.com/elastic/go-sysinfo from 1.12.0 to 1.13.1 (#12213) 2024-02-27 15:19:43 +05:00
go.sum chore: bump github.com/elastic/go-sysinfo from 1.12.0 to 1.13.1 (#12213) 2024-02-27 15:19:43 +05: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.