Skip to content

Commit a1f6f4c

Browse files
authored
create and allow openshift users to access WDT logs directory when target is OpenShift (#363)
1 parent f27387b commit a1f6f4c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

imagetool/src/main/resources/ImageTool.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ IMG-0104=You must provide at least one of: a WDT installer file, a WDT model fil
106106
IMG-0105=Installer version cannot use keyword of 'none'.
107107
IMG-0106=Failed to get response from patches server, {0}, retrying [{1}/{2}]
108108
IMG-0107=Failed to download and save file {0} from {1}: {2}
109-
IMG-0108=Environment variable {0}=`{1}` is not an integer and will be ignored.
109+
IMG-0108=Environment variable {0}="{1}" is not an integer and will be ignored.
110110
IMG-0109=Invalid value found in {0}. {1} < {2}. Using default value: {3}.
111111
IMG-0110=Retries exhausted, unable to obtain patch information from Oracle
112112
IMG-0111=The directory specified with WLSIMG_BLDDIR must exist prior to running this tool: {0}

imagetool/src/main/resources/docker-files/run-wdt.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,14 @@ RUN test -d {{{wdt_home}}}/weblogic-deploy && rm -rf {{{wdt_home}}}/weblogic-dep
6868
&& rm ./*.cmd \
6969
{{#domainGroupAsUser}}
7070
&& chmod -R g=u {{{wdt_home}}}/weblogic-deploy/lib \
71+
&& mkdir {{{wdt_home}}}/weblogic-deploy/logs \
72+
&& chmod g=u {{{wdt_home}}}/weblogic-deploy/logs \
7173
{{/domainGroupAsUser}}
7274
&& ./validateModel.sh {{^strictValidation}}-method lax{{/strictValidation}} \
7375
-oracle_home {{{oracle_home}}} \
7476
-domain_type {{domainType}} \
7577
{{{wdtVariableFileArgument}}} {{{wdtModelFileArgument}}} {{{wdtArchiveFileArgument}}} \
76-
&& rm -rf {{{wdt_home}}}/weblogic-deploy/logs \
78+
&& rm {{{wdt_home}}}/weblogic-deploy/logs/* \
7779
&& shopt -s globstar && rm -f {{{wdt_home}}}/weblogic-deploy/lib/python/**/*.class
7880
{{/isWdtValidateEnabled}}
7981

0 commit comments

Comments
 (0)