faradayio / cage

Develop and deploy complex Docker applications
http://cage.faraday.io
Apache License 2.0
307 stars 26 forks source link

Why is the structure so deep? #30

Closed rossmeissl closed 7 years ago

rossmeissl commented 7 years ago

@emk I feel like a Cage repo could simply be:

_config.yml
common.env
frontend.yml
overrides/
  development/
    common.env

Why all the fuss with the config/ dir and the demotion of the pod.yml files to a pods/ dir?

emk commented 7 years ago

Tl;dr: The structure is deep because as the project grows, things get a lot messier, and because I like relatively clean top-level directories.

emk commented 7 years ago

As a followup to that last bullet, you should actually be able to write build: ".." in a pod now, and keep your main services's source in the root directory. Not that I recommend this. But it might make sense for an existing project switching to cage.

rossmeissl commented 7 years ago

Great, makes sense