Page MenuHomeDevCentral

No OneTemporary

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c2a47f6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+stopwords.txt
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..d9100f8
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,13 @@
+#
+# Nasqueron - MySQL image
+#
+
+FROM mysql
+MAINTAINER Sébastien Santoro aka Dereckson <dereckson+nasqueron-docker@espace-win.org>
+
+#
+# Phabricator desiderata
+#
+
+COPY stopwords.txt /etc/mysql/
+RUN sed -i "s/\[mysqld\]/[mysqld]\n#\n# * Phabricator specific settings\n#\nsql_mode=STRICT_ALL_TABLES\nft_stopword_file=\/etc\/mysql\/stopwords.txt\nft_min_word_len=3\nft_boolean_syntax=' |-><()~*:\"\"\\&^'\ninnodb_buffer_pool_size=410M\n/" /etc/mysql/my.cnf
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b76cd36
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+all: stopwords.txt rebuild
+
+stopwords.txt:
+ wget https://raw.githubusercontent.com/phacility/phabricator/master/resources/sql/stopwords.txt
+
+rebuild:
+ docker build --tag nasqueron/mysql .
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..8904aaa
--- /dev/null
+++ b/README.md
@@ -0,0 +1,28 @@
+# MySQL image
+
+## Description
+
+This MySQL image is fairly conservative: it uses the official MySQL
+docker image as base, add customiszed the settings for the applications
+used at Nasqueron.
+
+## Ready for Phabricator
+
+The followings settings have been added for Phabricator:
+
+```
+#
+# * Phabricator specific settings
+#
+sql_mode=STRICT_ALL_TABLES
+ft_stopword_file=/etc/mysql/stopwords.txt
+ft_min_word_len=3
+ft_boolean_syntax=' |-><()~*:""&^'
+innodb_buffer_pool_size=410M
+```
+
+## To launch it
+
+Pick a root password and a name, then run it:
+
+ docker run -d -e MYSQL_ROOT_PASSWORD=HZQ0Gqz7P9L5RT7adqNPivHa0obX05t --name acquisitariat nasqueron/mysql

File Metadata

Mime Type
text/x-diff
Expires
Thu, Sep 18, 14:18 (16 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2985904
Default Alt Text
(1 KB)

Event Timeline