Versions Compared

Key

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

...

Deck
idstart-docker-containers


Card
labelFrankfurt - Latest

Start Docker containers using docker-composer

Navigate to the docker-compose file in the application module:

    cd ~/cds/ms/blueprintsprocessor/application/src/main/dc/

Edit docker-compose.yaml as below

Code Block
languageyml
themeDJango
titledocker-compose.yaml
version: '3.7'

services:
  db:
    image: mariadb:latest
    container_name: ccsdk-mariadb
    networks:
      - cds-network
    ports:
    - "3306:3306"
    volumes:
    - ~/vm_mysql:/var/lib/mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: sdnctl
      MYSQL_DATABASE: sdnctl
      MYSQL_USER: sdnctl
      MYSQL_PASSWORD: sdnctl
      MYSQL_INITDB_SKIP_TZINFO: 1
  cds-controller-default:
    depends_on:
      - db
      - nats
    image: onap/ccsdk-blueprintsprocessor:latest
    container_name: cds-controller-default
    hostname: cds-controller-default
    networks:
      - cds-network
    ports:
    - "8000:8080"
      - "9111:9111"
    restart: always
    volumes:
      - target: /opt/app/onap/blueprints/deploy
        type: volume
        source: blueprints-deploy
      - target: /opt/app/onap/config
        type: volume
        source: controller-config
    environment:
      APP_NAME: cds-controller
      BUNDLEVERSION: 1.0.0
      APP_CONFIG_HOME: /opt/app/onap/config
      STICKYSELECTORKEY:
      ENVCONTEXT: dev

volumes:
  mysql-data:
    driver: local
    driver_opts:
      type: none
      device: /opt/app/cds/mysql/data
      o: bind
  blueprints-deploy:
    driver: local
    driver_opts:
      type: none
      device: /opt/app/cds/blueprints/deploy
      o: bind
  controller-config:
    driver: local
    driver_opts:
      type: none
      device: /opt/app/cds/cds-controller/config
      o: bind

networks:
  cds-network:
    driver: bridge

From there, start the containers:

    docker-compose up -d

This will spin the Docker containers declared inside the docker-compose.yaml file in the background:

Image Modified

To verify the logs generated by docker-composer, type:

    docker-compose logs -f


Card
labelEl Alto

Start Docker containers using docker-composer

Navigate to the docker-compose file in the application distribution module:

    cd ~/cds/ms/blueprintsprocessor/distribution/src/main/dc/

Edit docker-compose.yaml as below

Code Block
languageyml
themeDJango
titledocker-compose.yaml
version: '3.3'
 
services:
  db:
    image: mariadb:latest
    container_name: ccsdk-mariadb
    ports:
    - "3306:3306"
    volumes:
    - ~/vm_mysql:/var/lib/mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: sdnctl
      MYSQL_DATABASE: sdnctl
      MYSQL_USER: sdnctl
      MYSQL_PASSWORD: sdnctl
      MYSQL_INITDB_SKIP_TZINFO: 1
  blueprints-processor:
    depends_on:
    - db
    image: onap/ccsdk-blueprintsprocessor:latest
    container_name: bp-rest
    ports:
    - "8000:8080"
    restart: always
    environment:
      APPLICATIONNAME: BlueprintsProcessor
      BUNDLEVERSION: 1.0.0
      APP_CONFIG_HOME: /opt/app/onap/config
      STICKYSELECTORKEY:
      ENVCONTEXT: dev

From there, start the containers:

    docker-compose up -d

This will spin the Docker containers declared inside the docker-compose.yaml file in the background:

Image Modified

To verify the logs generated by docker-composer, type:

    docker-compose logs -f


Card
labelDublin

Start Docker containers using docker-composer

Navigate to the docker-compose file in the distribution module:

    cd ~/cds/ms/blueprintsprocessor/distribution/src/main/dc/

From there, start the containers:

    docker-compose up -d

This will spin the Docker containers declared inside the docker-compose.yaml file in the background:

To verify the logs generated by docker-composer, type:

    docker-compose logs -f


...