Skip to content

Instantly share code, notes, and snippets.

@yoku0825
Last active October 7, 2015 04:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoku0825/9f76b7f112bc89903999 to your computer and use it in GitHub Desktop.
Save yoku0825/9f76b7f112bc89903999 to your computer and use it in GitHub Desktop.
FROM yoku0825/cent66:init
RUN echo "NETWORKING=yes" > /etc/sysconfig/network
RUN yum install -y which
RUN rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
RUN rpm -ivh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
RUN yum install -y mysql-community-mroonga groonga-tokenizer-mecab
RUN service mysqld start && mysql -e "GRANT ALL ON *.* TO root@'%' WITH GRANT OPTION"
EXPOSE 3306
ENTRYPOINT /usr/sbin/mysqld --user=mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment