File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
java/com/oracle/weblogic/imagetool/cli/menu Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,14 @@ public String wdtModelHome() {
4848 * @param tmpDir the tmp directory which is passed to docker as the build context directory
4949 * @throws IOException in case of error
5050 */
51- void handleWdtArgs (DockerfileOptions dockerfileOptions , String tmpDir ) throws IOException {
51+ public void handleWdtArgs (DockerfileOptions dockerfileOptions , String tmpDir ) throws IOException {
5252 logger .entering (tmpDir );
5353
54- dockerfileOptions .setWdtEnabled ()
55- .setWdtHome (wdtHome )
56- .setWdtModelHome (wdtModelHome );
54+ if (isWdtModelProvided ()) {
55+ dockerfileOptions .setWdtEnabled ();
56+ }
57+
58+ dockerfileOptions .setWdtHome (wdtHome ).setWdtModelHome (wdtModelHome );
5759
5860 if (wdtModelPath != null ) {
5961 List <String > modelList = addWdtFilesAsList (wdtModelPath , "model" , tmpDir );
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public boolean modelOnly() {
4444 * @throws IOException in case of error
4545 */
4646 @ Override
47- void handleWdtArgs (DockerfileOptions dockerfileOptions , String tmpDir ) throws IOException {
47+ public void handleWdtArgs (DockerfileOptions dockerfileOptions , String tmpDir ) throws IOException {
4848 logger .entering (tmpDir );
4949 if (!isUsingWdt ()) {
5050 logger .exiting ();
Original file line number Diff line number Diff line change @@ -54,7 +54,9 @@ COPY --from=wdt_build --chown={{userid}}:{{groupid}} {{wdt_home}} {{wdt_home}}/
5454 COPY --chown={ {userid} }:{ {groupid} } { {{.} }} { {{wdt_model_home} }}/
5555{ {/wdtVariables} }
5656
57- RUN chmod -R 640 { {{wdt_model_home} }}/*
57+ { {#isWdtEnabled} }
58+ RUN chmod -R 640 { {{wdt_model_home} }}/*
59+ { {/isWdtEnabled} }
5860
5961USER { {userid} }
6062
You can’t perform that action at this time.
0 commit comments