Docker Compose commands reference
You can run the ./om-compose.sh command with arguments to suit your requirements. For example, ./om-compose.sh <arguments>.
om-compose.sh
:
Commands | Description |
---|---|
./om-compose.sh setup |
Sets up a containerized developer toolkit environment for the first time. Also, it deploys the customization JAR provided, though it is optional. For more information, see Setting up the containerized developer toolkit environment. |
./om-compose.sh setup-upg |
Upgrades an existing containerized developer toolkit environment with new images (upgrade). Also, it deploys the customization JAR provided, though its optional. This is similar to the setup argument, but runs load factory data and load views in the ‘upgrade’ mode. Before you run For more information, see Upgrading an existing containerized developer toolkit environment. |
./om-compose.sh update-extn |
Updates an existing environment with just the customization package, without fetching new
images. Also, integrate the developer toolkit with Cloud services, such as Sterling™ Intelligent Promising Inventory Visibility and Sterling Store Engagement. For more information, see Update custom extensions in containerized developer toolkit environment. |
./om-compose.sh check-services |
Tests connectivity to integrated Cloud services, such as Sterling Intelligent Promising Inventory Visibility and Sterling Store Engagement. |
./om-compose.sh extract-rt |
Extracts runtime contents to the devtoolkit_docker/runtime directory in the host machine. You can create a copy of your Sterling Order Management System runtime on your host machine from your om-runtime Docker image. This runtime directory can be used to develop customizations, access Javadoc, run agents and scripts like CDT. You need not to enter the Docker container to perform any of these tasks. |
./om-compose.sh start <optional: service name> |
Starts stops, and restarts all Docker Compose services. If no service name is passed to the
command, all the services are either started, stopped, or restarted. Otherwise, the command works
only on the service passed. The service names for different services are omruntime ,
appserver , mqserver and db2server . |
./om-compose.sh wipe-clean |
Destroys all containers and deletes all volumes corresponding to your Docker Compose
environment. Resets your environment so that you can run the setup again. Optionally, you can keep a
backup of your configuration by using the CDT. Note: Running the composed script with this argument completely removes the setup.
|
./om-compose.sh add-queue |
Adds a new local queue on the IBM MQ server and also updates the IBM MQ bindings file. You can also provide a custom queue length, default is 5000. |
./om-compose.sh delete-queue |
Deletes the specified local queue on the IBM MQ server and also updates the IBM MQ bindings file. |
./om-compose.sh import-cert <arg1>
<arg2> |
Imports third-party certificates. It considers the following arguments:
|
./om-compose.sh remove-cert <arg1> |
Removes third-party certificates. The first argument is that the alias has to be removed. |
./om-compose.sh start-agent "<server args, |
Run agent server in debug mode.
For example, to run
ScheduleOrder server with more parameter
-jvminstance schedOrdL1 , with debug that is enabled on port 8384, and suspend for
debug enabled, run the following
command:
|
./om-compose.sh start-intg "<server args, |
Run integration server in debug mode.
|
./om-compose.sh resetpsw-mq <o:user> |
The default password for IBM MQ console is set in the compose/docker/docker-compose.properties file. The MQ_PASS variable contains a password for admin user and MQ_PASS2 contains a password for the reader user. You can update IBM MQ console user passwords by using the <o:user> argument refers to IBM MQ users who are admin or reader user. After updating the password, you can log in to the IBM MQ console by entering the username, which is admin or reader, and the updated password. |
Docker Compose command references for IBM Sterling Call Center
If you want to use Sterling Call Center, you can run the ./cc-compose.sh command with arguments to suit your requirements. For example, ./cc-compose.sh <arguments>
cc-compose.sh
:
Command | Description |
---|---|
./ cc-compose.sh start
./ cc-compose.sh stop
./ cc-compose.sh restart
|
Starts stops, and restarts Sterling Call Center containers. The Sterling Call Center containers are:
|
Steps to follow if your host machine is restarted or rebooted
- After the host machine is restarted, make sure Docker and Docker Compose are running. Run the
following command to make sure that Docker is running. If it returns your containers in the exit
state, follow step 3. Otherwise, follow step 2.
docker ps -a - If Docker is not running, run the following command as super
user:
systemctl start dockerAlso, you can permanently enable Docker by running the following command as a super user:
systemctl enable docker
- Go to the devtoolkit_docker/compose/ directory and run the following
command:
./om-compose.sh startNote: If you are using IBM® Sterling Call Center, run the ./cc-compose.sh start command.Important: If your developer toolkit is running in a Windows WSL 2 environment, thelocalhost
is your WSL 2 system. Instead of thesystemctl
command, you must run the following command as a super user to start Docker:
sudo service docker startEither run the command every time your WSL 2 system restarts or you can set at the
fstab
level, which will then start and enable Docker every time your WSL 2 system restarts.