Installing SDL Content Delivery Microservices in Docker
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:-
- Download the latest CD HotFixes.
- Create a new Folder and copy the Content standalone folder in it.
- Configure cd_Storage_conf.xml file.
- Copy License file in the config folder.
- Update Logback.xml
- 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 8091Next, 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-stagingBelow 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.
