-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: uniform behaviour for all add
commands
#1455
Conversation
.with(eq(ServiceInstallCtx { | ||
args: vec![ | ||
OsString::from("--rpc"), | ||
OsString::from("127.0.0.1:15002"), |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note test
.with(eq(ServiceInstallCtx { | ||
args: vec![ | ||
OsString::from("--rpc"), | ||
OsString::from("127.0.0.1:15001"), |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note test
.with(eq(ServiceInstallCtx { | ||
args: vec![ | ||
OsString::from("--rpc"), | ||
OsString::from("127.0.0.1:15000"), |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note test
Marked do not merge but we have approvals, hope thats ok @RolandSherwin |
Hey @JasonPaulGithub, this PR depends on a change from |
@RolandSherwin! 👍 👍 |
The three `add` commands for `safenode`, `safenodemand` and `faucet` now behave in a uniform way, all supporting `--path`, `--url` and `--version` arguments. These enable a binary to be provided via a path, a URL pointing to a tar/zip containing the binary, or by a specific version number, respectively. The `safenodemand` service also now supports running as a non-root user.
The new version of `sn-releases` uses a `Version` type rather than strings, and also renamed a trait, so the code had to be updated accordingly.
951b167
to
53e2bbd
Compare
Creating a user for running the `safenodemand` service doesn't make as much sense because the user must have root access. We can leave it up to the user to create an account and set it up for passwordless sudo, then provide an optional `--user` argument. For now we don't have this, and just go with root.
f9998cc feat: uniform behaviour for all
add
commandsThe three
add
commands forsafenode
,safenodemand
andfaucet
now behave in a uniform way,all supporting
--path
,--url
and--version
arguments. These enable a binary to be provided viaa path, a URL pointing to a tar/zip containing the binary, or by a specific version number,
respectively.
The
safenodemand
service also now supports running as a non-root user.53e2bbd chore: upgrade
sn-releases
to new minor versionThe new version of
sn-releases
uses aVersion
type rather than strings, and also renamed atrait, so the code had to be updated accordingly.
61a4245 chore: run
safenodemand
service as rootCreating a user for running the
safenodemand
service doesn't make as much sense because the usermust have root access. We can leave it up to the user to create an account and set it up for
passwordless sudo, then provide an optional
--user
argument. For now we don't have this, and justgo with root.
Description
reviewpad:summary