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

Share a container among different clusters #92

Open
rashtao opened this issue Aug 11, 2015 · 1 comment
Open

Share a container among different clusters #92

rashtao opened this issue Aug 11, 2015 · 1 comment

Comments

@rashtao
Copy link

rashtao commented Aug 11, 2015

I want to link the same container to different clusters (eg. to have a shared dbms among all the clusters).
Is it possible? How can I do that?

This is my current configuration:

containers:
  a:
    image:        a
    dependencies:
      - b
  b:
    image:        b
    dependencies:
      - db
  db:
    image:        db

clusters:
  c1:      ["a", "b"]
  c2:      ["a", "b"]

groups:
  c1:
    options:
      env:        ["CLUSTER_NAME=c1"]
    containers:
  c2:
    options:
      env:        ["CLUSTER_NAME=c2"]
    containers:

and I would like to have only one container for db linked both from b.c1 and b.c2. But if I try to create and run the clusters:

# decking build all
# decking create c1
# decking create c2
# decking start c1
# decking start c2

I get 6 containers running:

  • a.c1, b.c1, db.c1,
  • a.c2, b.c2, db.c2
@guillaumelecerf
Copy link
Contributor

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

2 participants