Add next-ip CLI with subnet-safe, step-based IP sequencing, Dagger CI pipeline, and minimal runtime image#1
Conversation
Agent-Logs-Url: https://github.com/hoverkraft-tech/next-ip/sessions/42fb7fc3-aa25-43e2-8b16-f46ae7888620 Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Agent-Logs-Url: https://github.com/hoverkraft-tech/next-ip/sessions/42fb7fc3-aa25-43e2-8b16-f46ae7888620 Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Agent-Logs-Url: https://github.com/hoverkraft-tech/next-ip/sessions/42fb7fc3-aa25-43e2-8b16-f46ae7888620 Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
get-next-ip CLI with subnet-safe IP sequencing, Dagger CI pipeline, and minimal runtime image
|
@copilot the binary should also accept the following argument :
Example: $ $ get-next-ip --step 2 192.168.100.100
192.168.100.102
$ get-next-ip --count 3 --step 3 192.168.100.102
192.168.100.106
192.168.100.107
192.168.100.108I'm open to a better name proposal for this arg like offstet, jump, etc... So feel free to propose. |
Agent-Logs-Url: https://github.com/hoverkraft-tech/next-ip/sessions/2b3d4ebd-598e-4bf8-9632-b32909f23ebf Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Implemented in commit The binary now supports Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
get-next-ip CLI with subnet-safe IP sequencing, Dagger CI pipeline, and minimal runtime imageget-next-ip CLI with subnet-safe, step-based IP sequencing, Dagger CI pipeline, and minimal runtime image
|
@copilot i added you authorization to access dagger.io, could you look into why ci is failling ? |
Agent-Logs-Url: https://github.com/hoverkraft-tech/next-ip/sessions/1dfc6c79-28bd-47e1-96c6-aa85624450de Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Found and fixed it in CI was failing in the build step because Dagger was exporting artifacts to Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot please ensure the following :
|
Agent-Logs-Url: https://github.com/hoverkraft-tech/next-ip/sessions/8398fe94-8ebf-42d7-ab15-2fff46fffc1d Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Agent-Logs-Url: https://github.com/hoverkraft-tech/next-ip/sessions/8398fe94-8ebf-42d7-ab15-2fff46fffc1d Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Agent-Logs-Url: https://github.com/hoverkraft-tech/next-ip/sessions/8398fe94-8ebf-42d7-ab15-2fff46fffc1d Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Agent-Logs-Url: https://github.com/hoverkraft-tech/next-ip/sessions/8398fe94-8ebf-42d7-ab15-2fff46fffc1d Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Done in
CI runs are currently landing in Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
get-next-ip CLI with subnet-safe, step-based IP sequencing, Dagger CI pipeline, and minimal runtime imagenext-ip CLI with subnet-safe, step-based IP sequencing, Dagger CI pipeline, and minimal runtime image
|
@copilot CI is failling |
Agent-Logs-Url: https://github.com/hoverkraft-tech/next-ip/sessions/d5755900-863c-423c-b572-00260cf97acc Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Fixed in I pulled the failing CI logs and the error was at job setup: action refs were swapped to non-existent versions for each repo. I updated the workflow to valid latest tags for each action:
The new run is now |
This PR introduces a small Go binary (
next-ip) to emit the next IP(s) from a CIDR input for shell/automation workflows. It also adds Dagger-based CI for lint/tests/multi-arch builds and a Docker image producing an autonomous static binary.CLI + core IP sequencing logic
cmd/next-ipwith--count/-csupport.--step/-ssupport to control increment size between generated IPs.NextIPs) and step-aware logic (NextIPsWithStep) that:Focused test coverage
Dagger-driven CI
ci/Go module + Dagger entrypoint supporting:lint(format check + vet),test,build(linux/amd64 + linux/arm64 artifacts).contents: read).distpath in CI.dagger.io/daggerv0.20.8actions/checkout@v6.0.2actions/setup-go@v6.4.0dagger/dagger-for-github@v7.0.61.25.xContainer image
scratchruntime stage.next-ipbinary image with no OS/runtime dependency footprint.Documentation
README.mdwith concise usage examples, including--step, Docker usage, and CI scope.get-next-iptonext-ip.Original prompt