fix(dogfood/coder): override mise oci build MISE_CONFIG_DIR bake (#25684)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Thomas Kosiewski <tk@coder.com>
This commit is contained in:
Thomas Kosiewski
2026-05-26 18:44:54 +02:00
committed by GitHub
parent 0a7ac7c986
commit e9f0f81d76
+10
View File
@@ -508,6 +508,16 @@ resource "coder_agent" "dev" {
env = merge(
{
OIDC_TOKEN : data.coder_workspace_owner.me.oidc_access_token,
# `mise oci build` bakes `ENV MISE_CONFIG_DIR=/etc/mise` into
# the image layer above Dockerfile.base, so mise treats
# /etc/mise as the user config dir and never reads
# ~/.config/mise/conf.d/*, silently dropping the trust file
# the install-deps coder_script below seeds. `[oci.env]` in
# mise.toml would be the natural place for this, but mise's
# internal env bake currently wins on MISE_* key collisions
# (non-MISE keys flow through). Move this back to `[oci.env]`
# once upstream mise fixes that.
MISE_CONFIG_DIR : "/home/coder/.config/mise",
},
data.coder_parameter.enable_ai_gateway.value ? {
ANTHROPIC_BASE_URL : "https://dev.coder.com/api/v2/aibridge/anthropic",