Commit Graph

140 Commits

Author SHA1 Message Date
Sameer Naik
1453ebc8ac switch to harpoon installer 2016-02-16 12:02:43 -08:00
Sameer Naik
5dadafae35 fix creation of replication user for 10.x releases
Creating a replication user (in the `GRANT` statement) without a
password errors out on upcoming 10.x releases.

For example,

```sql
GRANT REPLICATION SLAVE ON *.* TO 'replication'@'%' IDENTIFIED BY '';
```

emits the error `ERROR 1133 (28000): Can't find any matching row in the
user table`.

To resolve this we user the `CREATE` statement to the user.

eg.

```sql
CREATE USER 'replication'@'%' IDENTIFIED BY '';
GRANT REPLICATION SLAVE ON *.* TO 'replication'@'%';
```
2016-02-16 11:52:08 -08:00
Sameer Naik
5725653c6f set default value of MARIADB_MASTER_USER to root
Refer #34
2016-01-30 12:23:18 +05:30
Sameer Naik
0609d96799 tests: make sed a little resilient to whitespaces 2015-11-28 10:31:48 +05:30
Sameer Naik
2f84894314 tests: Configuration changes are preserved after deletion 2015-11-27 20:59:10 +05:30
Sameer Naik
872f08f0d5 bump version 5.5.46-0-r01 2015-11-25 12:37:21 +05:30
Sameer Naik
37560c6b8c update tests submodule 2015-11-25 11:57:15 +05:30
Sameer Naik
1f4e221725 tests: helpers have been moved to https://github.com/bitnami/bitnami-docker-tests.git 2015-11-10 11:12:09 +05:30
Sameer Naik
5d25977da4 tests: update to latest docker_helper 2015-11-09 20:45:35 +05:30
Sameer Naik
42da4961f5 tests: renamed create_container function to container_create in docker_helper 2015-11-05 19:18:08 +05:30
Sameer Naik
6bc93ee0ef tests: fix container_exec function 2015-11-05 14:19:09 +05:30
Sameer Naik
f6e521fec7 tests: Can't setup replication slave without master host 2015-11-04 21:11:59 +05:30
Sameer Naik
50a5090e3c tests: Can't setup replication master without replication user 2015-11-04 21:11:59 +05:30
Sameer Naik
6f0e9bf569 tests: rewrite tests for better maintenance and readability
- Reuse docker_helper.bash script in tests
 - Speed up of tests
 - Better readability
2015-11-04 21:11:54 +05:30
Adnan Abdulhussein
c6dd23c977 Update to 5.5.46-0 2015-10-29 12:16:31 +05:30
Sameer Naik
e37a7b6dd8 fix documentation of "Setting up a replication cluster" 2015-10-29 11:56:24 +05:30
Sameer Naik
3921d6d5e9 tests: make use of cleanup_running_containers 2015-10-29 11:56:17 +05:30
Sameer Naik
b2e87c43f2 tests: always specify MARIADB_REPLICATION_MODE=master while starting the master 2015-10-29 11:25:49 +05:30
Sameer Naik
ccaee528bd skip DNS lookups to fix tests 2015-10-29 10:47:25 +05:30
Sameer Naik
8cee216e72 tests: fetch parameters from links once the link test has passed 2015-10-27 17:44:26 +05:30
Sameer Naik
d4f10a15da tests: fix container link names 2015-10-27 17:22:54 +05:30
Sameer Naik
d4af9015d8 use the entrypoint.sh script from the base image 2015-10-08 19:23:45 +05:30
Sameer Naik
a64fda3c8f the base image prints the welcome page by default 2015-10-08 19:23:45 +05:30
Sameer Naik
b713240b1d append EXTRA_OPTIONS to command only if it is defined 2015-10-08 19:23:45 +05:30
Sameer Naik
9847548f1f moved bitnami-utils-custom.sh and entrypoint.sh to rootfs/ directory 2015-10-08 19:23:45 +05:30
Sameer Naik
d5f49c9c98 added circuit breaker logic for frequent and repeated failures 2015-10-08 19:23:45 +05:30
Sameer Naik
b78a2124c6 added mariadb-logs service to tail the mysqld.bin logs 2015-10-08 19:23:45 +05:30
Sameer Naik
09b1ba287d moved most of the mariadb initialization and setup login into 01-bitnami-mariadb 2015-10-08 19:23:45 +05:30
Sameer Naik
89a56c6240 specify mysqld.bin as the default command 2015-10-08 19:23:45 +05:30
Sameer Naik
a3f80f88b2 do not start the mariadb service if user specifies a custom command 2015-10-08 19:23:45 +05:30
Sameer Naik
90361a7d0b removed pointless if condition from entrypoint.sh script 2015-10-08 19:23:45 +05:30
Sameer Naik
5157d1fe06 added init script to perform sanity checks 2015-10-08 19:23:45 +05:30
Sameer Naik
8a48641480 renamed 01-initialize-configs -> 02-bitnami-mariadb-initialize 2015-10-08 19:23:45 +05:30
Sameer Naik
d1b6492a8a bring down the container if the mariadb/run script returns an
unrecoverable error
2015-10-08 19:23:45 +05:30
Sameer Naik
a4fc9cfd02 enable user to specify parameters to the mariadb server from the command line 2015-10-08 19:23:45 +05:30
Sameer Naik
d63a182a52 added initialize-configs init script to populate the conf/ volume
`mysql` client fails when it is started from the docker run command line
due to missing `my.cnf`. To workaround this issue, we populate the
`conf/` volume from a `cont-init.d/01-initialize-configs` scripts.
2015-10-08 19:23:45 +05:30
Sameer Naik
c8d5ae842e create s6 service for starting mariadb server 2015-10-08 19:23:45 +05:30
Adnan Abdulhussein
d4b8765733 Run install script as executable 2015-10-08 12:44:28 +01:00
Sameer Naik
43515b1187 fix installer.run.sha256 with busybox sha256sum applet 2015-09-15 15:02:58 +05:30
Sameer Naik
f4a4a7ab21 copy bitnami-utils-custom.sh after install.sh
speeds up development :)
2015-09-11 20:31:42 +05:30
Miguel Martinez
b1cc2189f7 Bump revision 5.5.45-0-r01 2015-09-11 09:44:45 +02:00
Miguel Martinez
931d3d858c Bump version 5.5.45-1 - Replication support 2015-09-11 09:37:58 +02:00
Sameer Naik
e677f04740 create_user: automatically fetch user/password and database from master link in slave 2015-09-11 11:28:30 +05:30
Sameer Naik
f1d23c68d0 added MARIADB_ prefix to replication parameters 2015-09-10 23:33:41 +05:30
Sameer Naik
dc6a5b3eed renamed master nodes link auto discovery link name to master from mariadb-master 2015-09-10 22:06:49 +05:30
Sameer Naik
c2b4312e9a tests: Can setup replication without password for replication user 2015-09-10 21:07:45 +05:30
Sameer Naik
4253aacb10 tests: Can't setup replication slave without master user 2015-09-10 20:47:50 +05:30
Sameer Naik
2ada7f8d48 tests: Can't setup replication slave without replication user 2015-09-10 20:32:25 +05:30
Sameer Naik
e996d40828 replication: MARIADB_DATABASE is required to setup a replication slave 2015-09-10 14:56:01 +05:30
Sameer Naik
587c76951b readme: document setting up replication cluster 2015-09-10 14:37:23 +05:30