Commit Graph

7227 Commits

Author SHA1 Message Date
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
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
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
Adnan Abdulhussein 6a40dc3a22 Correct docker-compose remove command in README 2015-06-10 15:02:19 -07:00
Adnan Abdulhussein 6679c9e9b7 Improved README 2015-06-10 14:47:46 -07:00
Miguel Martinez 897fe27cee Replacing BITNAMI_DIR, Refs T4065 2015-06-10 12:12:23 -07:00
Miguel Martinez 384547c0ef Utilities script outside of the dockerfile 2015-06-10 11:45:42 -07:00
Adnan Abdulhussein 6ea2a0d303 Never crash on chown error and remove unecessary mkdirs 2015-06-10 11:21:32 -07:00
Miguel Martinez dd34eb16de Refactoring + welcome page 2015-06-09 19:29:56 -07:00
Miguel Martinez 57844c5162 Renaming MYSQL to MARIADB, Refs T3975, T3790 2015-06-09 15:35:46 -07:00
Miguel Martinez 819921c23b New MariaDB entrypoint, dockerfile and postinstall script 2015-06-09 15:29:59 -07:00
Miguel Martinez fc5974c366 MariaDB WIP 2015-06-08 19:29:38 -07:00
Miguel Martinez dc1d5097ae Redis multiple options and namespacing 2015-06-05 15:31:34 -07:00
Adnan Abdulhussein 508cdf8d67 Update mariadb with new installer option and password notice 2015-06-02 14:16:08 -07:00
Adnan Abdulhussein fef783248e Cleanup and documentation 2015-05-29 14:50:46 -07:00
Adnan Abdulhussein c7e737fdf7 Switch to utility script and /usr/local/bitnami prefix 2015-05-26 14:45:38 -07:00
Adnan Abdulhussein 5b2b6b6e8e Cleaner dockerfile for mariadb 2015-05-22 13:26:51 -07:00
Adnan Abdulhussein d4d094bf33 Entrypoint fixes for mariadb 2015-05-22 09:41:00 -07:00
Adnan Abdulhussein 94add566a4 Fix mariadb initialization race condition 2015-05-21 17:51:21 -07:00
Adnan Abdulhussein eafa3e5ae3 Document which mysqld options cannot be overridden 2015-05-20 20:07:10 -07:00
Adnan Abdulhussein 3a9f0115c6 Fix my.cnf for mysql client, simplify mysql client command 2015-05-20 20:07:10 -07:00
Adnan Abdulhussein d5f2a83d46 Add log file support to mariadb 2015-05-20 20:07:10 -07:00
Adnan Abdulhussein 787b52b67b Use /conf.defaults similar to nginx 2015-05-20 16:57:26 -07:00
Adnan Abdulhussein fea97ec90b Fix mariadb /conf volume 2015-05-20 16:25:23 -07:00
Adnan Abdulhussein a5d0e18656 Add README for mariadb 2015-05-19 22:07:02 -07:00
Adnan Abdulhussein 3ff8cc29b6 Changes to mariadb container, support /conf volume 2015-05-19 22:07:02 -07:00
Adnan Abdulhussein edc0b802b4 Add pineapple and mariadb 2015-05-19 19:34:51 -07:00