Skip to content

ebasso/maximo-admwks-container

Repository files navigation

IBM Maximo Administrative Workstation as Container

The IBM Maximo Administrative Workstation is the system where IBM Maximo is installed. It is used to apply new fix packs, feature packs, addons, industry solutions, or any customizations are applied to the installed IBM Maximo code.

The IBM Maximo Administrative Workstation project as a Docker/Podman Container has the function of generating the .ear/.war files to deploy the application in an automated way to be used in a CI/CD pipeline.

To create our maximo-admwks-container, we have some temporary stages, before generating the final image, as I describe below:

  1. In the first stage, we install IBM Installation Manager 1.9
  2. In the second stage, we install IBM Maximo EAM 7.6.1.0, using the previous image "maximo-admwks/ibm-im:1.9"
  3. In the third stage, we apply the fix 7.6.1.3, using the previous image "maximo-admwks/maximo-smp:7.6.1.0" .(Optional) at this stage we can apply some iFix, in my case iFix 7.6.1.3 ifix 12
  4. In order to reduce the size of the image, we created the maximo-admwks-container by copying only the /opt/IBM/SMP directory from the previous image.

At the end you will be able to remove the images from stages 1, 2, 3.

Pre-install actions

  1. Install an Nginx in the local machine
dnf -y install nginx.x86_64
  1. Enable and Start Nginx
systemctl enable nginx

systemctl start nginx

Take note of ip address of your http server, you must replace variable <IP_ADDRESS> below

  1. Download IBM Installation Manager, IBM Maximo 7.6.1.0, IBM Maximo 7.6.1.3,
  • agent.installer.linux.gtk.x86_64_1.9.zip
  • MAM_7.6.1.0_LINUX64.tar.gz
  • MAMMTFP7613IMRepo-signed.zip
  • TPAE_7613_IFIX.20230914-0042.im.zip
  • maximomobile-8.9.zip (pre-req Maximo 7.6.1.3)

... and add to a directory /usr/share/nginx/html

Building IBM Maximo Asset Management V7.6.1.x images by manually

  1. Clone this repository.
git clone https://github.com/ebasso/maximo-admwks-container.git
  1. Move to the directory.
cd maximo-admwks-container
  1. Build IBM Installation Manager image:
cd ibm-im

podman build -t maximo-admwks/ibm-im:1.9 --build-arg url="http://<IP_ADDRESS>" .
  1. Build IBM Maximo 7.6.1.0 image:
cd ../maximo-smp

podman build -t maximo-admwks/maximo-smp:7.6.1.0 --build-arg url="http://<IP_ADDRESS>"  .
  1. Build IBM Maximo FixPack 7.6.1.3:
cd ../maximo-smp-7613

podman build -t maximo-admwks/maximo-smp-fp:7.6.1.3 --build-arg url="http://<IP_ADDRESS>"  .

If you want to apply a ifix to 7.6.1.3, add argument ifix and mam_ifix_image:

podman build -t maximo-admwks/maximo-smp:7.6.1.3 --build-arg url="http://<IP_SERVER>" \
 --build-arg ifix=20230914-0042 \
 --build-arg mam_ifix_image=TPAE_7613_IFIX.20230914-0042.im.zip .

in this case i using TPAE_7613_IFIX.20230914-0042.im.zip (ifix12).

  1. Build IBM Maximo Administrative Workstation:
cd ../maximo-admwks

podman build -t maximo-admwks/maximo-admwks:1.0  .

Access to Maximo Administrative Workstation as Container

You can ignore script to build maximo.ear and access the container, using the following command:

podman run --entrypoint=/bin/bash -it maximo-admwks/maximo-admwks:1.0

Build maximo.ear

Build maximo.ear for a Oracle Database and Weblogic

podman run -it --rm \
  -v "$(pwd)":/resources \
  -e MX_DB_VENDOR=Oracle \
  -e MX_DB_HOSTNAME=orcl.maximo.com -e MX_DB_PORT=1521 \
  -e MX_DB_USER=maximo -e MX_DB_PASSWORD=passw0rd \
  -e MX_DB_SCHEMA=maximo -e MX_DB_NAME=maxdb.maximo.com \
  -e MX_APP_VENDOR=weblogic \
  maximo-admwks/maximo-admwks:1.0

Build maximo.ear for a DB2 Database and WAS

podman run -it --rm \
  -v "$(pwd)":/resources \
  -e MX_DB_VENDOR=DB2 \
  -e MX_DB_HOSTNAME=db2.maximo.com -e MX_DB_PORT=50005 \
  -e MX_DB_USER=maximo -e MX_DB_PASSWORD=passw0rd -e MX_DB_NAME=MAXDB76 \
  -e MX_APP_VENDOR=was \
  maximo-admwks/maximo-admwks:1.0

Build maximoXXX.war for DB2 and Liberty

podman run -it --rm \
  -v "$(pwd)":/resources \
  -e MX_DB_VENDOR=DB2 \
  -e MX_DB_HOSTNAME=db2.maximo.com -e MX_DB_PORT=50005 \
  -e MX_DB_USER=maximo -e MX_DB_PASSWORD=passw0rd -e MX_DB_NAME=MAXDB76 \
  -e MX_APP_VENDOR=liberty \
  maximo-admwks/maximo-admwks:1.0

Remove stage images

After your finish to create your images, you can delete stage images

podman images

the output is

REPOSITORY                             TAG         IMAGE ID      CREATED         SIZE
localhost/maximo-admwks/maximo-admwks  1.0         26c0bf98d1ca  26 seconds ago  8.66 GB
localhost/maximo-admwks/maximo-smp     7.6.1.3     c3c3c3c3c3c3  20 minutes ago  10.2 GB
localhost/maximo-admwks/maximo-smp     7.6.1.0     b2b2b2b2b2b2  27 minutes ago  4.94 GB
localhost/maximo-admwks/ibm-im         1.9         a1a1a1a1a1a1  54 minutes ago  545 MB

Delete stage images

podman rmi a1a1a1a1a1a1 b2b2b2b2b2b2 c3c3c3c3c3c3

Deprecated

Build IBM Maximo FixPack 7.6.1.3:

cd ../maximo-smp-7612

podman build -t maximo-admwks/maximo-smp-fp:7.6.1.2 --build-arg url="http://<IP_ADDRESS>"  .

Acknowledgments

This project was inspired by the Docker images for IBM Maximo Asset Management V7.6.1 with Liberty done by Nish2Go. Some parts were used from his project. My sincere thanks to Nish2Go.

License

This project is licensed under Apache 2.0 license.

About

IBM Maximo Administrative Workstation on Docker Container

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published