cage icon indicating copy to clipboard operation
cage copied to clipboard

Implement `extends`

Open emk opened this issue 9 years ago • 1 comments

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 avatar Nov 14 '16 14:11 emk

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

seamusabshere avatar May 01 '17 17:05 seamusabshere