Steps to Build and Run the Docker Image

From the Dockerfile location, execute the below command (a sample build.sh file is placed for reference)

docker build format:

$ docker build --network=host -t <Image_Name>:<Image_Tag> --build-arg PAS_PKG="<PAS Package Name>"

docker Build Example :

$ docker build --network=host -t oipa_liberty:12.0.1 --build-arg PAS_PKG="PASJava-websphere-distribution.zip"

This will generate the PAS WebSphere Liberty image.

AS WebSphere Liberty image

To start the containerized PAS application,

docker run format:

$ docker run -itd --restart unless-stopped --network=host --privileged -v /path/to/the/ externallibs:/path/to/target/location/externallibs --env-file /path/to/the/pas_env.dat --name <Container_Name> --hostname localhost <Image_Name>:<Image_Tag> $DB_TYPE

Docker run example :

For ORACLE: $ docker run -itd --restart unless-stopped --network=host --privileged -v /path/to/the/externallibs:/opt/ol/oipa/externallibs/ --env-file /home/pasjava/pas_env.dat --name oipa_liberty --hostname localhost oipa_liberty:12.0.1 ORACLE

For DB2: $ docker run -itd --restart unless-stopped --network=host --privileged -v /path/to/the/externallibs:/opt/ol/oipa/externallibs/ --env-file /home/pasjava/pas_env.dat --name oipa_liberty --hostname localhost oipa_liberty:12.0.1 DB2

For MSSQL: $ docker run -itd --restart unless-stopped --network=host --privileged -v /path/to/the/externallibs:/opt/ol/oipa/externallibs/ --env-file /home/pasjava/pas_env.dat --name oipa_liberty --hostname localhost oipa_liberty:12.0.1 MSSQL

Make Sure you define the Database names as below only (Case Sensitive)

  • Oracle Database: ORACLE

  • DB2 Database: DB2

  • SQL Database: MSSQL

To check the docker logs of the docker run, use the below command:

$ docker logs -f <Container_Name>

Ex:- $ docker logs -f oipa_liberty

Access the application when you see the below message in the PUTTY console.

CWWKZ0001I: Application PASJava started in XXX seconds.

 

PASJava Login Page

PasJava login page

 

PASJava Homepage

PASJava Homepage