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

Improve env handling via preprocessing templated config files #162

Merged
merged 3 commits into from
Apr 22, 2024

Conversation

indirection42
Copy link
Member

@indirection42 indirection42 commented Apr 22, 2024

Partially #129

${variable_name} in config.yml will be replaced by corresponding env vars when read_config gets called.

Will support ${variable.-word} and {variable:+word} in the next related PR.

@xlc
Copy link
Member

xlc commented Apr 22, 2024

Actually I think it is better to align the syntax with Dockerfile https://docs.docker.com/reference/dockerfile/#environment-replacement

We can support ${variable_name} syntax in this PR and ${variable:-word} and ${variable:+word} in next PR

@indirection42 indirection42 merged commit 7b5747e into master Apr 22, 2024
1 check passed
@indirection42 indirection42 deleted the feat-env-config branch April 22, 2024 06:30
kostekIV added a commit to Cardinal-Cryptography/subway that referenced this pull request Apr 29, 2024
* subsquid indexer & processor fix (AcalaNetwork#150)

* update deps (AcalaNetwork#155)

* bypass cache for unfinalized blocks (AcalaNetwork#154)

* endpoint health (AcalaNetwork#152)

* Await healthy endpoint (AcalaNetwork#158)

* use only tracing (AcalaNetwork#157)

* Filter call errors (AcalaNetwork#159)

* validate middleware (AcalaNetwork#156)

* validate middleware

* validate extension for config

* rename

* Improve env handling via preprocessing templated config files (AcalaNetwork#162)

* Feat(config): support ${var:-word} and ${var:+word} syntax (AcalaNetwork#164)

* fix cli default value (AcalaNetwork#169)

* improve reconnect wait time (AcalaNetwork#168)
---------

Co-authored-by: mrq1911 <lumir.mrkva@topmonks.com>
Co-authored-by: Ermal Kaleci <ermalkaleci@gmail.com>
Co-authored-by: Jiyuan Zheng <indirection42@outlook.com>
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

Successfully merging this pull request may close these issues.

2 participants