Installing SDL Content Delivery Microservices in Docker

Hem Kant
Hem Kant
Sep 4, 2018 · 3 min read

In the last couple of blogs, we learned how to use Docker with SDL DXA Html-Theming and SDL DXA. Today we are going to setup Microservices in Docker. The microservices, also called Content Interaction Services, are the server-side components of Content Delivery. The Microservices is based on Java Spring-boot which uses embedded Tomcat to run the Services. To learn more about SDL DXA, DXA Html-theming and SDL WEB with docker, please follow below links. After this, we can say that we managed to run SDL Content Delivery Environment in Docker. I downloaded the latest CD HotFix from SDL FTP. In this blog, we are going to Install Content and Context Microservices in docker.

Steps:-

  1. Download the latest CD HotFixes.
  2. Create a new Folder and copy the Content standalone folder in it.
  3. Configure cd_Storage_conf.xml file.
  4. Copy License file in the config folder.
  5. Update Logback.xml
  6. Create Docker File in the root.

Docker File

FROM java:8
COPY Contentstandalone /
RUN chmod +x /bin/start.sh
CMD bash -C '/bin/start.sh'
EXPOSE 8091

Next, is we need to BUILD the Docker container.

docker build -t content-service-staging .

If everything goes well and it builds successfully next is RUN it.

docker run -p 8091:8091 content-service-staging

Below is the output of the above command.

Build Container

Run the docker container Let’s browse the Content service

Content Microservice running in Docker
SDL Content Microservice is up and running. Similarly, I followed the same steps in order to install the Context Microservice.

Context Microservice

Context Microservice is up and running in Docker So, We’ve Dockerised SDL Content and Context Microservices, it was quick and simple most of the changes/configuration we did is the standard part of the installation of the SDL Microservices.

Happy Coding and Keep Sharing !!!!


Originally published at hem-kant.blogspot.com on September 4, 2018.

Hem Kant

Written by

Hem Kant

SDL WEB MVP 2017, SDL Tridion Sites MVP 2018/2019 having 10+ years of IT experience in Software Development

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade