Skip to content

URC CLI dockerfile#881

Open
mskrzypkows wants to merge 4 commits intomasterfrom
urc-cli-dockerfile
Open

URC CLI dockerfile#881
mskrzypkows wants to merge 4 commits intomasterfrom
urc-cli-dockerfile

Conversation

@mskrzypkows
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings February 27, 2026 14:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a container build for the urc-cli binary and improves CLI error handling by moving fallible logic into a run() function and providing clearer argument-parse errors for the opt-in-to-slasher command.

Changes:

  • Add urc/Dockerfile to build and run urc-cli in a minimal distroless image.
  • Refactor CLI entrypoint to print errors and exit non-zero on failure.
  • Improve validation/error messages for private key, RPC URL, registry address, and command parameters in opt_in_to_slasher.

Reviewed changes

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

File Description
urc/src/cli/main.rs Refactors main into main + run() and adds more user-friendly parsing errors for opt_in_to_slasher inputs.
urc/Dockerfile Introduces a multi-stage Docker build producing a distroless runtime image containing only urc-cli and CA certificates.

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

Copy link

Copilot AI commented Feb 27, 2026

@mskrzypkows I've opened a new pull request, #882, to work on those changes. Once the pull request is ready, I'll request review from you.

mskrzypkows and others added 2 commits February 27, 2026 17:17
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Initial plan

* Add usage comment to urc/Dockerfile clarifying build context must be repo root

Co-authored-by: mskrzypkows <10705549+mskrzypkows@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mskrzypkows <10705549+mskrzypkows@users.noreply.github.com>
@mskrzypkows mskrzypkows enabled auto-merge (squash) February 27, 2026 16:27
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