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

add support for raw env_file format #12179

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Oct 2, 2024

What I did
Add support for env_file format with raw to rely on docker/cli parser

requires

Related issue
fixes #12174
requires docker/cli#5491
requires compose-spec/compose-go#690

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

@ndeloof ndeloof requested review from glours, a team and jhrotko and removed request for a team October 2, 2024 07:25
command: sh -c "echo $$TEST_VAR"
env_file:
- path: .env.raw
format: raw # parse without interpolation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think there can be other formats? I was wondering if it could be a boolean instead raw:true instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my goal is to allow reusing docker/cli parser, which this repository can't refer to.
Also, while we don't have another format yet, I could imaging one might want to use java-style properties files, or maybe xml 🧌

Copy link
Contributor

@jhrotko jhrotko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Should we update compose-go version?

@ndeloof ndeloof marked this pull request as ready for review October 8, 2024 15:46
@ndeloof ndeloof merged commit 15bd0b0 into docker:main Oct 8, 2024
28 checks passed
@ndeloof ndeloof deleted the env_format branch October 8, 2024 16:34
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.

Env files parsing
3 participants