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

multiple .env args gets concatenated #7

Open
J-Zeitler opened this issue Jan 17, 2020 · 0 comments
Open

multiple .env args gets concatenated #7

J-Zeitler opened this issue Jan 17, 2020 · 0 comments

Comments

@J-Zeitler
Copy link

When using an .env file with multiple args, such as:

A=aaaa
B=bbbb

that's later used in docker-compose.yml:

services:
  myservice:
    environment:
      - A=${A}
      - B=${B}

the args read by dcr gets concatenated and will result in something like:

$ echo $A
aaaa
B=bbbb

This behavior is not present when running normal docker-compose up ...

I guess the offending code is here somewhere:

https://github.com/modfin/dcr/blob/master/dcr.go#L381-L418

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