-
-
Notifications
You must be signed in to change notification settings - Fork 791
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
[Question] Using Runit Service Discovery #72
Comments
First of all, I should add runit support for you so you don't have to manually do this. Should be fairly doable with how I have things setup correctly and can support both the docker daemon and I'd highly recommend using the Chef community runit cookbook: https://github.com/hw-cookbooks/runit, which is what I'd base any implementation of mine on (using the Hope this helps. Will keep open until runit support is added. |
Thanks for the help and willingness to extend the existing functionality. I have the runit cookbook being used as a dependency for my web server (Nginx), so I guess I have looked into it somewhat, but was stumbling to try to figure out how to get it to work with the chef-docker cookbook. I definitely am looking forward to this new functionality! |
Released initial support for runit in 0.31.0 of the cookbook. Set your init_type or container_init_type attributes to runit and hopefully this will get you started. |
I just started testing Runit again. I set the "container_init_type": "runit". When I run my recipe a second time and when it hits the section for stopping a container it errors out. I have the following to stop a potential running container:
Error I get:
Any ideas or things I need to set to get this to work in my Debian 7 environment? Thanks! |
@mickelsonm are you still having trouble with runit? |
@bflad : Hey thanks for the follow-up! Unfortunately,I wasn't able to get it to go. I am trying to remember what I tried (month ago...sorry), but I do remember setting "container_init_type": "runit", which partially worked the first time I ran my deployment script, but on the second time it raised the error I mentioned.Not really sure on the how or why without re-testing it. |
I noticed that the supported service discovery types are Systemd and Upstart. My needs require Runit, which I was able to get something quickly working. Below are my main files that I use to achieve this:
runit.config.erb
create the service items
My question is if there is a more elegant/better way to achieve this? I would greatly prefer if I could achieve the same results using the chef-docker cookbook. I am new to Chef and Ruby, so all help is greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered: