Creating a Docker container from the App Connect Professional Docker image
Before you begin
Make sure you have a proper App Connect Professional Docker image created and available for deployment.
About this task
Use this task to create a new Docker container from the App Connect Professional Docker image.
Procedure
- If you want only one App Connect Professional container per single Docker host (as the container uses the docker host's network resources, there is no need to map ports), run the following command:
docker run --net=host --pid=host -t -i -d <App_Connect_docker_image_ID>
- If you want more than one App Connect Professional container per single Docker host, you need to map ports as follows:
- In the Ubuntu server, where you have your Docker image, run the following command:
docker run -p <target_port>:8443 -p <target_port>:9443 -t -i -d <App_Connect_docker_image_ID>
For example:
docker run -p 9444:8443 -p 7443:9443 -t -i -d <App_Connect_docker_image_ID>
Where:- You can get
<App_Connect_docker_image_ID>
by running thedocker images
command - 8443 is WMC port and 9443 is gateway server port. Similarly, you need to map all the ports if your orchestrations are exposing any APIs that need to be accessed externally.
- You can get
- To use the secure connector, edit the localConfig_ws.xml file present in the secure connector install location (
<installed_secure_connector>/config
). Change the value of agentServerPort from 9443 to the mapped value. In this example it is 7443. After changing the value, it will look like the following example:<agentServerPort>7443</agentServerPort>
- In the Ubuntu server, where you have your Docker image, run the following command:
Results
Notes:
You can validate the App Connect Professional installation and configuration using the following command until you get the App Connect component status:
docker logs –f <container_ID>
For example,
App Connect Component Status
--------------------------
DerbyServer : Up
WMC : Up
Maestro : Up
Gateway : Up
Also use the Docker host machine’s default interface IP address to open the App Connect Professional Web Management Console and ensure it is accessible.