Sameer Naik
2747d1ee29
docker_helper: added `container_link_and_run_command` function
...
`container_link_and_run_command` starts a new container which is
linked to another container with the link alias $APP_NAME and
execute a command in the newly created container.
2015-11-09 19:06:24 +05:30
Sameer Naik
44ca51ce43
docker_helper: added `VOLUMES` script variable allowing users to specify VOLUMES in the BATS tests script
...
VOLUMES is set to `$VOL_PREFIX/data:$VOL_PREFIX/conf:$VOL_PREFIX/logs`
by default. But some images may expose different paths. For example,
the tomcat image exposes `/app` and `$VOL_PREFIX/conf` and
`$VOL_PREFIX/logs` paths as volumes. The VOLUME variable allows us to
override the default volume paths with ones exposed by the image being
tested.
2015-11-09 18:52:03 +05:30
Sameer Naik
fba7cd7228
docker_helper: added `APP_NAME` script variable, allowing other script variables to be assigned default values
2015-11-09 18:09:19 +05:30
Sameer Naik
d0b884d8f3
docker_helper: allow arguments to be passes to `docker inspect` in `container_inspect`
2015-11-09 18:02:49 +05:30
Sameer Naik
ad4cfbc71e
docker_helper: stop and remove container in `container_remove`
2015-11-09 18:02:05 +05:30
Sameer Naik
14dec07d4a
docker_helper: fix `if` conditions
2015-11-09 18:01:25 +05:30
Sameer Naik
e661dd457a
tests: rewrite tests for better maintenance and readability
...
- Reuse docker_helper.bash script in tests
- Speed up of tests
- Better readability
2015-11-09 16:02:26 +05:30
Sameer Naik
422f56d5c8
Merge pull request #17 from sameersbn/5.0.0-0
...
bump version 5.0.0-0
2015-11-05 22:43:09 +05:30
Sameer Naik
40609b9767
bump version 5.0.0-0
2015-11-05 22:26:09 +05:30
Sameer Naik
c6af4552f4
tests: renamed `create_container` function to `container_create` in docker_helper
2015-11-05 19:38:39 +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
5c77c7c716
tests: fix `container_exec` function
2015-11-05 14:18:49 +05:30
Sameer Naik
48f89dd2a3
Merge pull request #25 from sameersbn/rewrite-tests
...
Better readability and maintainability of tests
2015-11-04 21:46:10 +05:30
Sameer Naik
a69d41d1fd
Merge pull request #4 from sameersbn/rewrite-tests
...
Better readability and maintainability of tests
2015-11-04 21:45:11 +05:30
Sameer Naik
1f82dfa505
tests: added container_restart helper in docker_helper
2015-11-04 21:28:21 +05:30
Sameer Naik
2f958d17c5
tests: launch commands as entrypoint to speed up the tests
...
By executing the commands using `--entrypoint` lets us skip the s6
`/init` sequence allowing the tests to run quicker. The tests now
complete 3 minutes earlier.
2015-11-04 21:28:21 +05:30
Sameer Naik
a812a01daa
tests: move reusable bits into a `tests/docker_helper.bash` script
2015-11-04 21:28:21 +05:30
Sameer Naik
636341b2b9
tests: rewrite tests for better readability and maintainability
...
- Added utility functions for docker abstraction
- Volumes can be mounted for every container instance as long as the
name is unique when multiple containers are started
- Cleanup of containers is performed once when the tests are started
and in the teardown function
- Full container environment is specified in each test for better
readability
- Comments are also added for better readability
2015-11-04 21:28:16 +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
Sameer Naik
ac606e4a97
simplify `sed` substitution while configuring replication slave
2015-10-30 14:03:39 +05:30
Sameer Naik
d5de3cc9c0
Merge pull request #3 from sameersbn/streaming-replication
...
Adds support for streaming replication
2015-10-29 23:48:35 +05:30
Sameer Naik
96b6acb06e
tests: to avoid confusion always specify the replication parameters on the slave instead of fetching from the master
2015-10-29 23:10:27 +05:30
Sameer Naik
c0f09c83b8
tests: Replication slave can be triggered to act as the master
2015-10-29 23:08:05 +05:30
Sameer Naik
e6445f27a3
tests: make use of `cleanup_running_containers`
2015-10-29 23:05:59 +05:30
Sameer Naik
c842be78a6
support reconfiguration of slave as master using a trigger file
2015-10-29 20:01:56 +05:30
Sameer Naik
4dc45c9da8
updated help text
2015-10-29 20:01:47 +05:30
Sameer Naik
a5705f903b
updated README
2015-10-29 13:16:08 +05:30
Sameer Naik
cd648b8348
tests: Replication status is preserved after deletion
2015-10-29 12:49:05 +05:30
Sameer Naik
6fbfe34623
tests: Slave synchronizes with the master (delayed start)
2015-10-29 12:49:05 +05:30
Sameer Naik
19b9e10e34
tests: Replication slave can fetch replication parameters from link alias "master"
2015-10-29 12:49:05 +05:30
Sameer Naik
eb26859c84
tests: Can't setup replication slave without replication password
2015-10-29 12:49:05 +05:30
Sameer Naik
49e6f3c4af
tests: Can't setup replication slave without replication user
2015-10-29 12:49:05 +05:30
Sameer Naik
bba7b9f682
tests: Can't setup replication slave without master host
2015-10-29 12:49:05 +05:30
Sameer Naik
8254d91832
tests: Can't setup replication master without replication user password
2015-10-29 12:49:05 +05:30
Sameer Naik
d1a2511783
tests: Can't setup replication master without replication user
2015-10-29 12:49:05 +05:30
Sameer Naik
9486d55c54
tests: Master database is replicated on slave
2015-10-29 12:49:05 +05:30
Sameer Naik
75446cf3d9
master user and password is not required to set up a slave replication
2015-10-29 12:49:05 +05:30
Sameer Naik
48b96baf22
do not print credentials when configured as as replication slave
2015-10-29 12:49:05 +05:30
Sameer Naik
e5483dce5a
take ownership of `/conf` at every start
2015-10-29 12:49:05 +05:30
Sameer Naik
d75474f195
configure slave connection info at every startup
2015-10-29 12:49:05 +05:30
Sameer Naik
e9afd6a54a
add support for streaming replication
2015-10-29 12:49:00 +05:30
Sameer Naik
a2a9143d55
Merge pull request #23 from bitnami/5.5.46-0
...
Update to 5.5.46-0
2015-10-29 12:29:34 +05:30
Adnan Abdulhussein
c6dd23c977
Update to 5.5.46-0
2015-10-29 12:16:31 +05:30
Sameer Naik
27f00372a4
Merge pull request #20 from sameersbn/s6-service
...
Configure mariadb as an s6 service
2015-10-29 12:10:21 +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