Skip to content

Commit 861d318

Browse files
authored
default chown to oracle:root (#203)
* default chown to oracle:root instead of oracle:oracle to match published Docker images for WebLogic Server * correct upgrade image template COPY command for opatch installer
1 parent 8b38053 commit 861d318

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

imagetool/src/main/java/com/oracle/weblogic/imagetool/cli/menu/CommonOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ String getPassword() {
487487
names = {"--chown"},
488488
split = ":",
489489
description = "userid:groupid for JDK/Middleware installs and patches. Default: ${DEFAULT-VALUE}.",
490-
defaultValue = "oracle:oracle"
490+
defaultValue = "oracle:root"
491491
)
492492
private String[] osUserAndGroup;
493493

imagetool/src/main/java/com/oracle/weblogic/imagetool/util/DockerfileOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public DockerfileOptions(String buildId) {
8080
skipJavaInstall = false;
8181

8282
username = "oracle";
83-
groupname = "oracle";
83+
groupname = "root";
8484

8585
javaHome = DEFAULT_JAVA_HOME;
8686
oracleHome = DEFAULT_ORACLE_HOME;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ LABEL com.oracle.weblogic.imagetool.buildid="{{buildId}}"
100100
USER {{userid}}
101101

102102
{{#isOpatchPatchingEnabled}}
103-
COPY --chown=oracle:oracle {{{opatchFileName}}} {{{tempDir}}}/opatch/
103+
COPY --chown={{userid}}:{{groupid}} {{{opatchFileName}}} {{{tempDir}}}/opatch/
104104
RUN cd {{{tempDir}}}/opatch \
105105
&& {{{java_home}}}/bin/jar -xf {{{tempDir}}}/opatch/{{{opatchFileName}}} \
106106
&& {{{java_home}}}/bin/java -jar {{{tempDir}}}/opatch/6880880/opatch_generic.jar -silent -ignoreSysPrereqs -force -novalidation oracle_home={{{oracle_home}}} \

0 commit comments

Comments
 (0)