sclorg / mysql-container

MySQL container images based on Red Hat Software Collections and intended for OpenShift and general usage. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
http://softwarecollections.org
Apache License 2.0
128 stars 201 forks source link

MySQL Plugin Installation #154

Closed henderb closed 8 years ago

henderb commented 8 years ago

Is there a supported/existing way to add plugins to this MySQL container? I see a plugin-dir option in my-base.cnf.template for scl compatibility, but nothing seems to call --plugin-load or INSTALL PLUGIN.

https://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_plugin-load

I want to build an image that comes up with no extra initialization steps needed in docker-compose or openshift.

bparees commented 8 years ago

The assumption is you'd extend this image, so write a dockerfile that does FROM centos/mysql-56-centos7 RUN

and then run that image.

alternatively you can bindmount a volume containing your plugins, to the plugin dir.