IBM Maximo: Maximo Manage development environment without OpenShift
Pull image from IBM Repository
Go to this webpage to get your entitlement key: https://myibm.ibm.com/products-services/containerlibrary
Set the IBM Entitlement Registry Key
export ENTITLED_REGISTRY_KEY=eyJ...
Do a login to Podman
podman login cp.icr.io -u cp -p $ENTITLED_REGISTRY_KEY
List Available Tags for a Manage Admin with skopeo tool.
skopeo list-tags podman://cp.icr.io/cp/manage/manageadmin
Inspect a Manage Admin Image
skopeo inspect docker://cp.icr.io/cp/manage/manageadmin:9.0.0
Pull a Manage Admin Image
podman pull cp.icr.io/cp/manage/manageadmin:9.0.0
Run Manage Admin
Run container in background
podman run -d cp.icr.io/cp/manage/manageadmin:9.0.0 40e118bf93183b386c787553e3a1689519eb6ef6e1712d9f019ec12e8e2c59a4
Check status
podman ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 40e118bf9318 cp.icr.io/cp/manage/manageadmin:9.0.0 3 seconds ago Up 3 seconds pedantic_cerf
Connect to container and list /opt/IBM/SMP directory
podman exec -it pedantic_cerf sh sh-4.4$ ls /opt/IBM/SMP maximo
Update the properties in the
/opt/IBM/SMP/maximo/applications/maximo/properties maximo.properties
file with the URL, user name, and password for your Maximo Manage database.
Customization
How to compile Java customization and create customization_binaries.zip
- Obtain the SMP folder directory from a Manage admin image
- Develop and compile Java customization against the classes and libraries in the SMP folder
export JAVA_HOME=/opt/IBM/ibm-java-x86_64-80 export LIB_DIR=/opt/IBM/SMP/maximo/applications/maximo/lib/* export CLASS_DIR=/opt/IBM/SMP/maximo/applications/maximo/businessobjects/classes/*
cd ˜ mkdir src target
copy files you custom classes to src directory
find src -name "*.java" > sources.txt
Compile files
$JAVA_HOME/bin/javac -d target -cp "$LIB_DIR:$CLASS_DIR" @sources.txt
Copy Non-Java Files
rsync -av --exclude="*.java" src/ target/
Create customization archive
cd target zip --verbose -r ../customization_binaries.zip *
How to test
- Extract the content in the same directory structure as customization archive
- Deploy customization archive on a test environment , or
- Test customization archive use local container deployment for Manage without OpenShift and MAS for limited but fast testing