You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with [`envbuilder`](https://github.com/coder/envbuilder).
42
+
with [`envbuilder`](https://github.com/coder/envbuilder) and [`terraform-provider-envbuilder`](https://github.com/coder/terraform-provider-envbuilder).
42
43
The Git repository is cloned inside the `/workspaces` volume if not present.
43
44
Any local changes to the Devcontainer files inside the volume will be applied when you restart the workspace.
44
45
Keep in mind that any tools or files outside of `/workspaces` or not added as part of the Devcontainer specification are not persisted.
@@ -54,7 +55,7 @@ See the [Envbuilder documentation](https://github.com/coder/envbuilder/blob/main
54
55
## Caching
55
56
56
57
To speed up your builds, you can use a container registry as a cache.
57
-
When creating the template, set the parameter `cache_repo`.
58
+
When creating the template, set the parameter `cache_repo` to a valid Docker repository.
58
59
59
60
For example, you can run a local registry:
60
61
@@ -69,6 +70,8 @@ docker run --detach \
69
70
70
71
Then, when creating the template, enter `localhost:5000/devcontainer-cache` for the parameter `cache_repo`.
71
72
73
+
See the [Envbuilder Terraform Provider Examples](https://github.com/coder/terraform-provider-envbuilder/blob/main/examples/resources/envbuilder_cached_image/envbuilder_cached_image_resource.tf/) for a more complete example of how the provider works.
74
+
72
75
> [!NOTE] We recommend using a registry cache with authentication enabled.
73
76
> To allow Envbuilder to authenticate with the registry cache, specify the variable `cache_repo_docker_config_path`
74
77
> with the path to a Docker config `.json` on disk containing valid credentials for the registry.
0 commit comments