-
-
Notifications
You must be signed in to change notification settings - Fork 690
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
provision a docker container #194
Comments
I have the same issue trying to install mysql-server in ubuntu12.04 docker container. Upstart isn't available so mysql service refuse to start. |
@alambike Thanks for the links! a friend did a fork of the mysql cookbook http://bit.ly/1l8vb7u to allow the provisioning with chef-solo and we use supervisor to start mysql. |
I can at least confirm that this is indeed still an issue, I've tried both the 5.5.4 from this repo here (opscode-cookbooks/mysql) and the one mentioned by @thpham https://github.com/haad/mysql/ and I still get the same error:
anyone out there successfully using docker, chef-solo, and mysql? |
Hi there. The MySQL 6.0.0 release has separated the :create and :start actions. You should now be able to use a mysql_service resource in a recipe with the :create action, and it will not attempt to start the service with any init system, allowing you to start it externally from your Dockerfile. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I’m trying to use kitchen-docker with chef_solo to provision mysql::server cookbook inside a docker container (host: centos6 with devicemapper backend storage and docker container is ubuntu14.04). but during the cook I got a “ERROR 2002 (HY000): Can't connect to local MySQL” during the execute[install-grants].
here is the output : https://gist.github.com/thpham/aa37d305c1341099e51c
Thanks
The text was updated successfully, but these errors were encountered: