Create webMethods Integration Server Docker Images using Software AG 10.7 installer: step by step guide
Tags: integration, docker, image, guide
Published: 2021-07-06 09:48:31

---
title: Create webMethods Integration Server Docker Images using Software AG 10.7 installer: step by step guide
published: true
date: 2021-05-31 06:45:15 UTC
tags: #integration, #docker, #image, #guide
canonical_url: https://tech.forums.softwareag.com/t/create-webmethods-integration-server-docker-images-using-software-ag-10-7-installer-step-by-step-guide/241767
---

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.

## Prerequisites:

- Have a Linux flavored system ready for use. I have done this on ubuntu, but it should work for other Linux flavored systems as well.
- You **should have installation privileges on the system, to be able to run certain commands that we will perform in the below sections. For e.g.: docker installation commands and user group modifications command. The user who will be used to run the commands mentioned below should have ownerships of the folder where you will keep certain files, like the SAG installer file.**
- Your machine (VM) should have an active connection to internet. This is needed for you to be able to download docker and for the SAG installer to connect to the SAG installer server.
- **You have downloaded the latest .bin installer** (for Linux system: SoftwareAGInstaller20210517-Linux\_x86\_64.bin) from empower and kept the installer ready in the VM, where you will be performing this POC.

**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.

## STEPS:

### STAGE 1: install docker and give the proper privileges to your user

1. login to your VM and then run below command. It will update the apt package index and install packages to allow apt to use a repository over HTTPS. It will give output like below.
**sudo apt-get update**
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/2/0/20be948d3bab2e4513775b2d91487c6160118568_2_690x231.jpeg)
2. Run below command. It should give output like below
**sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release**
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/9/3/9393b82a653ce45b3e970fd896e54beb542dfa4e_2_690x371.jpeg)
3. Run below command to add Docker’s official GPG key.
**curl -fsSL [https://download.docker.com/linux/ubuntu/gpg](https://download.docker.com/linux/ubuntu/gpg) | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg**
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/f/f/ff8f03ff2371a5aadababf4611e78fd4eaf32032_2_690x20.png)
4. Use the following command to set up the stable repository. This should give output like below.
**echo “deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] [https://download.docker.com/linux/ubuntu](https://download.docker.com/linux/ubuntu) $(lsb\_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null**
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/8/b/8b3b18feda26caa359cf17f16ffd80733f2f9b81.png)
5. Install Docker Engine
5.1 Run below command .
**sudo apt-get update**
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/0/b/0b38b593df64cd7e9cc89ded84209c6403189a8e.png)
5.2 Run the below command to install the Docker engine
**sudo apt-get install docker-ce docker-ce-cli [containerd.io](http://containerd.io)**
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/1/6/16aeeb1080296c99905ac3d3b9b71d79689bc130.jpeg)
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/8/b/8b20829c689c9fc265af54a774558bce31444f11.jpeg)
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**
6.Restart your VM for the changes to take effect
7. 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.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/9/2/92c4a103c9ec643ead7f23447c5fe156d2c74b56_2_690x124.png)
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/7/0/70314a04a10342db205d425025c3cecb7edfe4e7.png)

### STAGE 2: use SAG installer to create IS docker image

