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.
@@ -51,10 +52,11 @@ Edit the `devcontainer.json` instead!
51
52
52
53
See the [Envbuilder documentation](https://github.com/coder/envbuilder/blob/main/docs/docker.md) for information on running Docker containers inside a devcontainer built by Envbuilder.
53
54
55
+
54
56
## Caching
55
57
56
58
To speed up your builds, you can use a container registry as a cache.
57
-
When creating the template, set the parameter `cache_repo`.
59
+
When creating the template, set the parameter `cache_repo` to a valid Docker repository.
58
60
59
61
For example, you can run a local registry:
60
62
@@ -69,6 +71,8 @@ docker run --detach \
69
71
70
72
Then, when creating the template, enter `localhost:5000/devcontainer-cache` for the parameter `cache_repo`.
71
73
74
+
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.
75
+
72
76
> [!NOTE] We recommend using a registry cache with authentication enabled.
73
77
> To allow Envbuilder to authenticate with the registry cache, specify the variable `cache_repo_docker_config_path`
74
78
> with the path to a Docker config `.json` on disk containing valid credentials for the registry.
0 commit comments