Skip to content

chore(backend): remove dead Dockerfile.mentorship-sync#195

Open
mlehotskylf wants to merge 2 commits into
mainfrom
chore/remove-dead-mentorship-dockerfile
Open

chore(backend): remove dead Dockerfile.mentorship-sync#195
mlehotskylf wants to merge 2 commits into
mainfrom
chore/remove-dead-mentorship-dockerfile

Conversation

@mlehotskylf

Copy link
Copy Markdown
Contributor

Summary

  • Deletes backend/Dockerfile.mentorship-sync — it's no longer referenced by any build. The mentorship-sync binary is built into the main backend/Dockerfile alongside initiatives-api and ledger-stats-sync (commit 3864eed), and the CronJob runs from that image.
  • Corrects backend/docs/rewrite/02-decisions.md, which described a per-entrypoint Dockerfile design that was never implemented. Documents the actual single-image layout (all binaries in backend/Dockerfile, each K8s resource selecting its binary via command), matching how ledger-stats-sync already works.

Context

Prod mentorship-sync is verified working from the backend image. This is cleanup of the now-superseded separate-image approach (closed #178 and linuxfoundation/lfx-v2-argocd#1001).

🤖 Generated with Claude Code

The mentorship-sync binary is built into the main backend Dockerfile
alongside initiatives-api and ledger-stats-sync (commit 3864eed), and
the CronJob Helm template uses that image. Dockerfile.mentorship-sync
is no longer referenced by any build and is dead.

Also correct the architecture decision doc: it described a
never-implemented per-entrypoint Dockerfile design. Document the actual
single-image layout (all binaries in backend/Dockerfile, selected via
container command), matching how ledger-stats-sync already works.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Michal Lehotsky <mlehotsky@linuxfoundation.org>
Copilot AI review requested due to automatic review settings June 22, 2026 17:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Cleans up the backend build/docs by removing an obsolete mentorship-sync Dockerfile and updating the backend rewrite decisions doc to reflect the current “single image, multiple binaries” deployment approach (CronJobs selecting the intended binary via command).

Changes:

  • Delete backend/Dockerfile.mentorship-sync as it’s no longer used for builds.
  • Update backend/docs/rewrite/02-decisions.md to document the single-image layout and binary selection pattern.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
backend/docs/rewrite/02-decisions.md Updates the architecture decision record to describe bundling multiple Go binaries into backend/Dockerfile and selecting entrypoints via K8s command.
backend/Dockerfile.mentorship-sync Removes an unused, now-superseded Dockerfile for a separate mentorship-sync image.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread backend/docs/rewrite/02-decisions.md
Comment thread backend/docs/rewrite/02-decisions.md
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.

3 participants