1. Go to the directory where you have your .bin file present. This .bin file is the SAG installer file that you downloaded from empower. Please ensure that execute permission is there for your user.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/f/d/fd19145cedc75a3a45d6ce18f99a548e6505465d_2_690x61.png)
2. 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
```
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/e/f/ef6ba446230e7e396fe94eea4414b7bbdd99b425_2_690x278.jpeg)
3. The installer will now try to connect to the empower server. If you have an active connection ( without needing a proxy server, I have not tested with proxy server) to it and installer can connect to it, then you should see below screen. Once you see “press Enter” message. Press Enter.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/1/c/1cc16750ea7e09c3385304ae32c9910cef60f168_2_690x167.png)
4. Now you will be prompted to specify the credentials that would be used to connect to empower server. Please give the correct credentials and then press enter when prompted for.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/7/3/730bb3b8bdec8451e221e3a37a39d547c84a9a7a_2_690x191.png)
5. Now you will be asked to select the product suite. I want to use 10.7, so I select option 1 and then press Enter . Again once prompted to press Enter, please press Enter.
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/a/2/a294d040d0635fa1fe9a2f37b3dd34487c97effc.png)
6. After that, it will ask you to give the hostname and installation directory that will be created inside the docker image . You can leave that as such for this case. It will be automatically detected and populated. You can press Enter and it will take that value automatically.
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/8/e/8e3dc7b2d92977a513610c92d78fba37581acee1.png)
7. At this stage, it will ask you to select the products that you want to choose in the image. I want to install a core Integration Server, so I select the proper number 250 as shown below in the images. It will prompt you to select the required dependencies, you say Yes to that and select those as well. Press enter once you are done with selecting the dependencies.
> 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](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. “
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/5/5/550b6e05261c9903b41fcbe5672a7aea929259d9_2_615x500.jpeg)
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/2/9/292c3c04b7953a328eef1a48c2905ca7ce4ead84_2_690x414.png)
8. You will be asked to choose a language pack if you want, since I wanted the default, I move forward by pressing Enter as and when prompted to.
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/7/3/7332fc39ab58a8c3d22795810822f8cf916d46fa.png)
9. Now you will be prompted to select the fixes that will be applied to the products that you selected as part of your docker image creation.
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/6/d/6d10469f5f76129f96633a35f2bc1fdd5624218b.png)
10. Press Enter as and when needed, which will display messages for you to accept license agreements.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/0/e/0eb84c8e828df422919092c92407bfeada43a69e_2_543x500.jpeg)
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/2/0/20b2c004601f0864030e303b5b0956e95be2add4.png)
11. Give the valid license file location from your machine on which you are running the installation.
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/4/d/4d6041e3afef2127f41a41261e59b5fe4b4fa71e.png)
12. Select the appropriate options as shown below, where you get to choose the port numbers and network interfaces. You can press Enter as and when prompted and let the default values kick-in automatically. We don’t need auto-startup so, we do not select the option of creating the auto-startup daemons.
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/1/c/1c8323c6ddf836140b86926a422539274bab8550.png)
13. Specify the DB connection parameters. If you want embedded DB for the testing purpose only, then you can press Enter as and when prompted.
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/a/0/a0c18d0929fabe0c1ab5a2f61ff8ec15a9febe43.png)
14. If you don’t want command central, so you can uncheck that and then press Enter.
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/a/c/acdf8cccfc6b3c64f7ae288d8194a504e213cbc3.png)
15. If you don’t want any external DB as of now, so you can press Enter and let defaults kick in for DB parameters as shown below.
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/e/7/e7f010bcdf124954c0603daa425bfe34af38ea23.png)
16. After that the below screen will come, which will show you which components and fixes will be installed. Press Enter when prompted to. You will start seeing a message “Preparing environment for …. “, this means the process of creation of Docker image for webMethods Integration Server has started. Please see below.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/a/7/a70553b93caddb0763ff6ccdc98525b689414dab_2_269x500.png)
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/7/7/77378b235d40223283351cd512839c37f472e653.png)
17. Once the steps are completed successfully, you will see below message. That marks the end of the process of docker image creation. Give “F” as input and press Enter as shown below. Now your image is ready and you can verify it as shown in the next step.
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/a/b/ab8973b6db2922c0555a6a5d9858b16e45367afd.png)
18. Verify that image has been created. Run below command.
**docker images**
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/c/4/c4493a0eb9487b3639ea23a693605611dd843be4.png)
19. If you want to check, if your image is correct and quickly test it, you can run below docker command to test.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/3/b/3b93f5b5eb2c90044f7fecc7b764d88d6e3fae88_2_690x50.png)
20. You can verify the server is up and running using logs of your container and browser. It should look like below.
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/9/2/92aa42000a6502942ef620fc0a9913c4fffb6cff.png)
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/d/9/d9a868cd3233ec14546ebdf421af8ec6aa3bd604.png)

## Conclusion:

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.

[Read full topic](https://tech.forums.softwareag.com/t/create-webmethods-integration-server-docker-images-using-software-ag-10-7-installer-step-by-step-guide/241767)