After a short break I would like to continue with my docker postings.
This time I will describe how we (me and my college Nam) configure RTC 6.0.3 to run inside Docker. A “nice to have” would be a Jenkins integration, i.e. build your WAR, start the CLM docker image and deploy the WAR File.
Most of the work is done by Jim Ruehlin, it means there is a very useful CLM docker image at the docker hub.
Details at:
RTC 6.0.3 https://hub.docker.com/r/jruehlin/clm603-rtc/
and also
CLM 6.0.3 https://hub.docker.com/r/jruehlin/clm603-all/
Excellent Video from Jim Ruehlin:
https://ibm.ent.box.com/s/7onk636mt93ouvl9nwk50jvw20o6g2kv
Start and do a remote login to docker with:
docker run -it -p 9443:9443 jruehlin/clm603-rtc:v03 /bin/bash
The -p 9443:9443 map the internal CLM port 9443 to the host port 9443.
Edit server.xml:
vi /opt/IBM/JazzTeamServer/server/liberty/servers/clm/server.xml
Change the line…
from
…applicationMonitor dropinsEnabled=”false” pollingRate=”10s” updateTrigger=”mbean”…
to
…applicationMonitor dropinsEnabled=”true” pollingRate=”10s” updateTrigger=”mbean”…
Start the CLM Server with:
/opt/IBM/JazzTeamServer/server/server.startup
Open your local browser with and setup CLM:
https://localhost:9443/jts/setup
Stop/Pause docker (don’t exit the running docker image)
Make your docker changes persistent:
- Type “docker ps” or “docker ps -a” to get the Docker Container ID like 0501ba1c065e
- Create a new Image with “docker commit 0501ba1c065e jruehlin/clm603-rtc:v01” (the “v01” is important, next time use “v02”)
- Run the new created image with “docker run -it -p 9443:9443 jruehlin/clm603-rtc:v01 /bin/bash”
Create a local dropins directory and place your WAR File inside.
Start docker with:
docker run -it -p 9443:9443 -v /Users/steve/dropins:/opt/IBM/JazzTeamServer/server/liberty/servers/clm/dropins jruehlin/clm603-rtc:v01 /bin/bash
The option “-v /Users/steve/dropins:/opt/IBM/JazzTeamServer/server/liberty/servers/clm/dropins” mount the host directory “/Users/steve/dropins” to the docker directory “/opt/IBM/JazzTeamServer/server/liberty/servers/clm/dropins”. This is very convenient for deploying new WAR files, just put them in your host directory and CLM Liberty will use them immediately.