Commit Graph

159 Commits

Author SHA1 Message Date
Sameer Naik
0872dd7c04 ignore .git/ and tests/ directories in docker builds 2016-05-11 16:33:05 +05:30
Sameer Naik
af58376569 ignore pkg-cache/ in git 2016-05-11 16:32:43 +05:30
Sameer Naik
d9bace30ed set image version to 10.1.13-r0 in dockerfile 2016-05-10 18:48:43 +05:30
Sameer Naik
b41e3fe6d8 tests: bump SLEEP_TIME to 45 seconds 2016-05-09 09:59:04 +05:30
Sameer Naik
033813b395 mariadb checksum update 2016-05-06 21:12:31 +05:30
Sameer Naik
58a7eb5528 readme fixes 2016-05-06 17:06:17 +05:30
Sameer Naik
f1199b0bbb upgrade to mariadb-10.1.13-5 (#7)
* upgrade to gcr.io/stacksmith-images/ubuntu:14.04-r06

* upgrade to mariadb-10.1.13-2

* create custom database with `MARIADB_DATABASE` env

* create custom user with `MARIADB_USER` env

* tests: Can create custom database with password for root

* can specify password for root with `MARIADB_ROOT_PASSWORD`

* upgrade to `mariadb-10.1.13-3`

* fixed test to create custom database with password for root

* organize dockerfile

* `chown` the volume only when `harpoon start` is the CMD

The `mysql` user is created when `harpoon initialize` is called. Until
that time we cannot use `mysql` user in `chown` commands.

* adds env vars to configure master/slave replication

* bump version to mariadb-10.1.13-4

* tests: added master/slave replication tests

* bump version to `mariadb-10.1.13-4`

* tests: fixed for changes in `mariadb-10.1.13-5`

Since `mariadb-10.1.13-5` the root user password can only be set using
the `MARIADB_ROOT_PASSWORD` environment variable.

* tests: added slave recovery test

* readme updated
2016-05-06 16:59:53 +05:30
Sameer Naik
de66df2292 readme fixes 2016-04-19 22:13:56 +05:30
Sameer Naik
36128f6670 updated readme (#6) 2016-04-19 22:11:16 +05:30
Sameer Naik
b76978c6ed organize dockerfile for stacksmith (#4)
* define `BITNAMI_APP_CHECKSUM` macro
* removed `BITNAMI_APP_DIR` macro
* removed `BITNAMI_APP_VOL_PREFIX` macro
* organize dockerfile for stacksmith
2016-04-18 14:46:23 +05:30
Sameer Naik
0634d4401e tests: updated for mariadb-10.1.12-0 changes 2016-04-07 17:04:56 +05:30
Sameer Naik
1c3f150987 updated to mariadb-10.1.12-0
Notable Changes:
 - root password is optional
2016-04-07 17:03:55 +05:30
Sameer Naik
1842fdca84 fix typo 2016-03-22 13:09:42 +05:30
Sameer Naik
dfb59d32f8 upgrade baseimage: gcr.io/stacksmith-images/ubuntu:14.04-r05 2016-03-22 12:48:44 +05:30
Sameer Naik
72c671d2d4 removed unused files 2016-03-11 12:29:57 +05:30
Sameer Naik
8500d16955 tests: updated according to current feature set 2016-03-11 12:29:17 +05:30
Sameer Naik
27c41ce749 switch to gcr.io/stacksmith-images/ubuntu:14.04 base image 2016-03-11 12:28:56 +05:30
Sameer Naik
3a80b43585 tests: deal with only two containers
containers are cleaned up after every test, minimizing the number of
containers in use can reduce the time to run the BATS tests
2016-02-16 12:04:54 -08:00
Sameer Naik
4b7b8a4a3f remove unused installer.run.sha256 2016-02-16 12:03:07 -08:00
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