feat(ai): datahub-ai-service docker image and locked dependencies
Stack. This is one PR in a series that adds a built-in MCP server to DataHub Core. It is based on na--ai-service-host-guard (the previous PR in the stack); review only its own commit. This PR changes GMS, the frontend, Docker or CI, not only the new Python packages. Everything user-facing is behind a GMS feature flag, MCP_SERVER_ENABLED, off by default (added in #21349).
Stack so far:
- #21332
- #21333
- #21334
- #21335
- #21336
- #21337
- #21338
- #21339
- #21340
- #21341
- #21342
- #21343
- #21344
- #21345
- #21346
- #21347
- #21348 ā this PR
- #21349
- #21350
- #21351
- #21352
- #21353
- #21435
- #21436
- #21437
- #21438
- #21439
- #21440
- #21441
- #21442
- #21443
- #21444
- #21445
- #21447
- #21501
- #21502
- #21503
- #21504
- #21505
- #21506
- #21507
- #21508
- #21509
- #21510
- #21511
- #21512
What this does
Add docker/datahub-ai-service/Dockerfile and wire it into Gradle
(:packages:datahub-ai-service:docker, tagged like the other images plus :debug).
- Wolfi base, Python 3.11, non-root datahub user, uv; no curl. The
healthcheck uses Python against /health. Starts withdatahub-ai-service serve
on port 9005. - Third-party dependencies install from docker/datahub-ai-service/requirements.lock
(uv pip compile for 3.11 under the ingestion constraints); the SDK,
datahub-core-mcp-tools and datahub-ai-service install from source at the build commit
with the release version stamped in. A multi-stage build keeps only the
virtualenv, and pip's vendored SBOM is removed so scanners don't report
packages that aren't installed. - lockfileUpdate regenerates the lock; lockfileCheck fails a PR whose lock
is stale or no longer resolves, and runs in the DataHub AI Service workflow.
Built locally: 365 MB, healthy 5 s after start, runs as uid 1000, served
get_me against a local OSS GMS and refused a rebinding request.
Testing
Built locally (365 MB); healthy in 5 s; uid 1000; get_me against OSS; rebinding 403.
Checklist
- The PR conforms to DataHub's Contributing Guideline (particularly PR Title Format)
- Tests for the changes have been added/updated (if applicable)
- Docs related to the changes have been added/updated (if applicable). The MCP docs come later in the stack.
- For any breaking change/potential downtime/deprecation/big changes an entry has been made in Breaking Changes. The release notes come later in the stack.
š¤ Generated with Claude Code