Deploying Campaign Microservice on Docker

This section explains how to deploy the Campaign microservice on the Docker. To do so, you must perform the following tasks:

Deployment Artefacts

This section provides an insight on the folder structure of Campaign Docker package and the deployment artefacts.

For the Docker deployment, the Campaign microservice is available as single release bundle, which is ms-campaign-package-docker-<release_number>.zip.

Installing Campaign Microservice on Docker

Prerequisites:

Ensure to meet the following prerequisites before deploying Campaign microservice on Docker.

  • Install the Docker engine on your deployment environment. For more information about the installation, click here.
  • Turn on the Linux containers in Docker.

To deploy Campaign microservice on Docker, follow these steps.

  1. Extract the ms-campaign-docker-<release_number>.zip file.

    The extracted package contains the configuration files of Docker and the respective bat and sh files.

  2. Enable JWT Authentication in ms-campaign.yml.
  3. From the Command Prompt, go to the directory where the .bat and .sh files are available. Run the following command that creates an image and a docker container for the image.
    • For Windows: ms-campaign.bat up --build -d
    • For Linux: ms-campaign.sh up --build -d
  4. After the successful deployment, the database, collections, and reference data(master data) are loaded into the Mongo database for the Campaign microservice.
  5. After the Campaign microservice is up and running on Docker, run the following URL to receive the response.

    The structure of the URL of APIs is as follows.

    Base Path: http://<IP_ADDRESS>:<PORT>/<context-root>/api/<version>/

    For example, http://localhost:8900/ms-campaign-api/api/v1.0.0/

    The resource path of the endpoint is available in the swagger document of the respective APIs.

    A sample endpoint of the Campaign microservice could be http://localhost:8900/ms-campaign-api/api/v1.0.0/origination/campaigns.

    Alternatively, the microservice status is obtained through the Health Check API.

Undeployment

To stop and delete the existing container, run the following command from the location where the campaign docker started.

  • For Windows: ms-campaign.bat down
  • For Linux: ms-campaign.sh down

Copyright © 2020- Temenos Headquarters SA

Published on :
Tuesday, October 5, 2021 11:13:36 AM IST

Feedback
x