Have questions? Stuck? Please check our FAQ for some common questions and answers.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

1. Download Atomix docker image:

$ docker pull atomix/atomix:3.1.5

2. Run three instacnes of Atomix:

$ docker run -t -d --name atomix-1 atomix/atomix:3.1.5

$ docker run -t -d --name atomix-2 atomix/atomix:3.1.5

$ docker run -t -d --name atomix-3 atomix/atomix:3.1.5

3. Check docker IP of Atomix instances;

$ docker inspect atomix-1 | grep -i ipaddress

$ docker inspect atomix-2 | grep -i ipaddress

$ docker inspect atomix-3 | grep -i ipaddress

4. Check out ONOS source code:

$ git clone https://gerrit.onosproject.org/onos

5. Set relevant environment variables to docker IP of Atomix instances:

$ export OC1=172.17.0.2

$ export OC2=172.17.0.3

$ export OC3=172.17.0.4

6. Generate Atomix configuration files:

cd /path/to/your/onos/source/root

./tools/test/bin/atomix-gen-config 172.17.0.2 ~/atomx-1.conf 172.17.0.2 172.17.0.3 172.17.0.4

./tools/test/bin/atomix-gen-config 172.17.0.3 ~/atomix-2.conf 172.17.0.2 172.17.0.3 172.17.0.4

./tools/test/bin/atomix-gen-config 172.17.0.4 ~/atomix-3.conf 172.17.0.2 172.17.0.3 172.17.0.4

7. Copy Atomix configuation to docker instances:

$ docker cp ~/atomix-1.conf atomix-1:/opt/atomix/conf/atomix.conf

$ docker cp ~/atomix-2.conf atomix-2:/opt/atomix/conf/atomix.conf

$ docker cp ~/atomix-3.conf atomix-3:/opt/atomix/conf/atomix.conf

8. Restart Atomix docker instances for configuration to take effect:

$ docker restart atomix-1

$ docker restart atomix-2

$ docker restart atomix-3



  • No labels