Skip to content

feat: initial docs pages #1107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
eba2d48
docs structure and edits to getting started
bpmct Apr 22, 2022
1283422
draft for about page
bpmct Apr 22, 2022
8cb6a88
skeleton for concepts page
bpmct Apr 22, 2022
4c1b767
attempt at explaining templates
bpmct Apr 24, 2022
d5f5116
left-align tables
bpmct Apr 24, 2022
de9f3af
add best practices and variables
bpmct Apr 24, 2022
892122c
update structrure
bpmct Apr 25, 2022
c526982
update structure
bpmct Apr 25, 2022
68da32e
templates are shared
bpmct Apr 25, 2022
808767e
workspaces docs
bpmct Apr 25, 2022
c8f1e25
remove coming soon
bpmct Apr 25, 2022
a803f8a
fix typos
bpmct Apr 25, 2022
1bb34bd
docs structure and edits to getting started
bpmct Apr 22, 2022
97f03e0
draft for about page
bpmct Apr 22, 2022
0485c6c
skeleton for concepts page
bpmct Apr 22, 2022
0e1bc57
attempt at explaining templates
bpmct Apr 24, 2022
57d4d0f
left-align tables
bpmct Apr 24, 2022
fc48d53
add best practices and variables
bpmct Apr 24, 2022
361decc
update structrure
bpmct Apr 25, 2022
950ee85
update structure
bpmct Apr 25, 2022
afac7ee
templates are shared
bpmct Apr 25, 2022
e67dabb
workspaces docs
bpmct Apr 25, 2022
325c46c
remove coming soon
bpmct Apr 25, 2022
e37e4a4
fix typos
bpmct Apr 25, 2022
c010530
Merge branch 'bpmct/docs' of https://github.com/coder/coder into bpmc…
Apr 25, 2022
3bf7d4f
fix typos
bpmct Apr 25, 2022
ebcb866
Update docs/about.md
bpmct Apr 26, 2022
9c18282
remove line breaks between bullets
bpmct Apr 26, 2022
3e4318a
rename variables to parameters
bpmct Apr 26, 2022
8c93ae2
reduce limits
bpmct Apr 26, 2022
75af45b
merge
bpmct Apr 26, 2022
2ef477d
chore: edit text
Apr 26, 2022
c875319
Merge branch 'bpmct/docs' of https://github.com/coder/coder into bpmc…
Apr 26, 2022
81435b5
revert some changes, fix footnotes
bpmct Apr 26, 2022
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
Prev Previous commit
Next Next commit
workspaces docs
  • Loading branch information
bpmct committed Apr 25, 2022
commit e67dabbe8a1308226d5e70fcaa29016db6cd7c5d
13 changes: 6 additions & 7 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,15 @@ Some pages are coming soon. Contributions welcome!
- [Why Coder](about.md#why-coder)
- [What Coder is not](about.md#what-coder-is-not)
- [Templates](./templates.md)
- [Managing templates](./templates.md#managing-templates)
- [Persistant and ephemeral resources](./templates.md#persistant-and-ephemeral-resources)
- [Manage templates](./templates.md#manage-templates)
- [Persistent and ephemeral resources](./templates.md#persistent-and-ephemeral-resources)
- [Variables](./templates.md#variables)
- [Workspaces](./workspaces.md)
- [Managing 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)
- Guides
- Using the Coder CLI
- Install Coder on a VM with Caddy + LetsEncrypt
- Building templates in Coder
- [Workspace lifecycle](./workspaces.md#workspace-lifecycle)
- [Updating workspaces](./workspaces.md#updating-workspaces)

## Contributing

Expand Down
6 changes: 3 additions & 3 deletions docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Coder admins manage *templates* to define the infrastructure behind workspaces.

Templates are shared and updates can be rolled out, or users can manually update their workspaces.

## Managing templates
## Manage templates

Coder provides production-ready template [examples](../examples/), but they can be modified with Terraform.

Expand All @@ -21,9 +21,9 @@ coder templates <create/update> <template-name>

If you are commonly editing templates, we recommend source-controlling template code using GitOps/CI pipelines to make changes.

## Persistant and ephemeral resources
## Persistent and ephemeral resources

Coder supports ephemeral and persistant resources in workspaces. Ephemeral resources are be destroyed when a workspace is not in use (stopped). Persistant resources remain. See how this works for an example "frontend" template:
Coder supports ephemeral and persistent resources in workspaces. Ephemeral resources are be destroyed when a workspace is not in use (stopped). persistent resources remain. See how this works for an example "frontend" template:

| Resource | Type |
| :--------------------------- | :--------- |
Expand Down
58 changes: 56 additions & 2 deletions docs/workspaces.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,59 @@
# Workspaces

Coder users create workspaces
Workspaces contain the dependencies, IDEs, and configuration information needed for software development.

## Managing workspaces
## Create workspaces

Each Coder user has their own workspaces, created from a shared [template](./templates.md).

```sh
# create a workspace from template, specify any variables
coder workspaces create <workspace-name>

# show the resources behind the workspace, and how to connect
coder workspaces show <workspace-name>
```

## Connect with SSH

Once Coder workspaces are added to your SSH hosts, you can connect from any IDE with remote development support.

```sh
coder config-ssh

ssh coder.<workspace-name>
```

## Editors and IDEs

The following desktop IDEs have been tested with Coder. Any IDE with SSH support should work!

- VS Code (with [Remote - SSH](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh) extension)
- JetBrains (with [Gateway](https://www.jetbrains.com/help/idea/remote-development-a.html#launch_gateway) installed)
- IntelliJ IDEA
- CLion
- GoLand
- PyCharm
- Rider
- RubyMine
- WebStorm

## Workspace lifecycle

Workspaces in Coder are started and stopped, often based on activity or when a [template update](./templates.md#manage-templates) is available.

While the exact behavior depends on the template, resources are often destroyed and re-created when a workspace is restarted. For more details, see [persistent and ephemeral resources](./templates.md#persistent-and-ephemeral-resources).

> ⚠️ To avoid data loss, reference your template documentation to see where to store files, install software, etc. Default templates are documented in [../examples](../examples/).
>
> You can use `coder workspace show <workspace-name>` to see which resources are persistent vs ephemeral.

When a workspace is deleted, all of the workspace's resources are deleted.

## Updating workspaces

Use the following command to update a workspace to the latest version of a template. The workspace will be stopped and started.

```sh
coder workspaces update <workspace-name>
```