Eliminate Sphinx Errors and Warnings
[aai/aai-common.git] / docs / platform / Getting Started / How_to_Docker_setup_on_Single_VM.rst
1
2 .. contents::
3    :depth: 3
4
5 How to Docker setup on Single VM
6 ================================
7
8 Prerequisites
9 -------------
10 1.  Linux distribution Ubuntu is assumed (version 16.04 preferred)
11
12 2.  Make sure that git, docker and docker-compose are installed
13
14 Step-by-step guide
15 ------------------
16
17 1.  You would need to have a root access to the vm
18
19   .. code-block:: bash
20
21    sudo su - root
22
23 2.  Navigate to /opt directory
24
25   .. code-block:: bash
26
27    cd /opt
28
29 3.  Clone the test-config git project
30
31   .. code-block:: bash
32
33    git clone http://gerrit.onap.org/r/aai/test-config
34
35 4.  Navigate to /opt/test-config directory
36
37   .. code-block:: bash
38
39    cd test-config
40
41 5.  Create a directory called /opt/config
42
43   .. code-block:: bash
44
45    mkdir /opt/config/
46
47 6.  Create a file called /opt/config/nexus\_username.txt containing the text: docker
48
49   .. code-block:: bash
50
51     echo "docker" > /opt/config/nexus_username.txt
52
53 7.  Create a file called /opt/config/nexus\_password.txt containing the text: docker
54
55   .. code-block:: bash
56
57     echo "docker" > /opt/config/nexus_password.txt
58
59 8. Create a file called /opt/config/dmaap\_topic.txt containing the text: AAI-EVENT
60
61   .. code-block:: bash
62
63     echo "AAI-EVENT" > /opt/config/dmaap_topic.txt
64
65 9. Create a file called /opt/config/nexus\_docker\_repo.txt containing text: nexus3.onap.org:10001
66
67   .. code-block:: bash
68
69     echo "nexus3.onap.org:10001" > /opt/config/nexus_docker_repo.txt
70
71 10. Create a file called /opt/config/docker\_version.txt containing text: 1.1-STAGING-latest
72
73   .. code-block:: bash
74
75     echo "1.1-STAGING-latest" > /opt/config/docker_version.txt
76
77 11. Please note that in the previous step, docker version is currently 1.1-STAGING-latest and this will be changed later. Finally, run the installation scripts
78
79   .. code-block:: bash
80
81     ./deploy_vm2.sh && ./deploy_vm1.sh