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

Docker: Override NetworkName/NodeConfigFile if DB_SYNC_CONFIG is specified #1944

Open
sgillespie opened this issue Feb 18, 2025 · 0 comments

Comments

@sgillespie
Copy link
Contributor

Context : Docker Deployment

Would it be possible to inject these to config file if they are absent?

  "NetworkName": "mainnet",
  "NodeConfigFile": "/nix/store/kcl7gc0q0w70c51lnfh1cdk70niylshd-config-mainnet.json",

All I need is to add few extra insert_options. In order to do that, I need to find out the main-net config.

Additionally
  • I need different configuration file for each network.
  • it won't be valid on upgrading.

Suggestion:

  • Automatically override NetworkName and NodeConfigFile if NETWORK env variable is present and DB_SYNC_CONFIG is also present.

This will drastically reduce configuration hassle for each network and need to find out node configuration file.

Originally posted by @mesudip in #1942

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

No branches or pull requests

1 participant