If openJDK is needed to be pushed to PATROL Agents and KMs, a package for it is needed in the Repository. How can it be added to the TSPS Repository?
Packaging OpenJDK in TSPS Repository
It is possible to package any OpenJDK version into the TSPS Repository by using the ‘pcig’ tool, which is part of the TSPS repository located in the tools directory.
The following process demos how this can be done using the ‘pcig’ tool on a Windows box.
Note: If OpenJDK for Linux and OpenJDK for Windows is needed to be packaged, please first create it for Linux and then for Windows.
Initial setup from TSPS install on Window box:
1) Copy the pcig-64.exe tool from TSPS Presentation server to any 64 windows machines
a. Linux: /opt/bmc/TrueSightPServer/truesightpserver/modules/cma/pproxy/depot_directory/bmc_products/tools/pcig/pcig.l64
b. Windows: C:\Program Files\TrueSightPServer\truesightpserver\modules\cma\pproxy\depot_directory\bmc_products\tools\pcig\pcig-64.exe
Step One: Downloading the OpenJDK 11 version
1) On the PCIG tool machine create the following directory:
C:\temp\OpenJDK\Patrol32) Cd to C:\temp\OpenJDK\Patrol3
3) Download the OpenJDK11 for Linux into that directory:
https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gzOr download OpenJDK11 for Windows into that directory:
https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_windows-x64_bin.zip4) Extract it with OS appropriate command e.g.:
tar zxvf openjdk-11+28_linux-x64_bin.tar.gz5) Validate that the following path exists:
C:\temp\OpenJDK\Patrol3\jdk-116) DELETE the openjdk-11+28_linux-x64_bin.tar.gz or openjdk-11+28_windows-x64_bin.zip from C:\temp\OpenJDK\Patrol3
Step Two: Using PCIG to bundle the OpenJDK into repository package
1) Cd to the directory holding the ‘pcig’ tool
2) Run the following for Windows OpenJDK:
> pcig-64.exe -p openjdkwin -r 11.0.02 -s C:\temp\OpenJDK\Patrol3 -t “OpenJDK11 for Windows” -l WINDOWSNote: please make sure the directory of the open jdk that is inside C\temp\OpenJDK\Patrol3 is Windows version
For Linux OpenJDK version run:
> pcig-64.exe -p openjdklnx -r 11.0.02 -s C:\temp\OpenJDK\Patrol3 -t “OpenJDK11 for Linux” -l LINUXNote: please make sure the directory of the open jdk that is inside C\temp\OpenJDK\Patrol3 is Linux version. Also please use specific value for -p flag, using same package name will cause a conflict.
-p -> this is the name of the package.3) If all is successful this is what is shown:
-r -> this is the version
-l -> platform support
-s -> location of the openjdk files following step one.
-t -> the title that will be shown in the TSPS repository
Image is ready4) Validate that openjdk_WINDOWS_11002.zip was created or openjdk_LINUX_11002.zip
Step 3: Import the created package into the TSPS repository
1) Login to the TSPS
2) Import openjdk_WINDOWS_11002.zip or openjdk_LINUX_11002.zip into the CMA repository using the Import UI process
3) When the import process will be finish successfully, you will able to see the OpenJDK11 solution on the Installation component list
4) OpenJDK11 now is part of the TSPS CMA repository