Skip to content

Commit f4a54aa

Browse files
johnstcnmafredri
andauthored
chore: update README.md (#23)
Co-authored-by: Mathias Fredriksson <[email protected]>
1 parent c103059 commit f4a54aa

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
The `terraform-provider-envbuilder` is a Terraform provider that acts as a helper for setting up [`envbuilder`](https://envbuilder.sh) environments.
44

5+
It is used to determine if a pre-built image of a dev container built from a given Git repository is present in a given Docker registry.
6+
If it is found that building a particular dev container would produce the same image that is already present in the remote registry, then that image can be used to start the container instead, skipping over the build phase.
7+
8+
## Usage
9+
10+
Take a look at the [`envbuilder_cached_image_resource.tf`](./examples/resources/envbuilder_cached_image/envbuilder_cached_image_resource.tf) example for a detailed usage example.
11+
12+
For use with [Coder](https://github.com/coder/coder), see the [Dev Containers documentation](https://coder.com/docs/templates/dev-containers) and check out the example templates:
13+
- [Docker](https://github.com/coder/coder/tree/main/examples/templates/devcontainer-docker)
14+
- [Kubernetes](https://github.com/coder/coder/tree/main/examples/templates/devcontainer-kuberntes)
15+
- [AWS VM](https://github.com/coder/coder/tree/main/examples/templates/devcontainer-aws-vm)
16+
- [GCP VM](https://github.com/coder/coder/tree/main/examples/templates/devcontainer-gcp-vm)
17+
518
## Requirements
619

720
- [Terraform](https://developer.hashicorp.com/terraform/downloads) >= 1.0

docs/index.md

+9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ description: |-
1313
## Example Usage
1414

1515
```terraform
16+
terraform {
17+
required_providers {
18+
envbuilder = {
19+
source = "coder/envbuilder"
20+
}
21+
}
22+
}
23+
24+
// The provider currently requires no additional configuration.
1625
provider "envbuilder" {}
1726
```
1827

examples/provider/provider.tf

+10
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1+
terraform {
2+
required_providers {
3+
envbuilder = {
4+
source = "coder/envbuilder"
5+
}
6+
}
7+
}
8+
9+
// The provider currently requires no additional configuration.
110
provider "envbuilder" {}
11+

0 commit comments

Comments
 (0)