docker run --net=xwiki-nw --name mysql-xwiki -v /my/own/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=xwiki -e MYSQL_USER=xwiki -e MYSQL_PASSWORD=xwiki -e MYSQL_DATABASE=xwiki -d mysql:5.7 --character-set-server=utf8 --collation-server=utf8_bin --explicit-defaults-for-timestamp=1
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.23.0</version>
<extensions>true</extensions>
<configuration>
<imagePullPolicy>IfNotPresent</imagePullPolicy>
<docker.autoCreateCustomNetworks>true</docker.autoCreateCustomNetworks>
<images>
<image>
<alias>mysql-xwiki</alias>
<name>mysql:5.7</name>
<run>
<network>
<mode>custom</mode>
<name>xwiki-nw</name>
</network>
<volumes>
<bind>
<volume>${project.build.directory}/docker/mysql:/var/lib/mysql</volume>
</bind>
</volumes>
<env>
<MYSQL_ROOT_PASSWORD>xwiki</MYSQL_ROOT_PASSWORD>
<MYSQL_USER>xwiki</MYSQL_USER>
<MYSQL_PASSWORD>xwiki</MYSQL_PASSWORD>
<MYSQL_DATABASE>xwiki</MYSQL_DATABASE>
</env>
<cmd>--character-set-server=utf8 --collation-server=utf8_bin --explicit-defaults-for-timestamp=1</cmd>
</run>
</image>
</images>
</configuration>
</plugin>
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
mysql> SHOW VARIABLES LIKE 'char%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | latin1 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.01 sec)
mysql> SHOW VARIABLES LIKE 'col%';
+----------------------+-------------------+
| Variable_name | Value |
+----------------------+-------------------+
| collation_connection | latin1_swedish_ci |
| collation_database | utf8_bin |
| collation_server | utf8_bin |
+----------------------+-------------------+
3 rows in set (0.00 sec)
mysql> SHOW VARIABLES LIKE 'expl%';
+---------------------------------+-------+
| Variable_name | Value |
+---------------------------------+-------+
| explicit_defaults_for_timestamp | ON |
+---------------------------------+-------+
1 row in set (0.00 sec)
mysql>