No description
Find a file
dependabot[bot] 8434d66b34
chore(deps): bump github.com/coder/envbuilder from 1.0.4 to 1.1.0
Bumps [github.com/coder/envbuilder](https://github.com/coder/envbuilder) from 1.0.4 to 1.1.0.
- [Release notes](https://github.com/coder/envbuilder/releases)
- [Commits](https://github.com/coder/envbuilder/compare/v1.0.4...v1.1.0)

---
updated-dependencies:
- dependency-name: github.com/coder/envbuilder
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-07 12:27:46 +00:00
.github chore: update go-git to v5.13.1 () 2025-01-07 12:26:25 +00:00
docs feat: support ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64 () 2024-10-30 14:15:44 +00:00
examples fix(internal/provider): correct escaping of strings in envbuilder_cached_image.env () 2024-08-14 14:55:22 +01:00
internal feat: support ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64 () 2024-10-30 14:15:44 +00:00
testutil/registrytest fix: set MagicDir to tempdir when performing cache probe () 2024-09-10 09:47:39 +01:00
tools chore: pre-publish tidy () 2024-08-07 16:38:15 +01:00
.copywrite.hcl Initial commit 2024-07-18 14:43:45 +03:00
.gitignore implement first pass at cached image data source () 2024-08-01 21:26:44 +01:00
.golangci.yml Initial commit 2024-07-18 14:43:45 +03:00
.goreleaser.yml fixup! this only builds on linux 2024-08-09 15:36:38 +01:00
GNUmakefile ci: push envbuilder image to local registry () 2024-08-12 11:51:06 +01:00
go.mod chore(deps): bump github.com/coder/envbuilder from 1.0.4 to 1.1.0 2025-01-07 12:27:46 +00:00
go.sum chore(deps): bump github.com/coder/envbuilder from 1.0.4 to 1.1.0 2025-01-07 12:27:46 +00:00
LICENSE chore: pre-publish tidy () 2024-08-07 16:38:15 +01:00
main.go chore: pre-publish tidy () 2024-08-07 16:38:15 +01:00
README.md readme: remove duplicated usage note 2024-08-09 15:47:15 +01:00
terraform-registry-manifest.json Initial commit 2024-07-18 14:43:45 +03:00

terraform-provider-envbuilder

The terraform-provider-envbuilder is a Terraform provider that acts as a helper for setting up envbuilder environments.

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. 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.

Note: currently, this provider can only be run on Linux platforms. We are investigating support for other platforms.

Usage

Take a look at the envbuilder_cached_image_resource.tf example for a detailed usage example.

For use with Coder, see the Dev Containers documentation and check out the example templates:

Requirements

Building The Provider

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the Go install command:
go install

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).

To compile the provider, run go install. This will build the provider and put the provider binary in the $GOPATH/bin directory.

To generate or update documentation, run go generate.

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

make testacc