Skip to content

fix(docker): copy providers/ into rust-builder stage#1211

Merged
TaylorMutch merged 1 commit into
mainfrom
tmutch/fix-dockerfile-providers-copy
May 6, 2026
Merged

fix(docker): copy providers/ into rust-builder stage#1211
TaylorMutch merged 1 commit into
mainfrom
tmutch/fix-dockerfile-providers-copy

Conversation

@TaylorMutch
Copy link
Copy Markdown
Collaborator

Summary

Source-built Docker images (BUILD_FROM_SOURCE=1, the path Skaffold dev uses) currently fail because the rust-builder stage in deploy/docker/Dockerfile.images does not copy the repo's providers/ directory into the build context. The openshell-providers crate embeds provider profile YAML via include_str!("../../../providers/*.yaml"), so the build aborts with:

error: couldn't read `crates/openshell-providers/src/../../../providers/anthropic.yaml`: No such file or directory

This blocks mise run helm:skaffold:dev / helm:skaffold:run for anyone on main. One-line fix: add COPY providers/ providers/ next to the other source-tree copies.

Related Issue

Changes

  • deploy/docker/Dockerfile.images: copy providers/ into the rust-builder stage so include_str! for provider profile YAML resolves.

Testing

  • mise run pre-commit passes (no Rust changes; only the Dockerfile)
  • mise run helm:skaffold:run against a local k3d cluster — verifying now on a downstream branch.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable) — pure build-infra fix; no doc impact.

The openshell-providers crate uses `include_str!("../../../providers/*.yaml")`
to embed provider profile YAML at compile time. The rust-builder stage in
Dockerfile.images only copied `crates/` and `proto/`, so source builds
(BUILD_FROM_SOURCE=1, used by Skaffold dev) failed with:

  error: couldn't read `crates/openshell-providers/src/../../../providers/anthropic.yaml`

Copy `providers/` into the build context alongside the other source trees
so `include_str!` resolves.
@TaylorMutch TaylorMutch merged commit 86b8ffd into main May 6, 2026
23 checks passed
@TaylorMutch TaylorMutch deleted the tmutch/fix-dockerfile-providers-copy branch May 6, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants