7776ebdbec43ddd17ca1a8c6bace770daac7c20f
[aai/aai-common.git] / docs / platform / Getting Started / How_to_Docker_setup_on_Single_VM.rst
1 .. contents::
2    :depth: 3
3 ..
4
5 How to Docker setup on Single VM
6 ================================
7
8 Step-by-step guide
9 ------------------
10
11 1.  You would need to have root access to the vm
12
13 2.  sudo su - root
14
15 3.  cd /opt
16
17 4.  git clone http://gerrit.onap.org/r/aai/test-config
18
19 5.  cd test-config
20
21 6.  In deploy\_vm1.sh comment out the lines 89-94 which should be an if
22     statement checking for the /opt/message-router folder
23
24 7.  Create a directory called /opt/config
25
26     1. mkdir /opt/config/
27
28 8.  Create a file called /opt/config/nexus\_username.txt containing the
29     text: docker
30
31     1. echo "docker" > /opt/config/nexus\_username.txt
32
33 9.  Create a file called /opt/config/nexus\_password.txt containing the
34     text: docker
35
36     1. echo "docker" > /opt/config/nexus\_password.txt
37
38 10. Create a file called /opt/config/dmaap\_topic.txt containing the
39     text: AAI-EVENT
40
41     1. echo " AAI-EVENT" > /opt/config/dmaap\_topic.txt
42
43 11. Create a file called /opt/config/nexus\_docker\_repo.txt containing
44     text: nexus3.onap.org:10001
45
46     echo "nexus3.onap.org:10001" > /opt/config/nexus\_docker\_repo.txt
47
48 1. Create a file called /opt/config/docker\_version.txt containing text:
49    1.1-STAGING-latest
50
51     echo "1.1-STAGING-latest" > /opt/config/docker\_version.txt
52
53 1. Please note that in the previous step, docker version is currently
54    1.1-STAGING-latest and this will be changed later
55
56     ./deploy\_vm2.sh && ./deploy\_vm1.sh