C
Coder.com•2mo ago
molitann

ENVBUILDER_CACHE_REPO is always empty

Hi, I'm not sure what I'm doing wrong but ENVBUILDER_CACHE_REPO always remains empty in the env of the pod, even after multiple restarts. Here are some snippets of my config. LMK if you need more of my configuration and I will provide. I'm using latest versions of coder/coder, hashicorp/kubernetes and coder/envbuilder providers. Envbuilder image is on 1.0.3. Thanks in advance guys 🙂 Otherwise, it works perfectly
locals {
...
envbuilder_env = {
# ENVBUILDER_GIT_URL and ENVBUILDER_CACHE_REPO will be overridden by the provider
# if the cache repo is enabled.
"ENVBUILDER_GIT_URL" : local.repo_url,
...
}
}

variable "cache_repo" {
default = "url-path-to-our-gitlab-registry"
description = "Use a container registry as a cache to speed up builds."
type = string
}
locals {
...
envbuilder_env = {
# ENVBUILDER_GIT_URL and ENVBUILDER_CACHE_REPO will be overridden by the provider
# if the cache repo is enabled.
"ENVBUILDER_GIT_URL" : local.repo_url,
...
}
}

variable "cache_repo" {
default = "url-path-to-our-gitlab-registry"
description = "Use a container registry as a cache to speed up builds."
type = string
}
5 Replies
Codercord
Codercord•2mo ago
<#1292833190117113997>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
molitann
molitannOP•2mo ago
build logs
molitann
molitannOP•2mo ago
Could it be because /workspaces is only an emptyDir? I have no clue what I changed, but it now works 😄
Phorcys
Phorcys•2mo ago
great! if you ever realize what you've changed please share!
Codercord
Codercord•2mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server