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

Include Rancher-API #6

Open
Munsio opened this issue Dec 12, 2016 · 2 comments
Open

Include Rancher-API #6

Munsio opened this issue Dec 12, 2016 · 2 comments

Comments

@Munsio
Copy link

Munsio commented Dec 12, 2016

Hi Jan,

Currently it seems that this program is used to be bundled with an other program (like nginx) which then can be reloaded etc. via the shell exec command.

In my case i'd like to run the rancher-gen in an sidekick container and then notifying the "main" container every time if there are changes in the template, but this is currently not possible.

So i thought it would be great if the rancher-api is included in this program so rancher-gen is possible to send the notify-cmd or check-cmd over the rancher-api to the desired containers (multi-host capable).

In our fork @emcniece and I are currently working to enable notification support depending on an container label so rancher-gen would be able to execute its notify/check-cmd on each container with the specified label.

Currently we have 3 options to achieve the notification over rancher-api:

  1. rancher-gen and rancher-api are running in its own containers and rancher-gen uses the -privileged function to execute the command on rancher-api which then send the command to the provided containers
  2. rancher-api is directly loaded into rancher-gen and running the commands "directly?"
  3. Maybe we can use something like go-plugin (rpc) to implement an plugin system into rancher-gen and rancher-api is than a plugin which can be dynamically loaded into rancher-gen

I hope you understand what i mean and it would be great if you can give us your feedback.

@adi90x
Copy link

adi90x commented Dec 16, 2016

Just solve the problem by bundling nginx with rancher gen ! I post the image link in your github issue tracker
EDIT : adi90x/rancher-active-proxy

@Munsio
Copy link
Author

Munsio commented Dec 16, 2016

We want to avoid bundling nginx with rancher-gen at all costs so thank you for that repository but that doesn't solve the problem.

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