Envbuilder

This commit is contained in:
Mathias Fredriksson 2024-07-22 13:42:57 +03:00
commit 1a49822fc9
25 changed files with 350 additions and 691 deletions

View file

@ -0,0 +1,52 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "envbuilder_cached_image Data Source - envbuilder"
subcategory: ""
description: |-
The cached image data source can be used to retrieve a cached image produced by envbuilder.
---
# envbuilder_cached_image (Data Source)
The cached image data source can be used to retrieve a cached image produced by envbuilder.
## Example Usage
```terraform
data "envbuilder_cached_image" "example" {
builder_image = "ghcr.io/coder/envbuilder:latest"
git_url = "https://github.com/coder/envbuilder-starter-devcontainer"
cache_repo = "localhost:5000/local/test-cache"
extra_env = {
"ENVBUILDER_VERBOSE" : "true"
}
}
resource "docker_container" "container" {
image = envbuilder_cached_image.example.image
env = data.envbuilder_image.cached.env
}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `builder_image` (String) The builder image URL to use if the cache does not exist.
- `cache_repo` (String) The name of the container registry to fetch the cache image from.
- `git_url` (String) The URL of a Git repository containing a Devcontainer or Docker image to clone.
### Optional
- `cache_ttl_days` (Number) The number of days to use cached layers before expiring them. Defaults to 7 days.
- `extra_env` (Map of String) Extra environment variables to set for the container. This may include evbuilder options.
- `git_password` (String, Sensitive) The password to use for Git authentication. This is optional.
- `git_username` (String) The username to use for Git authentication. This is optional.
### Read-Only
- `env` (List of String) Computed envbuilder configuration to be set for the container.
- `exists` (Boolean) Whether the cached image was exists or not for the given config.
- `id` (String) Cached image identifier
- `image` (String) Outputs the cached image URL if it exists, otherwise the builder image URL is output instead.

View file

@ -1,30 +0,0 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "scaffolding_example Data Source - scaffolding"
subcategory: ""
description: |-
Example data source
---
# scaffolding_example (Data Source)
Example data source
## Example Usage
```terraform
data "scaffolding_example" "example" {
configurable_attribute = "some-value"
}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Optional
- `configurable_attribute` (String) Example configurable attribute
### Read-Only
- `id` (String) Example identifier

View file

@ -1,26 +0,0 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "example function - scaffolding"
subcategory: ""
description: |-
Example function
---
# function: example
Echoes given argument as result
## Signature
<!-- signature generated by tfplugindocs -->
```text
example(input string) string
```
## Arguments
<!-- arguments generated by tfplugindocs -->
1. `input` (String) String to echo

View file

@ -1,26 +1,20 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "scaffolding Provider"
page_title: "envbuilder Provider"
subcategory: ""
description: |-
---
# scaffolding Provider
# envbuilder Provider
## Example Usage
```terraform
provider "scaffolding" {
# example configuration here
}
provider "envbuilder" {}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Optional
- `endpoint` (String) Example provider attribute

View file

@ -1,31 +0,0 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "scaffolding_example Resource - scaffolding"
subcategory: ""
description: |-
Example resource
---
# scaffolding_example (Resource)
Example resource
## Example Usage
```terraform
resource "scaffolding_example" "example" {
configurable_attribute = "some-value"
}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Optional
- `configurable_attribute` (String) Example configurable attribute
- `defaulted` (String) Example configurable attribute with default value
### Read-Only
- `id` (String) Example identifier