2022-03-28 20:21:00 +00:00
|
|
|
# Coder
|
2022-01-04 02:54:27 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
[!["GitHub
|
|
|
|
Discussions"](https://img.shields.io/badge/%20GitHub-%20Discussions-gray.svg?longCache=true&logo=github&colorB=purple)](https://github.com/coder/coder/discussions)
|
|
|
|
[!["Join us on
|
|
|
|
Slack"](https://img.shields.io/badge/join-us%20on%20slack-gray.svg?longCache=true&logo=slack&colorB=brightgreen)](https://coder.com/community)
|
|
|
|
[![Twitter
|
|
|
|
Follow](https://img.shields.io/twitter/follow/CoderHQ?label=%40CoderHQ&style=social)](https://twitter.com/coderhq)
|
|
|
|
[![codecov](https://codecov.io/gh/coder/coder/branch/main/graph/badge.svg?token=TNLW3OAP6G)](https://codecov.io/gh/coder/coder)
|
2022-01-03 18:52:07 +00:00
|
|
|
|
2022-03-28 20:21:00 +00:00
|
|
|
Provision remote development environments with Terraform.
|
2022-01-04 02:54:27 +00:00
|
|
|
|
2022-03-28 20:21:00 +00:00
|
|
|
## Highlights
|
2022-01-03 18:52:07 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
- Automate development environments for Linux, Windows, and macOS
|
2022-03-28 20:21:00 +00:00
|
|
|
- Start writing code with a single command
|
2022-04-26 17:10:50 +00:00
|
|
|
- Get started quickly using one of the [examples](./examples) provided
|
2022-01-03 18:52:07 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
## Installing Coder
|
2022-01-11 21:05:49 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
Install [the latest release](https://github.com/coder/coder/releases) on a system with
|
|
|
|
at least 1 CPU core and 2 GB RAM.
|
2022-02-11 04:32:00 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
To test, start with dev mode (all data is in-memory and is destroyed on exit):
|
2022-02-09 21:46:46 +00:00
|
|
|
|
2022-03-28 20:21:00 +00:00
|
|
|
```bash
|
2022-04-26 17:10:50 +00:00
|
|
|
coder server --dev
|
2022-03-28 20:21:00 +00:00
|
|
|
```
|
2022-03-16 03:55:21 +00:00
|
|
|
|
2022-03-28 20:21:00 +00:00
|
|
|
To run a production deployment with PostgreSQL:
|
2022-03-16 03:55:21 +00:00
|
|
|
|
2022-03-28 20:21:00 +00:00
|
|
|
```bash
|
2022-04-26 17:10:50 +00:00
|
|
|
CODER_PG_CONNECTION_URL="postgres://<username>@<host>/<database>?password=<password>" \
|
2022-04-23 17:19:20 +00:00
|
|
|
coder server
|
2022-03-28 20:21:00 +00:00
|
|
|
```
|
2022-03-16 03:55:21 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
To run as a system service, install with `.deb` (Debian, Ubuntu) or `.rpm`
|
|
|
|
(Fedora, CentOS, RHEL, SUSE):
|
2022-03-16 03:55:21 +00:00
|
|
|
|
2022-03-28 20:21:00 +00:00
|
|
|
```bash
|
|
|
|
# Edit the configuration!
|
2022-04-26 17:10:50 +00:00
|
|
|
sudo vim /etc/coder.d/coder.env
|
|
|
|
sudo service coder restart
|
2022-03-28 20:21:00 +00:00
|
|
|
```
|
2022-03-16 03:55:21 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
Use `coder start --help` to get a complete list of flags and environment
|
|
|
|
variables.
|
2022-03-16 03:55:21 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
### Your first workspace
|
2022-02-09 21:46:46 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
In a new terminal, create a template (e.g., a template to **Develop in Linux on
|
|
|
|
Google Cloud**):
|
|
|
|
|
|
|
|
```bash
|
|
|
|
coder templates init
|
|
|
|
coder templates create
|
2022-03-28 20:21:00 +00:00
|
|
|
```
|
2022-02-09 21:46:46 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
Create a workspace and connect to it via SSH:
|
2022-03-16 03:55:21 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
```bash
|
2022-05-02 16:08:52 +00:00
|
|
|
coder create my-first-workspace
|
2022-04-26 17:10:50 +00:00
|
|
|
coder ssh my-first-workspace
|
2022-03-28 20:21:00 +00:00
|
|
|
```
|
2022-03-16 03:55:21 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
### Modifying templates
|
2022-04-01 18:48:45 +00:00
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
You can edit the Terraform template using a sample template:
|
2022-04-01 18:48:45 +00:00
|
|
|
|
|
|
|
```sh
|
2022-04-26 17:10:50 +00:00
|
|
|
coder templates init
|
|
|
|
cd gcp-linux/
|
|
|
|
vim main.tf
|
|
|
|
coder templates update gcp-linux
|
2022-04-01 18:48:45 +00:00
|
|
|
```
|
|
|
|
|
2022-04-26 17:10:50 +00:00
|
|
|
## Documentation
|
|
|
|
|
|
|
|
- [About Coder](./about.md#about-coder)
|
|
|
|
- [Why remote development](about.md#why-remote-development)
|
|
|
|
- [Why Coder](about.md#why-coder)
|
|
|
|
- [What Coder is not](about.md#what-coder-is-not)
|
|
|
|
- [Templates](./templates.md)
|
|
|
|
- [Manage templates](./templates.md#manage-templates)
|
|
|
|
- [Persistent and ephemeral
|
|
|
|
resources](./templates.md#persistent-and-ephemeral-resources)
|
|
|
|
- [Variables](./templates.md#variables)
|
|
|
|
- [Workspaces](./workspaces.md)
|
|
|
|
- [Create workspaces](./workspaces.md#create-workspaces)
|
|
|
|
- [Connect with SSH](./workspaces.md#connect-with-ssh)
|
|
|
|
- [Editors and IDEs](./workspaces.md#editors-and-ides)
|
|
|
|
- [Workspace lifecycle](./workspaces.md#workspace-lifecycle)
|
|
|
|
- [Updating workspaces](./workspaces.md#updating-workspaces)
|
|
|
|
|
2022-04-06 17:26:17 +00:00
|
|
|
## Contributing
|
2022-01-11 21:05:49 +00:00
|
|
|
|
2022-04-06 17:26:17 +00:00
|
|
|
Read the [contributing docs](./CONTRIBUTING.md).
|
2022-04-27 11:48:45 +00:00
|
|
|
|
|
|
|
## Contributors
|
|
|
|
|
|
|
|
<!--- Add your row by date (mm/dd/yyyy), most recent date at end of list --->
|
|
|
|
|
|
|
|
| Name | Start Date | First PR Date |Organization| GitHub User Link |
|
|
|
|
| ------------- | :--------: | :-----------: |:----------:| ------------------------------: |
|
|
|
|
| Mathias Fredriksson | 04/25/2022 | 04/25/2022 | [Coder](https://github.com/coder) | [mafredri](https://github.com/mafredri) |
|