File tree Expand file tree Collapse file tree 5 files changed +19
-2
lines changed
java/com/oracle/weblogic/imagetool/cli/menu Expand file tree Collapse file tree 5 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -359,6 +359,11 @@ protected List<String> handleWdtArgsIfRequired(String tmpDir) throws IOException
359359 retVal .add ("DOMAIN_HOME=" + wdtDomainHome );
360360 }
361361
362+ if (wdtJavaOptions != null ) {
363+ retVal .add (Constants .BUILD_ARG );
364+ retVal .add ("WLSDEPLOY_PROPERTIES=" + wdtJavaOptions );
365+ }
366+
362367 if (wdtVariablesPath != null && Files .isRegularFile (wdtVariablesPath )) {
363368 String wdtVariableFilename = wdtVariablesPath .getFileName ().toString ();
364369 Files .copy (wdtVariablesPath , Paths .get (tmpDir , wdtVariableFilename ));
@@ -550,6 +555,12 @@ private void addWdtUrl(String wdtKey) throws Exception {
550555 )
551556 private String wdtDomainHome ;
552557
558+ @ Option (
559+ names = {"--wdtJavaOptions" },
560+ description = "Java command line options for WDT"
561+ )
562+ private String wdtJavaOptions ;
563+
553564 @ Unmatched
554565 List <String > unmatchedOptions ;
555566}
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ RUN unzip -q {{{tmpDir}}}/$WLS_PKG -d {{{tmpDir}}} \
115115 ARG MANAGED_SERVER_PORT
116116 ARG SCRIPTS_DIR
117117 ARG RCU_RUN_FLAG
118+ ARG WLSDEPLOY_PROPERTIES
118119
119120 ENV WDT_PKG=${ WDT_PKG:-weblogic-deploy.zip} \
120121 ADMIN_NAME=${ ADMIN_NAME:-admin-server} \
@@ -123,7 +124,7 @@ RUN unzip -q {{{tmpDir}}}/$WLS_PKG -d {{{tmpDir}}} \
123124 JAVA_HOME={ {{java_home} }} \
124125 MANAGED_SERVER_NAME=${ MANAGED_SERVER_NAME:-} \
125126 MANAGED_SERVER_PORT=${ MANAGED_SERVER_PORT:-8001} \
126- WLSDEPLOY_PROPERTIES="-Djava.security.egd=file:/dev/./urandom" \
127+ WLSDEPLOY_PROPERTIES="$ { WLSDEPLOY_PROPERTIES } -Djava.security.egd=file:/dev/./urandom" \
127128 DOMAIN_TYPE=${ DOMAIN_TYPE:-WLS} \
128129 DOMAIN_PARENT=${ DOMAIN_PARENT:-/u01/domains} \
129130 WDT_ARCHIVE=${ WDT_ARCHIVE:-} \
Original file line number Diff line number Diff line change 2020 ARG MANAGED_SERVER_PORT
2121 ARG SCRIPTS_DIR
2222 ARG RCU_RUN_FLAG
23+ ARG WLSDEPLOY_PROPERTIES
2324
2425 ENV WDT_PKG=${ WDT_PKG:-weblogic-deploy.zip} \
2526 ADMIN_NAME=${ ADMIN_NAME:-admin-server} \
2829 JAVA_HOME={ {{java_home} }} \
2930 MANAGED_SERVER_NAME=${ MANAGED_SERVER_NAME:-} \
3031 MANAGED_SERVER_PORT=${ MANAGED_SERVER_PORT:-8001} \
31- WLSDEPLOY_PROPERTIES="-Djava.security.egd=file:/dev/./urandom" \
32+ WLSDEPLOY_PROPERTIES="$ { WLSDEPLOY_PROPERTIES } -Djava.security.egd=file:/dev/./urandom" \
3233 DOMAIN_TYPE=${ DOMAIN_TYPE:-WLS} \
3334 DOMAIN_PARENT=${ DOMAIN_PARENT:-/u01/domains} \
3435 WDT_ARCHIVE=${ WDT_ARCHIVE:-} \
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ Build WebLogic docker image
5757 path to the WDT variables file for use with the WDT model
5858 --wdtVersion=<wdtVersion>
5959 WDT tool version to use
60+ --wdtJavaOptions=<wdtJavaOptions>
61+ Java command line options for WDT
6062```
6163
6264## Usage scenarios
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ Update WebLogic docker image with selected patches
5252 path to the WDT variables file for use with the WDT model
5353 --wdtVersion=<wdtVersion>
5454 WDT tool version to use
55+ --wdtJavaOptions=<wdtJavaOptions>
56+ Java command line options for WDT
5557```
5658
5759## Usage scenarios
You can’t perform that action at this time.
0 commit comments