Customizing images with integrated Developer Toolkit
The integrated Developer Toolkit offers two distinct methods for customization that is
with om-runtime container and exploded runtime.
Procedure
- Based on the method you choose, complete the following steps to gain shell access inside
the running container.
- Method 1: Using
om-runtimecontainer- Run the following command.
You now automatically gain shell access inside the running container with the default directory location that is set as /opt/ssfs/runtime.docker exec -it om-runtime /bin/bash
- Run the following command.
- Method 2: Using exploded runtime
- Import extensions to the exploded runtime of the integrated Developer Toolkit environment. For more information, see Updating custom extensions in containerized developer toolkit environment and Importing custom extensions into the Developer Toolkit environment.
- Deploy customizations to a new
om-runtimecontainer. For more information, see Deploying customizations in a new runtime container. - Run the following command.
You now automatically gain shell access inside the running container with the default directory location that is set as /opt/ssfs/runtime.docker exec -it om-runtime /bin/bash
- Method 1: Using
- Continue to complete the following steps 3 to 10, which are common to both the methods.
- Enable OIDC support by adding the following property to the
/opt/ssfs/runtime/properties/sandboxfile. For more information, see Supporting OIDC provider login in Operator.ENABLE_IBMID_AUTHENTICATION=true - Configure the database properties.
- Multischema mode
-
If you want to configure your database, Oracle, Db2, or PostgreSQL with multischema, see Transforming containers for multischema. Then, configure the properties for the database that you are using. The Jdbc schema, URL, user, and password must be metadata information of multischema.
- Single schema mode
-
- Db2
- Complete the following steps if you are using Db2. By default, the base runtime contains Db2 drivers.
-
- Configure the database connectivity by updating
system_overrides.properties. - Go to the /opt/ssfs/runtime/properties folder.
- Create the
system_overrides.propertiesfile and add the Db2 properties. For more information, see Db2 properties. - Ensure none of the applications or agents are running against the same database when you are performing any database-related operations from the customized runtime.
- Configure the database connectivity by updating
- Oracle
- Complete the following steps if you are using Oracle.
- Copy Oracle jar to the container.
- Browse to the <runtime>/bin folder and install the Oracle driver by
running the following
commands:
./install3rdParty.sh <vendorName> <vendorVersion> -d <path to ojdbc8.jar> -targetJVM EVERY./install3rdParty.sh <vendorName> <vendorVersion> -j <path to ojdbc8.jar> -targetJVM EVERY - Browse to the /opt/ssfs/runtime/properties folder.
- Add or modify the Oracle properties in
sandbox.cfgfile. For more information, see Oracle properties.For more information about the
sandbox.cfgproperties, see the Sandbox.cfg properties. - Browse to the <runtime>/bin folder and run the
./setupfiles.shcommand.
- PostgreSQL
-
- Download and copy PostgreSQL driver that is
postgresql-42.2.24.jarto the container with the namepostgresql.jar. - Browse to the <runtime>/bin folder and install the PostgreSQL driver by
running the following
commands:
./install3rdParty.sh <vendorName> <vendorVersion> -d <path to postgresql.jar> -targetJVM EVERY./install3rdParty.sh <vendorName> <vendorVersion> -j <path to postgresql.jar> -targetJVM EVERY - Browse to the /opt/ssfs/runtime/properties folder.
- Add or modify the PostgreSQL properties in the
sandbox.cfgfile. For more information, see PostgreSQL properties.Note:- If you want to transform your containers to a new database type, setting up the database transformation properties are mandatory.
- The Sterling Order Management System Software Operator injects database connection properties automatically during deployment. Therefore, if you are using the customization container only to generate custom images, setting up the database connection properties is optional.
For more information about the
sandbox.cfgproperties, see the Sandbox.cfg properties. - Browse to the <runtime>/bin folder and run the
./setupfiles.shcommand.
- Download and copy PostgreSQL driver that is
- Verify that the database connection is established by completing the following
steps:
- Go to <runtime>/bin
- Run
./dbverify.sh
- Load the base factory setup to load the factory setup data.
- Load the fix pack factory setup present in the
om-baseimage or apply the latest fix pack. For more information, see Installing fix pack for Sterling Order Management System Software containers. - Optional: By default, the runtime does not contain Javadoc. If you want to
build Javadoc, run the following command.
./sci_ant.sh -f ../properties/xapiDeployer.xml alldocsFor 10.0.0.17 or laterom-baseimage, use generate images script to generate Javadoc and an image that can be deployed. Navigate to/opt/ssfs/runtime/container-scripts/imagebuildfolder, and run the following command:./generateImages.sh --MODE=docs --EXPORT=falseThis command generates a new image with the nameom-app-docs. You can push this image to the cluster and deploy for accessing Javadoc. For more information about deploying multiple application images, see the Deploying smcfsdocs. - Optional: Apply language packs manually only for the images of FP23 or older.
The images of FP26 and later comes with language packs applied by default. The supported language
packs are available as an archive at
/var/opt/ssfs/LP.tgz.tar -xf /var/opt/ssfs/LP.tgz -C /opt/ssfs/runtime