Showing posts with label ibm domino. Show all posts
Showing posts with label ibm domino. Show all posts

Sunday, February 21, 2016

IBM Connect 2016, my slides about running IBM Domino inside a Docker container with my dockerfile

During last IBM Connecti 2016 I had the pleasure to be selected with my colleague Daniele Vistalli for a lightning talk (30 minutes session) named "AD-1772, Shipping Domino, How to put Domino in a Container and live happy".

I like to start with a disclaimer : running Domino inside a Docker container is not supported by IBM  , so you can of course do that but at your own risk.

After this disclaimer, i like to say Domino inside a Docker container works great and can be really useful for development task (see the slides to get our idea about that ).



Connect2016 - 1172 Shipping domino from Matteo Bisi


I've  start a github account with the script we have used during the live demo during our session and you can found the docker file following this link.
Inside the docker repository you can find 3 scripts:

  1. Dockerfile-domino4ubuntu-install
  2. Dockerfile-domino4ubuntu-setup
  3. Dockerfile-domino4ubuntu-FP5
Using this 3 script you will be able to create a Domino Image pre configured with a server id of your environment.
We have decided to split the creation of the Docker Image to 3 script for flexibility but you can obviously build a docker file that install , configure and upgrade domino  inside an image.

To run this scripts you have to prepare a working directory with the following: 
  • a folder named domino901 that contains the uncompressed Domino setup,  
  • initscripts that contains the Domino init script form Daniel Nashed (thanks again for your work!) , 
  • serverconfig that contains the Domino certifier domino admin ID and the txt file with the ids pw

If you have prepared all this things you can proceed to build your Docker Image using the script in the correct order.

The Install script will build the image starting from Ubuntu SRV 14.04 LTS and will prepare the environment and setup -up Domino silently inside the container.

The setup script will build a new image starting from the previous , and will make a silent configuration of the domino server copying the pds file ( you can obtain your pds file running a serverconfig -record from your notes directory) , the txt file with all id passwords.

To build the image you have to use the docker build command :

docker build -t mbisi/domino901-ready-playground:1.0 -f Dockerfile-domino4ubuntu-setup .

after that you can start the container mapping his ports with this docker run command:

docker run -it -p 1352:1352 -p 80:80 -p 443:443 mbisi/domino901-ready-playground:latest


The FP5 script will build a new image upgraded to the new FP.

Inside the image we have defined /local/notesdata as volume so the data of the Container will be persistence.

This Dockerfile would be a proof of concept to give you an some idea and help to starts your own container.

If you don't know Docker and you are interested to work with container you can start here with this nice video tutorial