WORKLOAD AUTOMATION COMMUNITY
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
    • IWA 9.5 Roadshows
  • About
  • Contact
  • What's new

How to containerize Workload Automation

4/23/2019

0 Comments

 
Picture
Workload Automation (WA) 9.5 Server, Console, and Agent components are available as Docker images that can be deployed easier and faster.
 
You may ask yourself whether there is a way to take advantage of the benefits even though you are not yet planning to deploy to the latest version. Is there a way to do this? yes, there is. You can still enjoy the benefits of Docker with the previous WA versions, in this blog post we will show you how.
 
WA is not designed to be containerized, therefore there are no supported ways to containerize IWS and DWC master. Although this applies to production environment, it does not necessarily apply to the test/QA environment.  We run IWS instances in containers along with virtual and physical machines in our test/QA environment. We also maintain a registry of docker images for all releases and components, this allows us to compose and deploy virtually any WA environment in a matter of seconds.   
 
In the same way, containerizing any WA version 9.x can be beneficial for any customer that wants to deploy WA in their test/staging environments. The main benefits of this approach are:
  • Density: On the same machine, both physical or virtual, you can run greater number of WA instances compared to other approaches (i.e. virtual machine) as all instances share the same operating system.
  • Isolation: Each instance runs in a separate container and therefore no more configuration issues (you can use the same deployment template using the same listening ports, installation path and so on).
  • Performance: You can deploy any WA component in a matter of seconds.
  • Easy: You can compose and deploy any IWS environment by just editing a ‘declarative’ file.
Picture
Figure 1: Test environment.
​Let’s start with building an image for the Master Domain Manager (WA Master Image) and an image for the Dynamic Work Console (DWC Image)
Picture
Figure 2: IWS, DWC images (layer details).
The first step is to build a WebSphere Image that can be used as a base image for both the WA and DWC Master Image. This image contains both Installation Manager and WebSphere products.

​The following is an example of the DockerFile:  
Picture
In the example, we used centos:7 as a base image, however you can use any Linux supported distribution, and we assume to have all the packages served by an HTTP server.
 
From this image, we can proceed to create the WA Master Image. 
Now the installation of the Master requires a supported RDBMS up and running for storing both the configuration and data. At the end of the installation we need to save the WA database and make it available every time we spin up a new WA instance.
 
An easy way to proceed is to package a RDBMS in the same image along with WA.
Picture
At this point we have a base image with all the prerequisite in place and we can proceed with the WA installation. Notice that both the DB2 and WA instances are bound to the hostname of the machine. We have two options:
 
  1. Build the image as usual via a Dockerfile, every time you start the container, make sure to reconfigure the hostname in DB2 and WA
  2. Use the same hostname when building the image and when running the container.
 
In the following example, we use the second option:
 
Let’s go ahead and build the WA image. Once you customized the response file, run the image specifying MDM as the hostname and install WA in silent mode.
Picture
At the end of the installation we have a container where WA is up and running. Let’s commit the container.
Picture
Now we can deploy the WA master image multiple times on the same, or on different machines. The main advantage to this method is to install one and deploy N.
Picture
Figure 3: Build once deploy everywhere and any times.
With the same approach, you can build an image for the DWC.
 
At this point you can compose an environment with DWC MDM running on a private network.
Picture
Figure 4: Multiple isolated environments.
The following is an example of composing an environment with DWC 945, IWA 945.

    
​At this point you are ready to run the:

    
​Conclusion
You can enjoy the benefits of Docker with the Workload Scheduler in just a few simple steps.



Picture
Maurizio Simeoni, Senior Software Engineer
Maurizio is Senior Software Engineer at HCL Technologies with 15+ years experience in developing enterprise-wide applications and continuous delivery infrastructure. Strong skills covering all the software life cycle development roles and customer facing activities like advocacy, product delivery and support. Agile development, Continuous Integration and Continuous Delivery are the cornerstone of my work. In the last year I embraced the DevOps career path, leveraging the strong skills in continuous delivery process, test automation, containerization, micro services, cloud infrastructure and DevOps tools (Jenkins, Udeploy, Chef, Ansible, Docker). I think continuous learning is the key for any personal growth. I like learning new technologies, languages, tools that can help me and my team to be more productive.
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    January 2020
    December 2019
    November 2019
    October 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017

    Categories

    All
    Analytics
    Azure
    Business Applications
    Cloud
    Data Storage
    DevOps
    Monitoring & Reporting

    RSS Feed

www.hcltechsw.com
About HCL Software 
HCL Software is a division of HCL Technologies (HCL) that operates its primary software business. It develops, markets, sells, and supports over 20 product families in the areas of DevSecOps, Automation, Digital Solutions, Data Management, Marketing and Commerce, and Mainframes. HCL Software has offices and labs around the world to serve thousands of customers. Its mission is to drive ultimate customer success with their IT investments through relentless innovation of its products. For more information, To know more  please visit www.hcltechsw.com.  Copyright © 2019 HCL Technologies Limited
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
    • IWA 9.5 Roadshows
  • About
  • Contact
  • What's new