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

Linking command into Supervise children #466

Open
anti-social opened this issue Nov 1, 2017 · 0 comments
Open

Linking command into Supervise children #466

anti-social opened this issue Nov 1, 2017 · 0 comments

Comments

@anti-social
Copy link
Contributor

Suppose we have a mixin with some commands. And in main vagga.yaml we have Supervise command in which we want to use command from mixin. Anchors also don't work between different files. So at the moment the only way is to move such command into main vagga config.

So I suggest to implement one more tag for supervised child: LinkCommand. Below shows how it might look like:

postgres.yaml:

containers:
  postgres:
    setup:
    ...

commands:
  postgres: !Command
    container: postgres
    run: |
      ...

vagga.yaml:

mixins: 
- postgres.yaml

containers:
...

commands:
  test: !Supervise
  children:
    postgres: !LinkCommand postgres
    ...
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