Commit Graph

74 Commits

Author SHA1 Message Date
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
Adnan Abdulhussein
be035df456 Fix README for Docker Hub compatibility 2015-06-17 18:48:26 -07:00
Miguel Martinez
a3077fa5d8 Bump new version 5.5.42-2 2015-06-17 17:18:32 -07:00
Miguel Martinez
f033d81277 Bump new version 5.5.42-2 2015-06-17 17:14:56 -07:00
Miguel Martinez
b803693a0e Mariadb tests 2015-06-17 16:56:26 -07:00
Adnan Abdulhussein
7c681ab775 Update README - use relative paths for docker compose 2015-06-16 21:21:16 -07:00
Adnan Abdulhussein
5c9c7d76c0 Switch to onbuild base 2015-06-16 14:56:35 -07:00
Miguel Martinez
e1097fe6bc New revision 2015-06-16 14:34:33 -07:00
Miguel Martinez
99e896e4f7 FIxing help 2015-06-15 19:58:26 -07:00
Miguel Martinez
5c332db972 Two liner PATH 2015-06-15 19:48:58 -07:00
Miguel Martinez
7a2b518816 Moving path 2015-06-15 19:33:47 -07:00
Miguel Martinez
e255160387 one liner ENV 2015-06-15 19:31:41 -07:00
Miguel Martinez
8b5a442653 Fixing readme paths 2015-06-15 18:54:55 -07:00
Miguel Martinez
d232c8bd64 Maintainer change 2015-06-15 18:26:24 -07:00
Miguel Martinez
6fffa046af Latest version 2015-06-15 15:29:51 -07:00
Miguel Martinez
821f0719c2 Using new base image 2015-06-12 16:34:27 -07:00
Miguel Martinez
de23c4ef21 Adding help file 2015-06-12 10:41:50 -07:00
Miguel Martinez
0c4eaef9fa Adding integrity check 2015-06-11 14:13:42 -07:00
Adnan Abdulhussein
195fe455aa Fix spelling in creating user message 2015-06-11 11:16:19 -07:00
Adnan Abdulhussein
698b762fa4 Make terminology more consistent and other fixes in documentation 2015-06-10 23:37:34 -07:00