Skip to content

fix(docker): install git — the image has been unbuildable since June - #10

Closed
trogers1052 wants to merge 1 commit into
mainfrom
fix/dockerfile-missing-git
Closed

fix(docker): install git — the image has been unbuildable since June#10
trogers1052 wants to merge 1 commit into
mainfrom
fix/dockerfile-missing-git

Conversation

@trogers1052

Copy link
Copy Markdown
Owner

The bug

pip shells out to git to install git+https dependencies. Both
risk-engine (via its pyproject/requirements) and this repo's
requirements.txt pull trading-py-commons that way, but python:3.12-slim
ships no git binary, so the build dies at:

ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

Why it went unnoticed

Last successful image build 2026-04-17
risk-engine adopted trading-py-commons 2026-06-03
Pushes to main since none — so CI never re-ran

The Pi is therefore running an April image, and the next redeploy would have
failed at whatever moment it happened to be attempted.

Verification

Built unmodified main (fails at pip install /tmp/risk-engine/) and main
plus this one line (succeeds). Found while building the service for an
e2e-replay run.

The same fix is needed in realtime-data-analytics, filed separately.

🤖 Generated with Claude Code

pip shells out to git to install git+https dependencies. risk-engine's
pyproject and requirements.txt both pull trading-py-commons that way, as
does decision-engine's own requirements.txt, but python:3.12-slim ships no
git binary, so the build dies at:

    ERROR: Cannot find command 'git' - do you have 'git' installed

Timeline: the last successful image build was 2026-04-17; risk-engine
adopted trading-py-commons on 2026-06-03. No push to main has happened
since, so CI never re-ran and the break went unnoticed for ~8 weeks. The
Pi is therefore running an April image, and any redeploy would have failed
at the worst possible moment.

Found while building the service for an e2e-replay run. Verified by
building unmodified main (fails) and main+git (succeeds).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@trogers1052

Copy link
Copy Markdown
Owner Author

Closing as already fixed. main now installs git (landed alongside #9,
with an equivalent comment), so this change is redundant — merging it would
only reword a comment.

The diagnosis stands and is worth recording: the image was unbuildable from
2026-06-03 (when risk-engine adopted trading-py-commons via git+https) until
that fix, and CI never re-ran in between because nothing was pushed to main.
This PR's own multi-arch build passed in 10m52s, independently confirming git
is what was missing.

The identical fix in realtime-data-analytics was NOT already present and has
been merged there (#11).

@trogers1052
trogers1052 deleted the fix/dockerfile-missing-git branch July 27, 2026 13:11
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