How to Docker setup on Single VM

Prerequisites

  1. Linux distribution Ubuntu is assumed (version 16.04 preferred)

  2. Make sure that git, docker and docker-compose are installed

Step-by-step guide

  1. You would need to have a root access to the vm

sudo su - root
  1. Navigate to /opt directory

cd /opt
  1. Clone the test-config git project

git clone http://gerrit.onap.org/r/aai/test-config
  1. Navigate to /opt/test-config directory

cd test-config
  1. Create a directory called /opt/config

mkdir /opt/config/
  1. Create a file called /opt/config/nexus_username.txt containing the text: docker

echo "docker" > /opt/config/nexus_username.txt
  1. Create a file called /opt/config/nexus_password.txt containing the text: docker

echo "docker" > /opt/config/nexus_password.txt
  1. Create a file called /opt/config/dmaap_topic.txt containing the text: AAI-EVENT

echo "AAI-EVENT" > /opt/config/dmaap_topic.txt
  1. Create a file called /opt/config/nexus_docker_repo.txt containing text: nexus3.onap.org:10001

echo "nexus3.onap.org:10001" > /opt/config/nexus_docker_repo.txt
  1. Create a file called /opt/config/docker_version.txt containing text: 1.1-STAGING-latest

echo "1.1-STAGING-latest" > /opt/config/docker_version.txt
  1. 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

./deploy_vm2.sh && ./deploy_vm1.sh