Skip to content

Docker Test Environment

Jan Radon edited this page Sep 16, 2018 · 2 revisions

Docker test environment

To Test the plugin, we provide several docker container with pre-installed dovecot mailserver The mailserver is fully configured and ready to use with the rbox-plugin. However it is not recommend to use them in production. To setup a working test ceph-cluster we recommend the use of the ceph/daemon docker container.

The dovecot docker container do not include the rbox-plugin source. To install the plugin in the container follow the README instructions or see .travis.yml for details.

docker prerequisites

create a volume

docker volume create --name ceph_config

create a network

docker network create --driver=bridge --subnet=192.168.100.0/24 --gateway=192.168.100.1 ceph_network

ceph luminous demo

docker run -d --net=ceph_network --name ceph_demo --mount type=tmpfs,destination=/etc/ceph -v ceph_config:/root/cfg -e MON_IP=192.168.100.2 -e CEPH_PUBLIC_NETWORK=192.168.100.0/24 -e CEPH_DEMO_UID=ceph_dovecot_plugin_demo ceph/daemon:v3.0.5-stable-3.0-luminous-ubuntu-16.04-x86_64 demo

dovecot email server

$DOVECOT = release-2.2.21 | master-2.2 | master-2.3

docker run -itd --name build --net=ceph_network -v ceph_config:/etc/ceph -v $(pwd):/repo cephdovecot/travis-build:$DOVECOT sh