- Notifications
You must be signed in to change notification settings - Fork906
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
8 commits Select commitHold shift + click to select a range
c6ad14a
chore: update initial set of example READMEs
e0af801
Merge branch 'main' into examples
b4a6a7a
chore: expand, edit AWS examples' README files
46afc55
chore: edit README files for examples
6d285b0
Apply suggestions from review
e8a07ef
Merge branch 'main' into examples
0bdb274
Merge branch 'examples' of https://github.com/coder/coder into examples
428ca52
chore: fix formatting
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
9 changes: 4 additions & 5 deletionsexamples/templates/aws-linux/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletionsexamples/templates/aws-windows/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
32 changes: 21 additions & 11 deletionsexamples/templates/do-linux/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -6,20 +6,30 @@ tags: [cloud, digitalocean] | ||
# do-linux | ||
khorne3 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
To deployworkspaces asDigitalOceanDroplets, you'll need: | ||
- DigitalOcean [personal access token | ||
(PAT)](https://docs.digitalocean.com/reference/api/create-personal-access-token/) | ||
- DigitalOcean project ID (you can get your project information via the `doctl` | ||
CLI by running `doctl projects list`) | ||
- Remove the following sections from the `main.tf` file if you don't want to | ||
associate your workspaces with a project: | ||
- `variable "step2_do_project_id"` | ||
- `resource "digitalocean_project_resources" "project"` | ||
- **Optional:** DigitalOcean SSH key ID (obtain via the `doctl` CLI by running | ||
`doctl compute ssh-key list`) | ||
- Note that this is only required for Fedora images to work. | ||
## Authentication | ||
This template assumes that coderd is run in an environment that is authenticated | ||
with Digital Ocean. Obtain a [Digital Ocean Personal Access | ||
Token](https://cloud.digitalocean.com/account/api/tokens) and set the | ||
environment variable `DIGITALOCEAN_TOKEN` to the access token before starting | ||
coderd. Forother ways to authenticate [consult the Terraform | ||
docs](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs). |
3 changes: 2 additions & 1 deletionexamples/templates/docker-image-builds/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
16 changes: 9 additions & 7 deletionsexamples/templates/docker/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
39 changes: 30 additions & 9 deletionsexamples/templates/gcp-linux/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -6,19 +6,40 @@ tags: [cloud, google] | ||
# gcp-linux | ||
khorne3 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
To get started, run `coder templates init`. When prompted, select this template, | ||
and follow the on-screen instructions to proceed. | ||
## Authentication | ||
This template assumes that coderd is run in an environment that is authenticated | ||
with Google Cloud. For example, run `gcloud auth application-default login` to | ||
import credentials on the system and user running coderd. For other ways to | ||
authenticate [consult the Terraform | ||
docs](https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/getting_started#adding-credentials). | ||
## 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), | ||
and select your Cloud project (if you have more than one project associated | ||
with your account) | ||
1. Provide a service account name (this name is used to generate the service | ||
account ID) | ||
1. Click **Create and continue**, and choose the following IAM roles to grant to | ||
the service account: | ||
- Compute Admin | ||
- Service Account User | ||
Click **Continue**. | ||
1. Click on the created key, and navigate to the **Keys** tab. | ||
1. Click **Add key** > **Create new key**. | ||
1. Generate a **JSON private key**, which will be what you provide to Coder | ||
during the setup process. |
39 changes: 30 additions & 9 deletionsexamples/templates/gcp-vm-container/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
39 changes: 30 additions & 9 deletionsexamples/templates/gcp-windows/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
35 changes: 18 additions & 17 deletionsexamples/templates/kubernetes-multi-service/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.