Skip to content

Commit 413defc

Browse files
authored
Fix installed files that do not have group read permissions in the OH (#204)
* correct upgrade image template COPY command for opatch installer * add group read permissions to oracle home files * reduce size of intermediate build images
1 parent 2b512c8 commit 413defc

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

imagetool/src/main/resources/docker-files/Create_Image.mustache

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,14 @@ USER {{userid}}
109109
{{{.}}}
110110
{{/beforeFmwInstall}}
111111

112+
RUN echo "INSTALLING MIDDLEWARE" \
112113
{{#installPackages}}
113-
RUN {{#isZip}}unzip -q {{{tempDir}}}/{{installerFilename}} "*.jar" -d {{{tempDir}}} &&{{/isZip}} \
114-
{{{java_home}}}/bin/java -Xmx1024m -jar {{{tempDir}}}/{{jarName}} -silent ORACLE_HOME={{{oracle_home}}} \
115-
-responseFile {{{tempDir}}}/{{responseFile.name}} -invPtrLoc {{inv_loc}}/oraInst.loc -ignoreSysPrereqs -force -novalidation
114+
&& echo "INSTALLING {{type}}" \
115+
&& {{#isZip}}unzip -q {{{tempDir}}}/{{installerFilename}} "*.jar" -d {{{tempDir}}} &&{{/isZip}} \
116+
{{{java_home}}}/bin/java -Xmx1024m -jar {{{tempDir}}}/{{jarName}} -silent ORACLE_HOME={{{oracle_home}}} \
117+
-responseFile {{{tempDir}}}/{{responseFile.name}} -invPtrLoc {{inv_loc}}/oraInst.loc -ignoreSysPrereqs -force -novalidation \
116118
{{/installPackages}}
119+
&& chmod -R g+r {{{oracle_home}}}
117120

118121
{{#isOpatchPatchingEnabled}}
119122
RUN cd {{{tempDir}}}/opatch \

imagetool/src/main/resources/docker-files/Rebase_Image.mustache

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,15 @@ LABEL com.oracle.weblogic.imagetool.buildid="{{buildId}}"
132132
{{{.}}}
133133
{{/beforeFmwInstall}}
134134

135+
RUN echo "INSTALLING MIDDLEWARE" \
135136
{{#installPackages}}
136-
RUN {{#isZip}}unzip -q {{{tempDir}}}/{{installerFilename}} "*.jar" -d {{{tempDir}}} &&{{/isZip}} \
137-
{{{java_home}}}/bin/java -Xmx1024m -jar {{{tempDir}}}/{{jarName}} -silent ORACLE_HOME={{{oracle_home}}} \
138-
-responseFile {{{tempDir}}}/{{responseFile.name}} -invPtrLoc {{inv_loc}}/oraInst.loc -ignoreSysPrereqs -force -novalidation
137+
&& echo "RUNNING {{type}} INSTALLER" \
138+
&& {{#isZip}}unzip -q {{{tempDir}}}/{{installerFilename}} "*.jar" -d {{{tempDir}}} &&{{/isZip}} \
139+
{{{java_home}}}/bin/java -Xmx1024m -jar {{{tempDir}}}/{{jarName}} -silent ORACLE_HOME={{{oracle_home}}} \
140+
-responseFile {{{tempDir}}}/{{responseFile.name}} -invPtrLoc {{inv_loc}}/oraInst.loc -ignoreSysPrereqs -force -novalidation \
139141
{{/installPackages}}
142+
&& chmod -R g+r {{{oracle_home}}}
143+
140144
{{#isOpatchPatchingEnabled}}
141145
RUN cd {{{tempDir}}}/opatch \
142146
&& {{{java_home}}}/bin/jar -xf {{{tempDir}}}/opatch/{{{opatchFileName}}} \

0 commit comments

Comments
 (0)