Download and Configure the Palette Config
- Download the domain binaries as mentioned in the Pre-Requisites section of this document.
- To define the following environment variables at docker run time using the -e option in the command line or defined them in the palette_env.dat file.
The environment configuration variables, that need to be set for the TomEE server, and application configuration are defined below:
| Configuration Parameters | Variable |
| PASJava Application Port | PALETTE_PORT |
| Database Hostname | DB_HOST |
| Database Port | DB_PORT |
| Data source Database Name | DSDBNAME |
| Data source IVS Database Name | DSIVSDBNAME |
| Database Username | DSUSERNAME |
| Database Password | DSPASSWORD |
| Database IVS Username | DSIVSUSERNAME |
| Database IVS Password | DSIVSPASSWORD |
| External Library Path | EXT_LIB_PATH |
Note: Refer to the palette_env.dat file for more information regarding these variables.
The Dockerfiles directory structure is as follows:
Under the scripts home directory,
Under the endorsed directory,
Under the lib folder of palette_shared directory,
Note: Ensure you have copied the required libraries to the lib directory before building the base image.
Note: Place the Palette Config build artifact which is downloaded from the Oracle Software Delivery Cloud in the externallibs/zip directory. Check the below snippet for your reference.
Under the zip directory,
From the copied location, execute the below command:
docker build format:
$ docker build --network=host -t <Image_Name>:<Image_Tag> . --build-arg PALETTE_PKG="<PALETTE Package Name>"
docker build example:
$ docker build --network=host -t palette_tomee:11.3.1.0 . --build-arg PALETTE_PKG="PaletteConfig-tomEE.war"
This will generate the PaletteConfig TomEE image.
To start the containerized PaletteConfig application, run
docker run format:
$ docker run -itd --network=host --privileged --mount type=bind,source=/path/to/the/externallibs,target=/usr/local/tomee/externallibs --env-file /path/to/the/palette_env.dat -p <App_External_Port>:<App_Container_Port> --name <Container_Name> --hostname localhost <Image_Name>:<Image_Tag> createServer.sh
docker run example:
$ docker run -itd --network=host --privileged --mount type=bind,source=/scratch/oipa/oipa/paletterconfig/externallibs,target=/usr/local/tomee/externallibs --env-file /scratch/oipa/oipa/paletterconfig/palette_env.dat -p 7012:7012 --name palette_tomee --hostname localhost palette_tomee:11.3.1.0 createServer.sh
Check the docker logs in the PUTTY console by executing the below command:
$ docker logs -f palette_tomee
Access the application when you see the Server startup in [xxxxxx] milliseconds message in the PUTTY console.
PaletteConfig URL