Integration Server 11.1 | Integration Server Administrator's Guide | Using Integration Server with Docker | Pre-Built Docker Images for Integration Server and Microservices Runtime | Adding Libraries to a Pre-built Docker Image
 
Adding Libraries to a Pre-built Docker Image
The pre-built Docker images might not contain all the libraries used in an on-premises installation. For example, the pre-built Docker images for Microservices Runtime do not include the libraries for an external database driver or the Terracotta distributed cache. To use an external database or a distributed cache with the pre-built Docker images, for Microservices Runtime you need to add the libraries for these features to the pre-built Docker image.
To add third party libraries to a pre-built Microservices Runtime or Integration Server image, take the following general steps:
1. Install Microservices Runtime or Integration Server on your local file system if you have not already. Make sure the installation contains the libraries that you want to add to the Docker image.
*External database driver library location: install_directory\common\lib\ext\dd-cjdbc.jar
*Distributed cache library from Terracotta, specifically BigMemory Max location: install_directory\common\lib\terracotta-toolkit-runtime-ee.jar
2. Copy the libraries from your local file system to the base Docker image.
For example, to add libraries for external database and distributed cache support to a Microservices Runtime image, commands similar to the following might be used:
FROM dockerImageName
COPY --chown=1724:1724 ./common/lib/ext/dd-cjdbc.jar ${SAG_HOME}/common/lib/ext/dd-cjdbc.jar
COPY --chown=1724:1724 ./common/lib/terracotta-toolkit-runtime-ee.jar
${SAG_HOME}/common/lib/terracotta-toolkit-runtime-ee.jar
Where dockerImageName is the name of the Docker image for Integration Server or Microservices Runtime.
3. Create a new Docker image using docker build.