Deploy Document Storage in Docker Container
The Document Storage microservice is provisioned for deployment in the Docker container.
Artifacts
The Document Storage microservice deployment for a Docker container is available as a single release bundle file ms-document-package-docker-DEV.0.0-SNAPSHOT.zip.
Before you deploy the package, you should:
- Install Docker Engine in the deployment environment. For more information, see https://docs.docker.com/install/overview/
- Turn on Linux containers in your docker container.
Deploy
To deploy the Document Storage microservice:
- Unzip the
ms-document-package-docker-<release_number>.zip - Check the extracted package contains the configuration files for the docker and the respective bat and sh files
- Navigate from the command prompt to the directory where the .bat and .sh files are available.
- Execute the below command which creates an image and docker container for the image:
- Once the microservice is up and running in docker, check the APIs of the package. The API URL follows this pattern:
Base Path: http://<IP_ADDRESS>:<PORT>/<context-root>/api/<version>/
For Example: http://localhost:8000/ms-document-api/api/v1.0.0/
Resource path of the endpoint can be found in the Swagger JSON file.
For Windows:ms-document-autoform.bat up --build -d
For Linux: ms-document-autoform.sh up --build -d
|
Script |
Description |
|---|---|
| ms-document-autoform.bat | Run this script to deploy all Microservice components with EFS autoform as the DMS system. |
| ms-document-autoform.sh |
Undeploy
To undeploy the Document Storage microservice:
- Stop and remove the existing container.
- Execute the below command from the location, where the document docker is started.
For Windows :ms-document-autoform.bat down depending on which vendor you've chosen to start earlier.
For Linux :ms-document-autoform.sh down depending on which vendor you've chosen to start earlier.
In this topic