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
Sameer Naik
6c523f7b16
replication: check connection to replication master before taking a database dump
2015-09-10 14:33:05 +05:30
Sameer Naik
2660259153
help: updated with replication options
2015-09-10 12:32:58 +05:30
Sameer Naik
b1cbadd7d7
tests: cleanup master and slave containers on `setup` and `teardown`
2015-09-09 22:03:46 +05:30
Sameer Naik
3559f2a1ac
tests: Replication status is preserved after deletion
2015-09-09 21:50:45 +05:30
Sameer Naik
a9f0b54852
tests: Slave synchronizes with the master (delayed start)
2015-09-09 21:25:46 +05:30
Sameer Naik
62b2ec04b7
tests: Replication slave can automatically fetch connection parameters from master using docker links
2015-09-09 21:25:35 +05:30
Sameer Naik
fd6c3359c2
tests: Master database is replicated on slave
2015-09-09 20:54:58 +05:30
Sameer Naik
a1531cde5a
tests: use `IMAGE_NAME` macro
2015-09-09 20:30:42 +05:30
Sameer Naik
bc63b573f1
tests: use `create_container` function whenever possible
2015-09-09 20:30:42 +05:30
Sameer Naik
ca10e93cdc
tests: allow `master/slave` container suffix to be specified to `mysql_client`
2015-09-09 20:30:41 +05:30
Sameer Naik
4b840602a0
tests: allow container-name to be passed to `cleanup_running_containers`
2015-09-09 20:30:41 +05:30
Sameer Naik
e480aba5c4
tests: renamed function `create_basic_container` -> `create_container`
2015-09-09 20:30:40 +05:30
Sameer Naik
3928f922f4
tests: removed the default `-d` argument from `create_basic_container` function
2015-09-09 20:30:11 +05:30
Sameer Naik
44f091258b
tests: removed the default `--name $CONTAINER_NAME` argument from `create_basic_container` function
2015-09-09 19:25:29 +05:30
Sameer Naik
c56fe2ed69
tests: allow arguments to be passed to `create_basic_container` function
2015-09-09 19:24:29 +05:30
Sameer Naik
bc1df8947f
replace `logs/mysqld.log` symlink with `wait_and_tail_logs`
2015-09-09 14:17:22 +05:30
Sameer Naik
90116b2396
replication without any downtime
2015-08-12 13:49:47 +05:30
Sameer Naik
b37908144d
output formatting
2015-08-12 13:49:47 +05:30
Sameer Naik
de21f71bf8
add `--log-bin=mysql-bin` to `master` only
2015-08-12 13:49:47 +05:30
Sameer Naik
bc3a8f788b
give `MARIADB_USER` all the required rights to do a `mysqldump`
2015-08-12 13:49:47 +05:30
Sameer Naik
b9380a0f61
fix `mysqldump` output so that it is compatible with the `--init-file` option
2015-08-12 13:49:47 +05:30
Sameer Naik
da687232d6
configure `mysqldump` to add the `SLAVE START` statement
2015-08-12 13:49:47 +05:30
Sameer Naik
4cf7c4702b
configure the MASTER_HOST before taking the dump
...
If you specify the `MASTER_HOST` or `MASTER_PORT` option, the slave assumes
that the master server is different from before (even if the option
value is the same as its current value.) In this case, the old values
for the master binary log file name and position are considered no
longer applicable, so if you do not specify `MASTER_LOG_FILE` and
`MASTER_LOG_POS` in the statement, `MASTER_LOG_FILE=''` and `MASTER_LOG_POS=4`
are silently appended to it.
Do avoid the resetting of `MASTER_LOG_FILE` and `MASTER_LOG_POS`, we
generated the dump after setting the `MASTER_HOST`
https://dev.mysql.com/doc/refman/5.0/en/change-master-to.html
2015-08-12 13:49:47 +05:30
Sameer Naik
993b16471e
added master/slave replication support
...
Example,
Start master:
```bash
docker run -it --rm --name mariadb-master \
-e 'MARIADB_USER=root' -e 'MARIADB_PASSWORD=password' \
-e 'MARIADB_DATABASE=newdatabase' \
-e 'REPLICATION_MODE=master' -e 'REPLICATION_USER=slave' -e 'REPLICATION_PASSWORD=slavepassword' \
bitnami/mariadb
```
Start Slave:
```bash
docker run -it --rm --name mariadb-slave \
--link mariadb-master:mariadb-master \
-e 'MARIADB_USER=root' -e 'MARIADB_PASSWORD=password' \
-e 'MARIADB_DATABASE=newdatabase' -e 'REPLICATION_MODE=slave' \
bitnami/mariadb
```
2015-08-12 13:49:47 +05:30
Miguel Martinez
1232c90b27
Bump version 5.5.45-0
2015-08-10 12:04:51 -07:00
Sameer Naik
51d4e1eeac
fix links to `hub.docker.com`
2015-08-08 12:07:37 +05:30
Miguel Martinez
670b1431f8
Bump new revision
2015-07-21 10:16:10 -07:00
Sameer Naik
49abef4681
fix: append user specified arguments while launching the mariadb server
2015-07-21 09:21:22 +05:30
Miguel Martinez
89ce994b31
5.5.44-0-r01: fixing data initialization edge case if host mounted
2015-07-05 10:37:07 -07:00
Sameer Naik
aee4369bfc
Check for existence of `data/mysql` directory for database initialization
...
Filesystems, eg. ext4, mounted at `/bitnami/mariadb/data/` will contain
the `lost+found` directory causing the current database initialization
check to PASS.
Fixes #1
2015-07-05 11:15:33 +05:30
Miguel Martinez
d9289b0d09
5.5.44-0
2015-06-26 14:19:30 -07:00
Adnan Abdulhussein
d784bc21d6
Add build status to README
2015-06-19 18:06:04 -07:00
Adnan Abdulhussein
4037581d86
Bump version
2015-06-19 18:03:11 -07:00
Mustafa Jamil
2738afac65
Made minor copy edits
2015-06-19 17:06:33 -07:00
Adnan Abdulhussein
18681d0ef1
Add testing section to README
2015-06-19 16:22:17 -07:00
Adnan Abdulhussein
90189180ac
Documentation changes
...
- remove version numbers
- link to project
- use same volume paths in docker run and compose
- always recommend backing up
2015-06-19 14:26:57 -07:00
Adnan Abdulhussein
60818a2897
Add Apache 2.0 License
2015-06-19 11:47:24 -07:00
Miguel Ángel Martínez Triviño
9d278a0a0e
Merge pull request #7 from bitnami/chown-always
...
Chown always
2015-06-19 10:51:18 -07:00
Adnan Abdulhussein
6e82997a6e
Fix tests to not rely on docker client running directly on the host
2015-06-19 10:46:24 -07:00
Adnan Abdulhussein
79a02e1ba9
Always chown mounted volumes at the start
2015-06-19 10:43:46 -07:00
Miguel Martinez
888c5e40c9
Cleanup containers on tests
2015-06-19 10:22:28 -07:00
Miguel Martinez
e8d2339189
Disabling TTY for Jenkins CI
2015-06-18 21:07:58 -07:00
Adnan Abdulhussein
0fcd96ed40
Merge pull request #5 from sameersbn/readme-mariadb-user-password
...
readme: added note about using `MARIADB_USER` and `MARIADB_PASSWORD` together
2015-06-18 09:01:38 -07:00
Adnan Abdulhussein
460c699c4b
Merge pull request #4 from sameersbn/link-to-docker-hub-image-page
...
readme: link to `bitnami/mariadb` on docker hub
2015-06-18 09:00:00 -07:00
Sameer Naik
23c2874693
readme: added note about using `MARIADB_USER` and `MARIADB_PASSWORD` together
2015-06-18 16:26:09 +05:30
Sameer Naik
8e47c49996
readme: link to `bitnami/mariadb` on docker hub
2015-06-18 15:58:33 +05:30
Sameer Naik
004040b389
readme: fix build instructions
2015-06-18 15:08:56 +05:30