Skip to content
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

Make multiarg work with env #12

Open
patricklodder opened this issue Nov 16, 2021 · 5 comments
Open

Make multiarg work with env #12

patricklodder opened this issue Nov 16, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@patricklodder
Copy link
Member

While reviewing #10, I realized that one of the things that doesn't work with env-as-arg right now is multi-arg, i.e. -addnode=x -addnode=y.

We should add something for that.

@patricklodder patricklodder added the enhancement New feature or request label Nov 16, 2021
@AbcSxyZ
Copy link
Contributor

AbcSxyZ commented Nov 17, 2021

Which type of value this type of argument is requiring ? Obviously, we can't use an environment variable twice, so if we want to do something with it, I don't see another way than having a delimiter to separate values.

Or an amazing alternative : -e ADDNODE1=x -e ADDNODE2=y 🤣

@patricklodder
Copy link
Member Author

patricklodder commented Nov 17, 2021

$ grep -rn mapMultiArgs.count src/*cpp | sed 's/^.*mapMultiArgs.count..//;s/".*$//' |sort |uniq
  • -addnode => <ipv4>:<port> or <ipv6>:<port> or <dnsname>:<port>
  • -bind => <ipv4>:<port> or <ipv6>:<port>
  • -bip9params <int>:<int>:<int>
  • -connect => <ipv4>:<port> or <ipv6>:<port> or <dnsname>:<port>
  • -debug => <alpha>
  • -externalip => <ipv4>:<port> or <ipv6>:<port> or <dnsname>:<port>
  • -loadblock => <filename> (NOTE: will be hard to use anyway)
  • -onlynet => <alphanumeric>
  • -rpcallowip => <ipv4>/<int> or <ipv6>/<int>
  • -rpcauth => <string>:<string> (NOTE: this one may be tricky)
  • -rpcbind => <ipv4>:<port> or <ipv6>:<port>
  • -seednode => <ipv4>:<port> or <ipv6>:<port> or <dnsname>:<port>
  • -uacomment => <string> (!!!)
  • -whitebind => <ipv4>:<port> or <ipv6>:<port>
  • -whitelist => <ipv4>/<int> or <ipv6>/<int>

I think ,

@xanimo
Copy link
Member

xanimo commented Dec 3, 2021

While reviewing #10, I realized that one of the things that doesn't work with env-as-arg right now is multi-arg, i.e. -addnode=x -addnode=y.

We should add something for that.

i can confirm adding 2 nodes by running docker run -it <image> --addnode=x --addnode=y on an image built off main.

@patricklodder
Copy link
Member Author

That's correct, but you don't want to do args like that when you k8s. That's what the -e ADDNODE=x is for...

@xanimo
Copy link
Member

xanimo commented Dec 4, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants