Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
The purpose of this article is to provide a step by step guidance on how to create a webMethods Integration Server Docker image using Software AG installer 10.7 on a Linux flavored system. This is a new feature available in 10.7, where we don’t need to pre-install a base IS installation, to be able to create a IS docker image. I have performed this POC on a ubuntu based VM. I will also share the step-by-step process for installing the docker engine on Ubuntu VM, as having a docker engine running is mandatory for this IS docker image generation process to work.
Important Notes:
The POC I have done is based on my knowledge of the Linux, Software AG product suite and Docker, and it doesn’t necessarily say/recommend anything about the best way, and the best practices prescribed by anyone for doing it.
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo “deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] Index of linux/ubuntu/ $(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
5.1 Run below command .
5.2 Run the below command to install the Docker engine
sudo apt-get install docker-ce docker-ce-cli containerd.io
5.3 Use the below command to add your user to the docker group so that you can run docker commands. Here $USER is the user ID, which you will use to run the installation instructions.
sudo usermod -aG docker $USER
Restart your VM for the changes to take effect
Check if your user has got the access to run docker command and also verify the docker installation. This is needed as otherwise; you will get permission denied error as shown below if you will run the installer for creating docker image with this user. See the sample error below.
Run the below command in below format to start the installer. Here you can give centos:7 as the base OS image on top of which the IS image will be created. The sample output is shown below. Once you see the option “Enter: [N]. Press Enter.
sh SoftwareAGInstaller<yyyymmdd-operating_system>.bin -dockerCreateImage <docker_image_name> -dockerBaseImage centos:7 -console For eg: sh SoftwareAGInstaller20210517-Linux_x86_64.bin -dockerCreateImage my_wm_img -dockerBaseImage centos:7 -console
Important note: As per documentation present at https://documentation.softwareag.com/webmethods/wmsuites/wmsuite107/SysReqs_Installation_and_Upgrade/compendium/index.html#page/install-upgrade-webhelp%2Fto-console_mode_26.html, “You can use Software AG Installer to create Docker images on Linux systems without a pre-existing installation. As part of the image generation, the product Docker scripts, and entry point scripts are used. The Installer client can install any certified products along with their fixes and build a docker image. Only products that are certified for containerization and their top-level dependencies are shown in the product tree and only a single runtime product can be selected at a time. For example, if you select Microservices Runtime then you won’t be able to select Universal Messaging, because both products provide their runtime and entry point scripts. “
Verify that image has been created. Run below command.
docker images
We were able to use SAG 10.7 installer for Linux system to create a docker image of IS and were able to launch a IS container from it.
Thanks for reading.