Unable to build image with wls12214
senthil13 opened this issue · 5 comments
@ddsharpe
Hi Team,
I am trying to build an image with WLS 12214, but there is no option to build that and getting below error.
[INFO ] Image Tool build ID: 19123aea-e4e6-4b45-b8d4-8450e7464923
[INFO ] Temporary directory used for docker build context: /jenkins/wlsimgbuilder_temp6552794549940276209
[INFO ] Copying /jenkins/stage/server-jre-8u271-linux-x64.tar.gz to build context folder.
[INFO ] Using middleware installers (wls) version 12.2.1.3.0
[SEVERE ] Installer with key="wls_12.2.1.3.0" is not in the local cache, please download the installer and add it to the cache with "imagetool cache addInstaller ..."
@senthil13 The installer(s) are selected by the combination of two command line flags, --version and --type. To select the wls_12.2.1.4.0 installer, use "--version 12.2.1.4.0 --type WLS".
What's your full command line parameters and can you display your cache contents
imagetool.sh cache listItems
Please find the details below
I don't use the --version
or --type
tag while creating the image, do we need to add that ?
Below is the command i used and the cache list Items
imagetool create --fromImage OS_BUILD_NAME --tag WLS_BUILD_NAME --patches 26877609_12.2.1.4.0,30597194_12.2.1.4.0,32097167_12.2.1.4.0,31960985_12.2.1.4.0,30628121_12.2.1.4.0,28294508_12.2.1.4.0 --jdkVersion=8u271
26877609_12.2.1.4.0=/jenkins/stage/p26877609_122140_Generic.zip
30597194_12.2.1.4.0=/jenkins/stage/p30597194_122140_Generic.zip
32097167_12.2.1.4.0=/jenkins/stage/p32097167_12214201001_Generic.zip
31960985_12.2.1.4.0=/jenkins/stage/p31960985_122140_Generic.zip
30628121_12.2.1.4.0=/jenkins/stage/p30628121_122140_Generic.zip
28294508_12.2.1.4.0=/jenkins/stage/p28294508_122140_Generic.zip
jdk_8u271=/jenkins/stage/server-jre-8u271-linux-x64.tar.gz
wls_12.2.1.4.0=/jenkins/stage/fmw_12.2.1.4.0_wls.jar
28186730_13.9.4.2.4=/jenkins/stage/p28186730_139424_Generic.zip
Passing the version and type flag resolved the issue.
create
--type wls
--version 12.2.1.4.0
--fromImage $OS_BUILD_NAME
--tag $WLS_BUILD_NAME
--patches 26877609_12.2.1.4.0,30597194_12.2.1.4.0,32097167_12.2.1.4.0,31960985_12.2.1.4.0,30628121_12.2.1.4.0,28294508_12.2.1.4.0
--jdkVersion=8u271
--type wls
is the default, so not necessary. --version 12.2.1.3.0
is the default version, so using 12.2.1.4.0 requires --version 12.2.1.4.0