Created
March 28, 2015 07:12
-
-
Save hokuma/79d44d80ff7780002069 to your computer and use it in GitHub Desktop.
mroongaのdocker imageを作る ref: http://qiita.com/halhide/items/f59b9aeadf2c9079c770
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:7 | |
MAINTAINER hokuma | |
RUN yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm | |
RUN yum install -y http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm | |
RUN yum makecache | |
RUN yum install -y mysql-community-server | |
RUN yum install -y mysql-community-mroonga | |
RUN mysql_install_db --datadir=/var/lib/mysql --user=mysql | |
RUN (/usr/bin/mysqld_safe &); sleep 10; echo "grant all privileges on *.* to root@'%';" | mysql -u root | |
RUN (/usr/bin/mysqld_safe &); sleep 10; mysql -u root < /usr/share/mroonga/install.sql | |
EXPOSE 3306 | |
CMD ["/usr/bin/mysqld_safe"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN (/usr/bin/mysqld_safe &); sleep 10; echo "grant all privileges on *.* to root@'%';" | mysql -u root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN (/usr/bin/mysqld_safe &); sleep 10; mysql -u root < /usr/share/mroonga/install.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMD ["/usr/bin/mysqld_safe"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --name=hokuma-mroonga -p 3306:3306 hokuma/mroonga:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -h 仮想マシンのIP -u root | |
mysql> show engines; | |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+ | |
| Engine | Support | Comment | Transactions | XA | Savepoints | | |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+ | |
| FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL | | |
| CSV | YES | CSV storage engine | NO | NO | NO | | |
| MyISAM | YES | MyISAM storage engine | NO | NO | NO | | |
| BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO | | |
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO | | |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO | | |
| Mroonga | YES | CJK-ready fulltext search, column store | NO | NO | NO | | |
| PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO | | |
| InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES | YES | YES | | |
| ARCHIVE | YES | Archive storage engine | NO | NO | NO | | |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+ | |
10 rows in set (0.01 sec) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Mroonga | YES | CJK-ready fulltext search, column store | NO | NO | NO | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment