Before you start please keep in mind that Docker only runs on Linux, I use Ubuntu 14.04 LTS.
- Download the RTC ZIP file with RTC 5.0.2 from jazz.net
- Get the files from jazzhub and put them in a Linux directory like /docker/rtc
- Unzip RTC to /docker/rtc/ccmserver
- Run the Docker build process “docker build -t steve/teamconcert .” and name the Container like steve/teamconcert (or wathever you want).
- The “docker build…” use the Dockerfile
- Start the Docker RTC Container with “docker run -it -p 9443:9443 steve/teamconcert”…
- …or interactive “docker run -it -p 9443:9443 steve/teamconcert /bin/bash”
- Shutdown RTC with “docker exec -it 4b8975053099 /docker-shutdown.sh” (use docker ps to get the ID). To use “docker exec…” you need Docker >1.4
- Access the RTC Server Webinterface with https://localhost:9443/ccm
- Access the running Docker Container with “docker exec -it 2ef85e96dea6 /bin/bash”
Making Docker Changes persistent
As described here (german) and here (english) you can’t change the Docker Image, all changes take place in the Docker Container. It means when you restart the Docker Image everything is as before. Maybe you want this behaviour, because you want to restart with a clean Testenvironmet. If not, you need to transfer the actual Container to a new Docker Image.
- Type “docker ps” or “docker ps -a” to get the Docker Container ID like e267be9507c3
- Create a new Image with “docker commit e267be9507c3 steve/rtc:502”
- When you try to start the new Image with “docker run -it -p 9443:9443 steve/rtc” you get a message “Error: image steve/rtc:latest not found”, because there is no lable “latest”. Solution…put the label “502” at the end like “docker run -it -p 9443:9443 steve/rtc:502”
Moving a Docker Image
I moved (with the help of a USB Stick) the resulting RTC Container (1 GB) from one PC to another Linux PC and use it without problem.
PC1 with Docker 1.0.1
- docker save steve/rtc > ‘/media/steve/CORSAIR/stevetc.tar’
PC2 with Docker 1.4.1
- docker load < ‘/media/steve/CORSAIR/stevetc.tar’