-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Feature request] Support multiple SPR records via environment variable #525
Comments
This is blocked by the library's support: status-im/nim-confutils#87 |
In oauth2-proxy, they also add a trailing |
An example from Geth - it is plural --bootnodes value ($GETH_BOOTNODES)
Comma separated enode URLs for P2P discovery bootstrap |
One more note about how Codex and Geth handle bootstrap env variable
This is important because docker compose does not provide dynamic elements configuration and a single way to pass bootstrap nodes dynamically would be to use detailsEmpty valueGeth - Run successfully
Codex - Failed to start docker run --rm -e "CODEX_BOOTSTRAP_NODE=" codexstorage/nim-codex:latest codex --log-level=debug
[Chronicles] Log message not delivered: [Chronicles] A writer was not configured for a dynamic log output device. Log message not delivered: WRN 2023-12-10 17:09:34.941+00:00 Invalid SignedPeerRecord uri tid=1 uri=
[Chronicles] Log message not delivered: [Chronicles] A writer was not configured for a dynamic log output device. Log message not delivered: {"lvl":"WRN","ts":"2023-12-10 17:09:34.941+00:00","msg":"Invalid SignedPeerRecord uri","tid":1,"uri":""}
[Chronicles] Log message not delivered: [Chronicles] A writer was not configured for a dynamic log output device. Log message not delivered: WRN 2023-12-10 17:09:34.941+00:00 Invalid SignedPeerRecord uri tid=1 uri= Wrong valueGeth - Failed to start docker run --rm -e "GETH_BOOTNODES=text" ethereum/client-go:alltools-v1.13.5 geth --verbosity=5
INFO [12-10|17:12:11.439] Config environment variable found envvar=GETH_BOOTNODES
INFO [12-10|17:12:11.450] Starting Geth on Ethereum mainnet...
INFO [12-10|17:12:11.451] Bumping default cache on mainnet provided=1024 updated=4096
CRIT [12-10|17:12:11.452] Bootstrap URL invalid enode=text err="missing 'enr:' prefix for base64-encoded record" Codex - Failed to start docker run --rm -e "CODEX_BOOTSTRAP_NODE=text" codexstorage/nim-codex:latest codex --log-level=debug
[Chronicles] Log message not delivered: [Chronicles] A writer was not configured for a dynamic log output device. Log message not delivered: WRN 2023-12-10 17:13:47.099+00:00 Invalid SignedPeerRecord uri tid=1 uri=text
[Chronicles] Log message not delivered: [Chronicles] A writer was not configured for a dynamic log output device. Log message not delivered: {"lvl":"WRN","ts":"2023-12-10 17:13:47.099+00:00","msg":"Invalid SignedPeerRecord uri","tid":1,"uri":"text"}
[Chronicles] Log message not delivered: [Chronicles] A writer was not configured for a dynamic log output device. Log message not delivered: WRN 2023-12-10 17:13:47.099+00:00 Invalid SignedPeerRecord uri tid=1 uri=text |
this isn't how you pass multiple values to codex, you need to repeat the option as many times as required - |
Is your feature request related to a problem? Please describe.
We can't pass multiple SPR records via environment variable
CODEX_BOOTSTRAP_NODE
.Describe the solution you'd like
We should be able to pass multiple SPR records via environment variable, because now we can pass just a single one
export CODEX_BOOTSTRAP_NODE=spr:xxx,spr:yyy codex
Now we get an error
Describe alternatives you've considered
As for now, we can pass multiple SPR records only using CLI options
Additional context
Environment variables is a very useful way to pass configuration, especially when we are using containers.
The text was updated successfully, but these errors were encountered: