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:8010/ms-document-api/api/v1.0.0/
Resource path of the endpoint can be found in the Swagger JSON file.
For Windows to deploy all components of the microservice including Apache Sling as the DMS system:
ms-document-sling.bat / ms-document-sling.sh
For Linux to deploy all components of the microservice with EFS Autoform as the DMS system :
ms-document-autoform.bat / 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 party docker is started, to stop and remove the existing container.
For Windows :
ms-document-sling.bat down or ms-document-autoform.bat down depending on which vendor you've chosen to start earlier.
For Linux :
ms-document-sling.sh down or ms-document-autoform.sh down depending on which vendor you've chosen to start earlier.
In this topic