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

mapping key "environment" already defined #15

Open
jlosito opened this issue Nov 22, 2023 · 0 comments
Open

mapping key "environment" already defined #15

jlosito opened this issue Nov 22, 2023 · 0 comments
Labels

Comments

@jlosito
Copy link
Contributor

jlosito commented Nov 22, 2023

👻 Brief Description

When trying to run the docker-compose file, I get an error. The error I get states, "mapping key "environment" already defined".

Steps To Reproduce

Steps to reproduce the behavior:

  1. Enter hab studio hab studio enter
  2. Build the application hab build webapp and hab build haproxy
  3. Export them docker hab pkg export container results/<webapp_hart_file> and hab pkg export container results/<haproxy_hart_file>
  4. Confirm the docker images are built docker images | grep ${HAB_ORIGIN}
  5. Run the docker-compose file as shown below
$ docker-compose -p habquickstart up -d
parsing /path/to/hab-two-tier/docker-compose.yml: yaml: unmarshal errors:
  line 7: mapping key "environment" already defined at line 4
  line 13: mapping key "environment" already defined at line 10
  line 22: mapping key "environment" already defined at line 19

🚓 Expected behavior

I expect docker-compose to spin up the application without errors.

➕ Additional context

#16

Versions running

$ hab --version
hab 1.6.652/20230206161214

$ docker-compose --version
Docker Compose version v2.23.0-desktop.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant