Monkinetic Weblog

XVI Edition, September 2025

More Navigation

Archive for July 2014

page 1 of 8 next → last →


RT @iamdevloper: Wipe a developer's memory and show them code they just wrote, and they would say it's the worst code they've ever seen.


ok, is the @atpfm theme song available on the iTunes store or something? Cause I’d listen the hell out of that song.


@LenPeralta I'd buy it.


@mattgemmell That's really awesome. Proud of you man.


@cameronmoll @imathis @allanbranch if that were a restaurant's entire menu I'd eat there.


@Coverville <djimon>Whoo?</djimon>


#REM's New Adventures in Hi Fi is criminally underrated. /cc @remhq


@lmorchard I had to quit cold-turkey a couple of months ago. Hugely awesome game. If I ever get back in ill look you up.


@lmorchard eveonline?


@wilw I need you cool. Are you cool #photoshopwilwheaton http://t.co/PrfbFHSwK3


learning about construction materials estimating. i have brain hurt.


Anyone remember Too Much Coffee Man? /shakes/


RT @rstevens: You go into the battle with the coffee you have, not the coffee you need.


My son: "get it? It's a Marble Super Hero!" http://t.co/E7kKvokwoZ


Finally watched the last season if Warehouse 13. Man that's how you end a show #warehouse13


RT @kellan: Are home screens still a thing? I navigate the phone via notifications and search


@biocuriosity @GlennF ICQ number


Anyone know MySQL on @docker and can help? http://t.co/WnReyof7g7


monkinetic: Docker, Openstack, policy-rc.d, mysqld http://t.co/hqFTd3tsWK


Docker, Openstack, policy-rc.d, mysqld

I'm working on building a Docker image that I can use with Jenkins to run tests on some code. That code interacts with an Openstack install in the container to run the tests.

I'm using a variation of this cloudgear install script to install Openstack, an approach that seems to work well on Vagrant VMs, but it's failing wildly in a Docker container.

The issue I'm on right now is that mysql-server won't start. I tried starting (and restarting) it manually in my Dockerfile with RUN service mysql start after mysql is installed but always get a policy-rc.d error.

> invoke-rc.d: policy-rc.d denied execution of start.

I dug in and found that Docker's ubuntu includes a policy-rc.d file that simply returns 101 (not allowed) for any service that tries to start/restart after installation.

#!/bin/sh
exit 101

So... not sure why this is set up this way but I'll go with it. I changed my Dockerfile to rewrite the policy-rc.d file:

RUN echo "#!/bin/sh\nexit 0" &gt; /usr/sbin/policy-rc.d

The 0 return code is basically a heard-coded "yes" for installed services to run. I tried re-building my image with this new file, and while I am no longer getting the "denied execution" errors mysql still is not starting (confirmed with a couple of test operations that run after the install):

RUN apt-get install mysql-server python-mysqldb mysql-client-5.5 -y
RUN ps aux | grep mysql
RUN mysql -uroot -p

-e "show databases;"

Which return:

Step 10 : RUN ps aux | grep mysql</pwd>

page 1 of 8 next → last →