Skip to content

expand README files for examples #1946

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 8 commits into from
Jun 6, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Next Next commit
chore: update initial set of example READMEs
  • Loading branch information
Katie Horne committed May 31, 2022
commit c6ad14aa1b48517ef4ef06fa84c9c9633dacdbdf
7 changes: 4 additions & 3 deletions examples/templates/aws-linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ tags: [cloud, aws]

## Getting started

Pick this template in `coder templates init` and follow instructions.
Run `coder templates init`, and when prompted, select this template. Follow the
on-screen instructions to proceed.

## Required permissions / policy

This example policy allows Coder to create EC2 instances and modify instances provisioned by Coder.
The following sample policy allows Coder to create EC2 instances and modify
instances provisioned by Coder:

```json
{
Expand Down Expand Up @@ -61,4 +63,3 @@ This example policy allows Coder to create EC2 instances and modify instances pr
]
}
```

7 changes: 7 additions & 0 deletions examples/templates/aws-windows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@ name: Develop in Windows on AWS
description: Get started with Windows development on AWS.
tags: [cloud, aws]
---

# aws-windows

## Getting started

Run `coder templates init`, and when prompted, select this template. Follow the
on-screen instructions to proceed.
14 changes: 9 additions & 5 deletions examples/templates/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,22 @@ tags: [local, docker]

## Getting started

Run `coder templates init` and select this template. Follow the instructions that appear.
Run `coder templates init`, and when prompted, select this template. Follow the
on-screen instructions to proceed.

## Adding/removing images

After building and pushing an image to an image registry (e.g., DockerHub), you can edit the template to make the image available to users.

Edit the template:
After building and pushing an image to an image registry (e.g., DockerHub), edit
the template to make the image available to users:

```sh
# Open the template
vim main.tf
```

Modify your file to match the following:

```dockerfile
variable "docker_image" {
description = "What Docker image would you like to use for your workspace?"
default = "codercom/enterprise-base:ubuntu"
Expand Down Expand Up @@ -77,4 +82,3 @@ add the following features to your Coder template:
- More

We also welcome contributions!

20 changes: 20 additions & 0 deletions examples/templates/gcp-linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,23 @@ name: Develop in Linux on Google Cloud
description: Get started with Linux development on Google Cloud.
tags: [cloud, google]
---

# gcp-linux

## Getting Started

Run `coder templates init`, and when prompted, select this template. Follow the
on-screen instructions to proceed.

## Service account

Coder requires a Google Cloud Service Account to provision workspaces. To create
a service account:

1. Navigate to the [CGP console](https://console.cloud.google.com/projectselector/iam-admin/serviceaccounts/create).
2. Add the following roles:
- Compute Admin
- Service Account User
3. Click on the created key, and navigate to the **Keys** tab.
4. Click **Add key** > **Create new key**.
5. Generate a **JSON private key**, which will be what you provide to coder.
20 changes: 20 additions & 0 deletions examples/templates/gcp-vm-container/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,23 @@ name: Develop in a container on a Google Cloud VM
description: Get started with Linux development on Google Cloud.
tags: [cloud, google, container]
---

# gcp-vm-container

## Getting Started

Run `coder templates init`, and when prompted, select this template. Follow the
on-screen instructions to proceed.

## Service account

Coder requires a Google Cloud Service Account to provision workspaces. To create
a service account:

1. Navigate to the [CGP console](https://console.cloud.google.com/projectselector/iam-admin/serviceaccounts/create).
2. Add the following roles:
- Compute Admin
- Service Account User
3. Click on the created key, and navigate to the **Keys** tab.
4. Click **Add key** > **Create new key**.
5. Generate a **JSON private key**, which will be what you provide to coder.
20 changes: 20 additions & 0 deletions examples/templates/gcp-windows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,23 @@ name: Develop in Windows on Google Cloud
description: Get started with Windows development on Google Cloud.
tags: [cloud, google]
---

# gcp-windows

## Getting Started

Run `coder templates init`, and when prompted, select this template. Follow the
on-screen instructions to proceed.

## Service account

Coder requires a Google Cloud Service Account to provision workspaces. To create
a service account:

1. Navigate to the [CGP console](https://console.cloud.google.com/projectselector/iam-admin/serviceaccounts/create).
2. Add the following roles:
- Compute Admin
- Service Account User
3. Click on the created key, and navigate to the **Keys** tab.
4. Click **Add key** > **Create new key**.
5. Generate a **JSON private key**, which will be what you provide to coder.