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
359
359
retVal .add ("DOMAIN_HOME=" + wdtDomainHome );
360
360
}
361
361
362
+ if (wdtJavaOptions != null ) {
363
+ retVal .add (Constants .BUILD_ARG );
364
+ retVal .add ("WLSDEPLOY_PROPERTIES=" + wdtJavaOptions );
365
+ }
366
+
362
367
if (wdtVariablesPath != null && Files .isRegularFile (wdtVariablesPath )) {
363
368
String wdtVariableFilename = wdtVariablesPath .getFileName ().toString ();
364
369
Files .copy (wdtVariablesPath , Paths .get (tmpDir , wdtVariableFilename ));
@@ -550,6 +555,12 @@ private void addWdtUrl(String wdtKey) throws Exception {
550
555
)
551
556
private String wdtDomainHome ;
552
557
558
+ @ Option (
559
+ names = {"--wdtJavaOptions" },
560
+ description = "Java command line options for WDT"
561
+ )
562
+ private String wdtJavaOptions ;
563
+
553
564
@ Unmatched
554
565
List <String > unmatchedOptions ;
555
566
}
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ RUN unzip -q {{{tmpDir}}}/$WLS_PKG -d {{{tmpDir}}} \
115
115
ARG MANAGED_SERVER_PORT
116
116
ARG SCRIPTS_DIR
117
117
ARG RCU_RUN_FLAG
118
+ ARG WLSDEPLOY_PROPERTIES
118
119
119
120
ENV WDT_PKG=${ WDT_PKG:-weblogic-deploy.zip} \
120
121
ADMIN_NAME=${ ADMIN_NAME:-admin-server} \
@@ -123,7 +124,7 @@ RUN unzip -q {{{tmpDir}}}/$WLS_PKG -d {{{tmpDir}}} \
123
124
JAVA_HOME={ {{java_home} }} \
124
125
MANAGED_SERVER_NAME=${ MANAGED_SERVER_NAME:-} \
125
126
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" \
127
128
DOMAIN_TYPE=${ DOMAIN_TYPE:-WLS} \
128
129
DOMAIN_PARENT=${ DOMAIN_PARENT:-/u01/domains} \
129
130
WDT_ARCHIVE=${ WDT_ARCHIVE:-} \
Original file line number Diff line number Diff line change 20
20
ARG MANAGED_SERVER_PORT
21
21
ARG SCRIPTS_DIR
22
22
ARG RCU_RUN_FLAG
23
+ ARG WLSDEPLOY_PROPERTIES
23
24
24
25
ENV WDT_PKG=${ WDT_PKG:-weblogic-deploy.zip} \
25
26
ADMIN_NAME=${ ADMIN_NAME:-admin-server} \
28
29
JAVA_HOME={ {{java_home} }} \
29
30
MANAGED_SERVER_NAME=${ MANAGED_SERVER_NAME:-} \
30
31
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" \
32
33
DOMAIN_TYPE=${ DOMAIN_TYPE:-WLS} \
33
34
DOMAIN_PARENT=${ DOMAIN_PARENT:-/u01/domains} \
34
35
WDT_ARCHIVE=${ WDT_ARCHIVE:-} \
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ Build WebLogic docker image
57
57
path to the WDT variables file for use with the WDT model
58
58
--wdtVersion=<wdtVersion>
59
59
WDT tool version to use
60
+ --wdtJavaOptions=<wdtJavaOptions>
61
+ Java command line options for WDT
60
62
```
61
63
62
64
## Usage scenarios
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ Update WebLogic docker image with selected patches
52
52
path to the WDT variables file for use with the WDT model
53
53
--wdtVersion=<wdtVersion>
54
54
WDT tool version to use
55
+ --wdtJavaOptions=<wdtJavaOptions>
56
+ Java command line options for WDT
55
57
```
56
58
57
59
## Usage scenarios
You can’t perform that action at this time.
0 commit comments