Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

DOCKERS images required for DVC Test Env

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

A. Developying with Docker-compose

Pre-Requirement

  • docker-engine
sudo pip install docker-compose

step1: update env file

TAG=<mytag>
HOST_IP=1.1.1.1

step2: start all containers

cd dvc_docker
docker-compose up -d

## make sure all test passing in the checker before start using containers
docker logs -f dvc_checker

step3: To stop and remove all containers

docker-compose down

B. check dvc-docker Enviromennt

docker run -it --rm dvc_checker --consul=52.53.151.62

or

cd dvc_docker/test
source ENV.sh
pytest test.py [  --consul=1.1.1.1 ]

C. Run Individual containers seperately

step1 Setup ip address

dockerhost=10.157.100.58  #host runs the docker containers. will be couchbase/rabmmitmq ip
consul=10.157.100.58

Step2 Start consul

  • 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

Step3 Start couchbase

  • 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

Step4 Start Rabbitmq

  • 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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages