+4
-6
lines changedFilter options
+4
-6
lines changed Original file line number Diff line number Diff line change
@@ -155,19 +155,17 @@ locals {
155
155
repo_url = data.coder_parameter.repo.value
156
156
# The envbuilder provider requires a key-value map of environment variables.
157
157
envbuilder_env = {
158
-
# ENVBUILDER_GIT_URL and ENVBUILDER_CACHE_REPO will be overridden by the provider
159
-
# if the cache repo is enabled.
160
-
"ENVBUILDER_GIT_URL" : local.repo_url,
161
-
"ENVBUILDER_CACHE_REPO" : var.cache_repo,
162
158
"CODER_AGENT_TOKEN" : coder_agent.main.token,
163
159
# Use the docker gateway if the access URL is 127.0.0.1
164
160
"CODER_AGENT_URL" : replace(data.coder_workspace.me.access_url, "/localhost|127\\.0\\.0\\.1/", "host.docker.internal"),
161
+
# ENVBUILDER_GIT_URL and ENVBUILDER_CACHE_REPO will be overridden by the provider
162
+
# if the cache repo is enabled.
163
+
"ENVBUILDER_GIT_URL" : var.cache_repo == "" ? local.repo_url : "",
165
164
# Use the docker gateway if the access URL is 127.0.0.1
166
165
"ENVBUILDER_INIT_SCRIPT" : replace(coder_agent.main.init_script, "/localhost|127\\.0\\.0\\.1/", "host.docker.internal"),
167
166
"ENVBUILDER_FALLBACK_IMAGE" : data.coder_parameter.fallback_image.value,
168
167
"ENVBUILDER_DOCKER_CONFIG_BASE64" : base64encode(try(data.kubernetes_secret.cache_repo_dockerconfig_secret[0].data[".dockerconfigjson"], "")),
169
-
"ENVBUILDER_PUSH_IMAGE" : var.cache_repo == "" ? "" : "true",
170
-
"ENVBUILDER_INSECURE" : "${var.insecure_cache_repo}",
168
+
"ENVBUILDER_PUSH_IMAGE" : var.cache_repo == "" ? "" : "true"
171
169
# You may need to adjust this if you get an error regarding deleting files when building the workspace.
172
170
# For example, when testing in KinD, it was necessary to set `/product_name` and `/product_uuid` in
173
171
# addition to `/var/run`.
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4