25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00
xmpp.chapril.org-ejabberd/test/docker
Evgeny Khramtsov 3f7d9e3ad6 Remove Riak support
Reasons:
- Riak DB development is almost halted after Basho
- riak-erlang-client is abandoned and doesn't work
  correctly with OTP22
- Riak is slow in comparison to other databases
- Missing key ordering makes it impossible to implement range
  queries efficiently (e.g. MAM queries)
2019-07-18 19:31:12 +03:00
..
db Remove Riak support 2019-07-18 19:31:12 +03:00
docker-compose.yml Remove Riak support 2019-07-18 19:31:12 +03:00
README.md Remove Riak support 2019-07-18 19:31:12 +03:00

Docker database images to run ejabberd tests

Starting databases

You can start the Docker environment with Docker Compose, from ejabberd repository root.

The following command will launch MySQL, PostgreSQL, Redis and keep the console attached to it.

mkdir test/docker/db/mysql/data
mkdir test/docker/db/postgres/data
(cd test/docker; docker-compose up)

You can stop all the databases with CTRL-C.

Running tests

Before running the test, you can ensure there is no running instance of Erlang common test tool. You can run the following command, especially if all test are skipped with an eaddrinuse error:

pkill -9 ct_run

You can run tests with (from ejabberd repository root):

make test

Cleaning up the test environment

You can fully clean up the environment with:

(cd test/docker; docker-compose down)

If you want to clean the data, you can remove the data directories after the docker-compose down command:

rm -rf test/docker/db/mysql/data
rm -rf test/docker/db/postgres/data