How to: RTC 6.0.3 inside a Docker Container

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
and also
CLM 6.0.3
Excellent Video from Jim Ruehlin:

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…
…applicationMonitor dropinsEnabled=”false” pollingRate=”10s” updateTrigger=”mbean”…
…applicationMonitor dropinsEnabled=”true” pollingRate=”10s” updateTrigger=”mbean”…

Start the CLM Server with:

Open your local browser with and setup CLM:

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.

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: