Skip to content

fix: exclude .workspace from Docker build context (#304)#305

Merged
bussyjd merged 1 commit into
codex/serviceoffer-controllerfrom
fix/dockerignore-workspace
Mar 30, 2026
Merged

fix: exclude .workspace from Docker build context (#304)#305
bussyjd merged 1 commit into
codex/serviceoffer-controllerfrom
fix/dockerignore-workspace

Conversation

@bussyjd

@bussyjd bussyjd commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds .dockerignore at the repo root to exclude .workspace/ and .worktrees/ from Docker build context
  • Prevents permission denied errors when docker build scans root-owned PVC directories under .workspace/data/

Fixes #304

Test plan

  • Run OBOL_DEVELOPMENT=true obol stack up on a machine with leftover .workspace/data/ PVC directories and confirm Docker builds succeed
  • Verify the .dockerignore does not exclude .git/ (some builds may need git metadata)

When OBOL_DEVELOPMENT=true, Docker builds from the project root pick up
.workspace/data/ directories that contain root-owned PVC mounts from
previous clusters, causing "permission denied" errors during context
scanning.

Exclude .workspace/ and .worktrees/ from the Docker build context via
.dockerignore.

Fixes #304
@bussyjd bussyjd merged commit 8cc3807 into codex/serviceoffer-controller Mar 30, 2026
@bussyjd bussyjd deleted the fix/dockerignore-workspace branch March 30, 2026 05:52
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.

1 participant