|
1 | 1 | # Coder Concepts
|
2 | 2 |
|
3 |
| - |
4 | 3 | ## Templates
|
5 | 4 |
|
6 |
| -Coder admins have the ability to create, update, and delete *templates*. Templates are the blueprint for developer workspaces. |
| 5 | +Coder admins manage *templates* to define the infrastructure behind workspaces. A Coder deployment can have multiple templates for different workloads. |
| 6 | + |
| 7 | +### ex. "Frontend" Template |
| 8 | + |
| 9 | +| Resource name | Status | |
| 10 | +| ----------------------- | ---------- | |
| 11 | +| Kubernetes pod (NodeJS) | ephemeral | |
| 12 | +| API token (Backend) | ephemeral | |
| 13 | +| Disk (Source code) | persistant | |
| 14 | + |
| 15 | +### ex. "Data Science" Template |
| 16 | + |
| 17 | +| Resource name | Status | |
| 18 | +| -------------------------------------- | ---------- | |
| 19 | +| Kubernetes pod (pyCharm + JupyterLab) | ephemeral | |
| 20 | +| Readonly volume mount (shared dataset) | persistant | |
| 21 | + |
| 22 | +### ex. "MacOS" Template |
| 23 | + |
| 24 | +| Resource name | Status | |
| 25 | +| ------------------ | ---------- | |
| 26 | +| MacOS VM | ephemeral | |
| 27 | +| Disk (source code) | persistant | |
| 28 | + |
| 29 | +### ex. "Linux Debugging" Template |
| 30 | + |
| 31 | +| Resource name | Status | |
| 32 | +| ------------------------ | ---------- | |
| 33 | +| EC2 VM (Debian 11.3 AMI) | persistant | |
| 34 | + |
| 35 | +### Templates are managed via the CLI |
| 36 | + |
| 37 | +Admins can use Coder's production-ready examples, or create/modify templates with standard Terraform. |
| 38 | + |
| 39 | +```sh |
| 40 | +# start from an example template |
| 41 | +coder templates init |
| 42 | + |
| 43 | +# optional: modify the template |
| 44 | +vim <template-name>/main.tf |
| 45 | + |
| 46 | +# add the template to Coder |
| 47 | +coder templates <create/update> <template-name> |
| 48 | +``` |
7 | 49 |
|
8 | 50 | ## Workspaces
|
| 51 | + |
| 52 | +Coder users create *workspaces* to get a remote development environment. Depending on the template, |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
0 commit comments