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
Copy file name to clipboardExpand all lines: docs/data-sources/cached_image.md
+27-11Lines changed: 27 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
3
page_title: "envbuilder_cached_image Data Source - envbuilder"
4
4
subcategory: ""
5
5
description: |-
6
-
The cached image data source can be used to retrieve a cached image produced by envbuilder.
6
+
The cached image data source can be used to retrieve a cached image produced by envbuilder. Reading from this data source will clone the specified Git repository, read a Devcontainer specification or Dockerfile, and check for its presence in the provided cache repo.
7
7
---
8
8
9
9
# envbuilder_cached_image (Data Source)
10
10
11
-
The cached image data source can be used to retrieve a cached image produced by envbuilder.
11
+
The cached image data source can be used to retrieve a cached image produced by envbuilder. Reading from this data source will clone the specified Git repository, read a Devcontainer specification or Dockerfile, and check for its presence in the provided cache repo.
-`builder_image` (String) The builder image URL to use if the cache does not exist.
37
-
-`cache_repo` (String) The name of the container registry to fetch the cache image from.
38
-
-`git_url` (String) The URL of a Git repository containing a Devcontainer or Docker image to clone.
36
+
-`builder_image` (String) The envbuilder image to use if the cached version is not found.
37
+
-`cache_repo` (String) (Envbuilder option) The name of the container registry to fetch the cache image from.
38
+
-`git_url` (String) (Envbuilder option) The URL of a Git repository containing a Devcontainer or Docker image to clone.
39
39
40
40
### Optional
41
41
42
-
-`cache_ttl_days` (Number) The number of days to use cached layers before expiring them. Defaults to 7 days.
43
-
-`extra_env` (Map of String) Extra environment variables to set for the container. This may include evbuilder options.
44
-
-`git_password` (String, Sensitive) The password to use for Git authentication. This is optional.
45
-
-`git_username` (String) The username to use for Git authentication. This is optional.
42
+
-`base_image_cache_dir` (String) (Envbuilder option) The path to a directory where the base image can be found. This should be a read-only directory solely mounted for the purpose of caching the base image.
43
+
-`build_context_path` (String) (Envbuilder option) Can be specified when a DockerfilePath is specified outside the base WorkspaceFolder. This path MUST be relative to the WorkspaceFolder path into which the repo is cloned.
44
+
-`cache_ttl_days` (Number) (Envbuilder option) The number of days to use cached layers before expiring them. Defaults to 7 days.
45
+
-`devcontainer_dir` (String) (Envbuilder option) The path to the folder containing the devcontainer.json file that will be used to build the workspace and can either be an absolute path or a path relative to the workspace folder. If not provided, defaults to `.devcontainer`.
46
+
-`devcontainer_json_path` (String) (Envbuilder option) The path to a devcontainer.json file that is either an absolute path or a path relative to DevcontainerDir. This can be used in cases where one wants to substitute an edited devcontainer.json file for the one that exists in the repo.
47
+
-`docker_config_base64` (String) (Envbuilder option) The base64 encoded Docker config file that will be used to pull images from private container registries.
48
+
-`dockerfile_path` (String) (Envbuilder option) The relative path to the Dockerfile that will be used to build the workspace. This is an alternative to using a devcontainer that some might find simpler.
49
+
-`exit_on_build_failure` (Boolean) (Envbuilder option) Terminates upon a build failure. This is handy when preferring the FALLBACK_IMAGE in cases where no devcontainer.json or image is provided. However, it ensures that the container stops if the build process encounters an error.
50
+
-`extra_env` (Map of String) Extra environment variables to set for the container. This may include envbuilder options.
51
+
-`fallback_image` (String) (Envbuilder option) Specifies an alternative image to use when neither an image is declared in the devcontainer.json file nor a Dockerfile is present. If there's a build failure (from a faulty Dockerfile) or a misconfiguration, this image will be the substitute. Set ExitOnBuildFailure to true to halt the container if the build faces an issue.
52
+
-`git_clone_depth` (Number) (Envbuilder option) The depth to use when cloning the Git repository.
53
+
-`git_clone_single_branch` (Boolean) (Envbuilder option) Clone only a single branch of the Git repository.
54
+
-`git_http_proxy_url` (String) (Envbuilder option) The URL for the HTTP proxy. This is optional.
55
+
-`git_password` (String, Sensitive) (Envbuilder option) The password to use for Git authentication. This is optional.
56
+
-`git_ssh_private_key_path` (String) (Envbuilder option) Path to an SSH private key to be used for Git authentication.
57
+
-`git_username` (String) (Envbuilder option) The username to use for Git authentication. This is optional.
58
+
-`ignore_paths` (List of String) (Envbuilder option) The comma separated list of paths to ignore when building the workspace.
59
+
-`insecure` (Boolean) (Envbuilder option) Bypass TLS verification when cloning and pulling from container registries.
60
+
-`ssl_cert_base64` (String) (Envbuilder option) The content of an SSL cert file. This is useful for self-signed certificates.
0 commit comments