Skip to content

fix(omni-graph): copy local grammars sub-crate and add .dockerignore in Dockerfile - #19

Merged
vadde merged 1 commit into
mainfrom
fix/omni-graph-docker-matlab-grammar
Nov 6, 2026
Merged

vadde merged 1 commit into
mainfrom
fix/omni-graph-docker-matlab-grammar

Conversation

@vadde

@vadde vadde commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Summary

This PR fixes Docker builds for the rust-app image caused by missing local sub-crate grammars during multi-stage image creation.

Root Cause

In tools/omni-graph/Cargo.toml, tree-sitter-matlab is declared as a local sub-crate path dependency:

tree-sitter-matlab = { path = "grammars/tree-sitter-matlab" }

The Dockerfile copied manifest files, src/, and tests/, but omitted grammars/, causing cargo build inside the container to fail with unable to update /app/grammars/tree-sitter-matlab.

Additionally, the absence of a .dockerignore caused Docker to attempt uploading the 13GB host target/ directory as build context.

Changes

  1. Added COPY grammars ./grammars in tools/omni-graph/Dockerfile.
  2. Created tools/omni-graph/.dockerignore ignoring host target/, **/target/, ui/, and .env.
  3. Verified local container build succeeds (docker compose build rust-app).

@vadde
vadde merged commit c0f6207 into main Nov 6, 2026
6 checks passed
@vadde
vadde deleted the fix/omni-graph-docker-matlab-grammar branch November 6, 2026 23:51
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