Commit Graph

90 Commits

Author SHA1 Message Date
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 Ángel Martínez Triviño ecbb8eeef4 Merge pull request #18 from bitnami/5.5.45-0
Bump version 5.5.45-0
2015-08-10 13:05:57 -07:00
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 Ángel Martínez Triviño eb45c8f003 Merge pull request #16 from bitnami/fixing-sha256
Bump new revision
2015-07-21 10:20:55 -07:00
Miguel Martinez 670b1431f8 Bump new revision 2015-07-21 10:16:10 -07:00
Adnan Abdulhussein e76aa38745 Merge pull request #15 from sameersbn/fix-commandline-args
fix: append user specified arguments while launching the mariadb server
2015-07-21 08:47:30 -07:00
Sameer Naik 49abef4681 fix: append user specified arguments while launching the mariadb server 2015-07-21 09:21:22 +05:30
Miguel Ángel Martínez Triviño 557a69f8e0 Merge pull request #12 from bitnami/5.5.44-0-r01
5.5.44-0-r01: fixing data initialization edge case if host mounted
2015-07-05 10:43:33 -07:00
Miguel Martinez 89ce994b31 5.5.44-0-r01: fixing data initialization edge case if host mounted 2015-07-05 10:37:07 -07:00
Miguel Ángel Martínez Triviño acda25ff0b Merge pull request #11 from sameersbn/fix-persistent-disk-startup
Check for existence of `data/mysql` directory for database initializa…
2015-07-05 10:34:49 -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 Ángel Martínez Triviño 156dd76d74 Merge pull request #10 from bitnami/5.5.44-0
5.5.44-0
2015-06-26 14:23:13 -07:00
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
Miguel Ángel Martínez Triviño 7af4241613 Merge pull request #6 from sameersbn/readme-small-fixes
Readme small fixes
2015-06-19 17:20:28 -07:00
Miguel Ángel Martínez Triviño 6f7acd0ab1 Merge pull request #8 from bitnami/man_page_changes
Made minor copy edits
2015-06-19 17:20:13 -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 12cb31497b Merge pull request #3 from sameersbn/fix-build-instructions
readme: fix build instructions
2015-06-18 18:12:48 +05:30
Sameer Naik ee73b501a4 readme: use same paths in the `docker-compose.yml` snippets as their cli counterparts 2015-06-18 17:01:59 +05:30
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
Adnan Abdulhussein 41e349bc2b Merge pull request #2 from bitnami/T4183-tests-poc
Mariadb tests and version bump
2015-06-17 17:19:19 -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