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

Implement extends #58

Open
emk opened this issue Nov 14, 2016 · 1 comment
Open

Implement extends #58

emk opened this issue Nov 14, 2016 · 1 comment
Labels

Comments

@emk
Copy link
Contributor

emk commented Nov 14, 2016

At the moment, cage really doesn't have any particularly good support for extends.

We could support this as follows:

extends:
  file: "templates/webapp.yml"
  service: "webapp"

Optionally, we could also have support for overriding templates:

  • pods/templates/webapp.yml
  • pods/targets/$TARGET/templates/webapp.yml

The trick would be to merge these two files before we use them as input to the extends. This would allow us to handle cases where we use one image in development, and a different image in production.

@emk emk added the RFC label Nov 14, 2016
@seamusabshere
Copy link
Member

heh, no more extends in latest version of docker-compose.yml :)

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

2 participants