Docker Build and Run

$cd <IBSS base path>

$docker build --network=host -t <imagename:tag>

For Example:

$docker build --network=host -t insbridge:5.6.4.0 .

(The scripts folder comes with ibssbuild.sh that will help build the image)

Step1_DockerBuildandRun

Step24_DockerBuildandRun

If a respective lines is not required comment those in the docker file before building the docker image.

Place all the configuration files inside the “JBOSS\insbridge\config” folder including the IBSS.warJBOSS package.

ConfigFolderJBoss

Verify the image

$docker images

VerifyImagesJbossDocker

Creating and running container for the Insbridge IBSS

Use the following code to create and run container for Insbridge IBSS.

docker run -d --privileged --mount type=bind,source=<source to config files>,target=/opt/config --name JBOSS_5.6.4 -p 8080:8080 ibss_jboss:5.6.4

ibss_jboss

Verifying if Container is Running

To check if the container is running use the following command:

$docker ps

verifyingcontainerrunning

Verifying Logs of the Running Container

To check logs of the running containers, use the following command:

$docker logs -f <container name>

verifyinglogsofcontainer