Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Below ER diagram represents the entities present in Mongo Database

User Guide

Deployment using Docker compose

POC version of MOD can be deployed using docker-compose with below docker-compose,yml file on any Ubuntu VMs

Code Block
languageyml
titledocker-compose.yml
collapsetrue
#
# /*
#  * ============LICENSE_START=======================================================
#  *  org.onap.dcae
#  *  ================================================================================
#  *  Copyright (c) 2020 AT&T Intellectual Property. All rights reserved.
#  *  ================================================================================
#  *  Licensed under the Apache License, Version 2.0 (the "License");
#  *  you may not use this file except in compliance with the License.
#  *  You may obtain a copy of the License at
#  *
#  *       http://www.apache.org/licenses/LICENSE-2.0
#  *
#  *  Unless required by applicable law or agreed to in writing, software
#  *  distributed under the License is distributed on an "AS IS" BASIS,
#  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  *  See the License for the specific language governing permissions and
#  *  limitations under the License.
#  *  ============LICENSE_END=========================================================
#  */
#
version: '3.3'
services:
  mongo_db:
    image: 'registry.hub.docker.com/library/mongo:4.0.8'
    container_name: mongo_db
    environment:
      - DCAE_HOSTNAME=${DCAE_HOSTNAME}
    volumes:
      - type: 'bind'
        source: '/home/ubuntu/mongo/mongo_db/data'
        target: '/data/db'
    ports:
      - 27017:27017
    restart: always 
  dcae_mod_ui:
    image: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.mod.ui:latest'
    container_name: mod_ui
    environment:
      - DCAE_HOSTNAME=${DCAE_HOSTNAME} 
    ports:
      - 30997:4200
    depends_on:
      - mod_catalog_service
    restart: always
  mod_catalog_service:
    image: 'nexus3.onap.org:10003/onap/org.onap.dcaegen2.platform.mod.catalog-service:latest'
    container_name: mod_catalog_service
	environment:
	  - POLICYMODEL_DEV_SERVER=${POLICYMODEL_DEV_SERVER}
	  - POLICYMODEL_DEV_PORT=${POLICYMODEL_DEV_PORT}
	  - POLICYMODEL_DEV_USER=${POLICYMODEL_DEV_USER}
	  - POLICYMODEL_DEV_PASSWORD=${POLICYMODEL_DEV_PASSWORD}
	  - DCAE_PLATFORM_DEV_SERVER=${DCAE_PLATFORM_DEV_SERVER}
	  - DCAE_PLATFORM_DEV_PORT=${DCAE_PLATFORM__DEV_PORT}
	  - DCAE_PLATFORM_DEV_USER=${DCAE_PLATFORM_DEV_USER}
	  - DCAE_PLATFORM_DEV_PASSWORD=${DCAE_PLATFORM_DEV_PASSWORD}	  
    ports:
      - 31001:8080
    links:
      - mongo_db
    depends_on:
      - mongo_db
    restart: always
  mod_auth_service:
    image: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.mod.auth-service:latest'
    container_name: mod_auth_service
    ports:
      - 31003:8082
    links:
      - mongo_db
    depends_on:
      - mongo_db
    restart: always
 

               Create a directory and create docker-compose.yml file with the above contents.

               Set DACE_HOSTNAME by running export DCAE_HOSTNAME=<IP Address of Server>. This is required for UI to determine the DCAE MOD backend server.

               Note : Additional attributes are introduced in Honolulu release are APIs for distributing policies to policy framework and distributing deployment artifacts to DCAE dashboard. If you are planning to use those APIs, export environment variables for POLICYMODEL and       DCAE_PLATFORM as specified in above attached docker-compose.yml

Run below command to download the latest built version and deploy on docker container.

...

Note: For Guilin POC, the above deployment procedure would be followed to install MOD components. For future releases, it will be enhanced to use helm chart.

Deployment using Helm (introduced in Honolulu Release)

               < Instructions > - Work in progress


UI will be available in below URL where hostname would be the hostname or IP address of the deployed VM

...