IntersectMBO / IntersectMBO/cardano-db-sync

Docker: Override NetworkName/NodeConfigFile if DB_SYNC_CONFIG is specified

Open
#1,944 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
318
Forks
168
PR merge metrics
No merged PRs in 30d

Description

> **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](https://github.com/IntersectMBO/cardano-db-sync/issues/1942#issuecomment-2663116771)_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.