Skip to content

GitHub binary fetch via go run common/cmd/fetch + configure-dhcp - #21

Merged
keskad merged 6 commits into
mainfrom
feat/configure-dhcp-service
Aug 6, 2026
Merged

GitHub binary fetch via go run common/cmd/fetch + configure-dhcp#21
keskad merged 6 commits into
mainfrom
feat/configure-dhcp-service

Conversation

@keskad

@keskad keskad commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Intent

Wire the hub OS image to event WiFi DHCP and to the new micronet networking CLIs, while aligning binary delivery with the org-wide migration away from ORAS. Package fetch for bigfred, microinit, and micronet should use the shared Go fetch tool — no .ci-github clone, no Python requests, no gh CLI on the build host.

This PR is the integration layer: it consumes binaries from micronet, bigfred, and microinit.

Summary

  • Add configure-dhcp microinit service (runs after network; no-op without Omada)
  • Add package/micronet (replaces in-tree Go configure-ethernet app)
  • Package fetch for micronet / microinit / bigfred → go run …/cmd/fetch@latest
    • tip refs (main/master/sha) → Actions artifacts
    • v* / latest-release → GitHub Releases
  • Drop .ci-github bootstrap, ORAS fetch wrappers, and oras from build deps
  • Go already provided by install-go.sh

Related work

Repo PR / ref Role
common main @ v0.1.2 / v2 cmd/fetch
micronet #1 configure-dhcp, configure-ethernet binaries + manuals
bigfred #55 Hub daemon binaries
microinit #10 Init/supervisor binary
microdns #2 (parallel) shared CI pattern
bigfred-android-client #12 Same fetch tool for Android natives

Suggested merge order: common (done) → micronet + bigfred + microinit → this PR.

Test plan

  • Host has go; tip fetch works with token (e.g. os/package/microinit/fetch.sh main /tmp/out.tar)
  • Image build completes without ORAS / gh CLI
  • Boot: configure-dhcp starts after network; without Omada exits 0
  • configure-ethernet / configure-dhcp present from micronet package

keskad and others added 2 commits August 6, 2026 13:37
Wire /etc/init.d/configure-dhcp (binary from networking/configure-dhcp)
to run after network so event Omada setups get dnsmasq when detected.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add package/micronet (ORAS pull), enable in hub defconfig, and stop
installing these binaries from apps/.bin.

Co-authored-by: Cursor <cursoragent@cursor.com>
@keskad

keskad commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

Follow-up: removed Go apps/configure-ethernet; added Buildroot package/micronet (OCI install of both tools). Depends on micronet publishing ghcr.io/dcc-bigfred/micronet-linux-arm64.

Bootstrap dcc-bigfred/.github @ v2 for fetch-github-binaries.sh; replace
package fetch-oci wrappers; drop oras from build host deps.

Co-authored-by: Cursor <cursoragent@cursor.com>
@keskad

keskad commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

Follow-up: packages now fetch via GitHub Actions/Releases (shared fetch-github-binaries.sh from .github@v2); ORAS removed from host deps.

keskad and others added 2 commits August 6, 2026 19:52
Replace .ci-github bootstrap and Python fetch with thin package/*/fetch.sh
wrappers. Drop python3-requests host dep; Go is already installed.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Resolve conflicts by keeping both package refs and moving configure-dhcp
into microinit.d/services/os/configure-dhcp.json per main's service layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
@keskad
keskad merged commit 4674024 into main Aug 6, 2026
@keskad
keskad deleted the feat/configure-dhcp-service branch August 6, 2026 20:10
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