This repo contains consul, rabbitmq, couchbase docker images and default congiguration to support dvc L0/L1 test enviorment
dvc_checker is a containers to validate all contariners are running correctly
- docker-engine
sudo pip install docker-composeTAG=<mytag>
HOST_IP=1.1.1.1cd dvc_docker
docker-compose up -d
## make sure all test passing in the checker before start using containers
docker logs -f dvc_checkerdocker-compose downdocker run -it --rm dvc_checker --consul=52.53.151.62or
cd dvc_docker/test
source ENV.sh
pytest test.py [ --consul=1.1.1.1 ]dockerhost=10.157.100.58 #host runs the docker containers. will be couchbase/rabmmitmq ip
consul=10.157.100.58- register couchbase , couchbaseTest , rabbitmq , rabbitmqTest
- login info : http://$host_ip:8500
docker run --name consul -d -p 8500:8500 <consul_image>
docker logs -f consul- create Administration account
- create dvcbucket , dvcbucketTest
- create primary Index
- Register to consul
- Login info : http://$host_ip:8901 ( Administrator/password)
- Please make sure you see bucket is queryable before using it
docker run --name couchbase -d --add-host dockerhost:$dockerhost --add-host consul:$consul -p 8091-8094:8091-8094 -p 11207:11207 -p 11210-11211:11210-11211 -p 18091-18093:18091-18093 <couchbase_image>
docker logs -f couchbase- create tachyon/tacyon with access to "/" vhost
- register to consul
- Login info http://$host_ip:15672 (guest/guest or tachyon/tachyon)
- Wait for 3 min before using it.
docker run --name rabbitmq -d --add-host dockerhost:$dockerhost --add-host consul:$consul -p 15672:15672 -p 5672:5672 <rabbitmq_image>
docker logs -f rabbitmq