Skip to content

Install shims via in-image install command - #35

Merged
cvetty merged 1 commit into
mainfrom
feature/docker-only-install
Jul 22, 2026
Merged

Install shims via in-image install command#35
cvetty merged 1 commit into
mainfrom
feature/docker-only-install

Conversation

@cvetty

@cvetty cvetty commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Makes the published Docker image the single install channel. Instead of curling a GitHub-hosted scripts/install.sh, the host runs docker run --rm ghcr.io/mtrdesign/whygraph install | sh, which emits the whygraph and whygraph-mcp shims from inside the image. This drops the dependency on a raw GitHub URL and lets an install pin to a concrete release even when pulled via :latest.

Changes

  • Add cli/commands/install.py — the whygraph install subcommand renders a POSIX sh installer (to stdout only) that writes both host shims onto PATH.
  • Bake WHYGRAPH_VERSION into the image (Dockerfile ARG/ENV) so generated shims pin the release they were installed from; still overridable per-command via WHYGRAPH_IMAGE.
  • Add an image-only /usr/local/bin/install launcher so docker run <image> install works without an ENTRYPOINT (keeps codegraph … and whygraph-mcp invocations resolving).
  • Deploy workflow passes WHYGRAPH_VERSION and pins CODEGRAPH_VERSION=1.4.1.
  • Delete scripts/install.sh; update README, docs (installation / docker / service), and CLAUDE.md to the new one-liner.
  • Tests: new test_install_cmd.py (clean stdout, version pinning, end-to-end shim rendering) and a smoke test asserting the command registers.

Replace the GitHub-hosted scripts/install.sh channel with an in-image
`whygraph install` command. `docker run --rm ghcr.io/mtrdesign/whygraph
install | sh` emits the whygraph / whygraph-mcp host shims.

- Add cli/commands/install.py that renders the POSIX sh installer + shims
- Bake WHYGRAPH_VERSION into the image so shims pin a concrete release
- Add an image-only /usr/local/bin/install launcher (no ENTRYPOINT)
- Deploy workflow passes WHYGRAPH_VERSION and pins CODEGRAPH_VERSION=1.4.1
- Delete scripts/install.sh; update README/docs/CLAUDE.md
@cvetty cvetty added the enhancement New feature or request label Jul 13, 2026
@cvetty cvetty self-assigned this Jul 13, 2026
@cvetty
cvetty merged commit ed373bb into main Jul 22, 2026
2 checks passed
@cvetty
cvetty deleted the feature/docker-only-install branch July 28, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant