Skip to content

feat: OCI registry API fallback for pyhl setup - #53

Merged
danbugs merged 3 commits into
mainfrom
fix/pyhl-docker-fallback
May 15, 2026
Merged

feat: OCI registry API fallback for pyhl setup#53
danbugs merged 3 commits into
mainfrom
fix/pyhl-docker-fallback

Conversation

@danbugs

@danbugs danbugs commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • When docker/podman isn't on $PATH, pyhl setup now falls back to pulling images directly via the GHCR OCI registry HTTP API — no container runtime needed
  • Docker/Podman path remains the primary method; the HTTP fallback is transparent
  • Adds ureq, flate2, tar as dependencies

Closes #52

Test plan

  • Clippy clean on Linux and Windows
  • All tests pass on Linux (48+3+3) and Windows (41+3+3)
  • Verified OCI fallback works end-to-end: PATH=/usr/bin:/bin pyhl setup --force successfully pulls kernel + initrd from GHCR and warms up a snapshot without Docker

danbugs added 3 commits May 15, 2026 22:26
…l setup

Signed-off-by: danbugs <danilochiarlone@gmail.com>
Signed-off-by: danbugs <danilochiarlone@gmail.com>
Signed-off-by: danbugs <danilochiarlone@gmail.com>
@danbugs
danbugs enabled auto-merge May 15, 2026 22:32

@github-actions github-actions Bot 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.

Linux Benchmarks

Details
Benchmark suite Current: ff1c4ab Previous: 0bcbd38 Ratio
hello_world (median) 20 ms 20 ms 1
pandas (median) 100 ms 80 ms 1.25
density (per VM) 7 MB 7 MB 1
snapshot (disk) 385 MiB 385 MiB 1

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions github-actions Bot 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.

Windows Benchmarks

Details
Benchmark suite Current: ff1c4ab Previous: 0bcbd38 Ratio
hello_world (median) 177 ms 180 ms 0.98
pandas (median) 519 ms 533 ms 0.97
density (per VM) 6 MB 6 MB 1
snapshot (disk) 392 MiB 393 MiB 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@danbugs
danbugs merged commit a4831d7 into main May 15, 2026
79 checks passed
@danbugs
danbugs deleted the fix/pyhl-docker-fallback branch May 15, 2026 22:44
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.

Remove Docker dependency from pyhl setup

1 participant