Deploying Service Request Microservice on Docker

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

Deployment Artefacts

The folder structure of the Service Request microservice package is available as a single release bundle. For example, ms-servicerequest-package-docker-<release_number>.zip.

Deploying Service Request Microservice on Docker

Prerequisites

Ensure that you meet the following prerequisites before deploying Service Request microservice on Docker.

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

To deploy Service Request Microservice on Docker, follow these steps.

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

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

  2. Run the following command that creates an image and a docker container for the image:
    • For Windows: ms-servicerequest.bat up --build -d
    • For Linux: ms-servicereqeust.sh up --build –d
  3. After the Service Request microservice is up and running on Docker, check the APIs in the package by executing the following command:

    Use docker ps –a to check if the containers are running,

    The structure of the URL of APIs is as follows.

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

    For example, http://localhost:8310/ms-servicerequest-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 Service Request could be http://localhost:8310/ms-servicerequest-api/api/v1.0.0/orders/serviceRequestConfigurations.

Undeployment

To stop and delete the existing container, run the following command from the location at which the Service Request docker started.

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

Bookmark Name Actions
Feedback
x