oracle/weblogic-image-tool

using 1.92, rebase doesn't set DOMAIN_HOME

wangfeng791012 opened this issue · 14 comments

HI,

When using imagetool rebase to create an updated image, faced following issue.

bash-4.2$ imagetool -V
imagetool:1.9.2

bash-4.2$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wls 14.1.1.0.0 f8d78c87677b 32 minutes ago 1.34GB
wls 14.1.1.0.0new2 84c97a5fd9d8 2 days ago 1.35GB
wls 14.1.1.0.0new dbe458f0e79f 2 days ago 1.35GB
oracle/weblogic 14.1.1.0-generic-11 1fea3b926a4d 7 weeks ago 1.36GB
d7d8037096d4 7 weeks ago 3.22GB
oracle/jdk 11 14514db98e2f 7 weeks ago 458MB
2ba9bc4468b7 7 weeks ago 616MB
oraclelinux 7-slim 7442ca158991 7 weeks ago 120MB

bash-4.2$ imagetool cache listItems
Cache contents
cache.dir=/refresh/home/cache
wls_14.1.1.0.0=/refresh/home/Downloads/fmw_14.1.1.0.0_wls_Disk1_1of1.zip
wdt_1.9.2=/refresh/home/Downloads/weblogic-deploy.zip
31532352_14.1.1.0.0=/refresh/home/Downloads/p31532352_141100_Generic.zip
jdk_11u7=/refresh/home/Downloads/jdk-11.0.7_linux-x64_bin.tar.gz
jdk_8u261=/refresh/home/Downloads/p31311322_180261_Linux-x86-64.zip
28186730_13.9.4.2.4=/refresh/home/Downloads/p28186730_139424_Generic.zip

bash-4.2$ imagetool rebase --tag wls:14.1.1.0.0_new3 --sourceImage wls:14.1.1.0.0 --jdkVersion=11u7
[INFO ] Image Tool build ID: c7a955f9-f9de-4146-96f7-36dd504214c8
[INFO ] Temporary directory used for docker build context: /refresh/home/wlsimgbuilder_temp7475164155888937775
[SEVERE ] Response code: -1, message: No Domain Home in source image. Add DOMAIN_HOME environment variable to source image and try again.

Did i miss some steps?
Any points are highly appreciated!
Thanks in advance!

Regards,
Feng Wang

@wangfeng791012 Rebase is "looking" for DOMAIN_HOME in the environment of the source image "--sourceImage wls:14.1.1.0.0". Is there a domain in that image? What tool created that image? Does it have a DOMAIN_HOME environment variable docker inspect --format='{{.Config.Env}}' wls:14.1.1.0.0 ?

@ddsharpe thanks for your reply.

What tool created that image?
I used imagetool to create that image.
imagetool create --tag wls:14.1.1.0.0 --version 14.1.1.0.0 --httpsProxyUrl=www-proxy-tyo.jp.oracle.com:80
Does the imagetool create a domain automaticly?

Even i used to rebase the docker image created by docker command .
There is a domain in image oracle/weblogic:14.1.1.0-generic-11.
Also faced same issue.

bash-4.2$ imagetool rebase --tag wls:14.1.1.0.0_new3 --sourceImage oracle/weblogic:14.1.1.0-generic-11 --jdkVersion=11u7
[INFO ] Image Tool build ID: 086fa34c-0431-4718-a6b8-811e4db72353
[INFO ] Temporary directory used for docker build context: /refresh/home/wlsimgbuilder_temp6560926114565691110
[SEVERE ] Response code: -1, message: No Domain Home in source image. Add DOMAIN_HOME environment variable to source image and try again.


sh buildDockerImage.sh -v 14.1.1.0 -g

bash-4.2$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wls 14.1.1.0.0 f8d78c87677b 38 hours ago 1.34GB * imagetool command
wls 14.1.1.0.0new2 84c97a5fd9d8 3 days ago 1.35GB * imagetool command
wls 14.1.1.0.0new dbe458f0e79f 3 days ago 1.35GB * imagetool command
oracle/weblogic 14.1.1.0-generic-11 1fea3b926a4d 7 weeks ago 1.36GB * docker command
d7d8037096d4 7 weeks ago 3.22GB
oracle/jdk 11 14514db98e2f 7 weeks ago 458MB * docker command
2ba9bc4468b7 7 weeks ago 616MB
oraclelinux 7-slim 7442ca158991 7 weeks ago 120MB * docker command

bash-4.2$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8ce00e2b9753 oracle/weblogic:14.1.1.0-generic-11 "/u01/oracle/createA\u2026" 3 days ago Up 3 days (healthy) 0.0.0.0:7001->7001/tcp pedantic_shirley
12526afec05f oracle/weblogic:14.1.1.0-generic-11 "/u01/oracle/createA\u2026" 3 days ago Exited (137) 3 days ago infallible_banzai
50b971019f3c oracle/weblogic:14.1.1.0-generic-11 "/u01/oracle/createA\u2026" 3 days ago Created ecstatic_meitner
f31b770ee32b oracle/weblogic:14.1.1.0-generic-11 "/u01/oracle/createA\u2026" 7 weeks ago Exited (137) 3 days ago goofy_robinson
bash-4.2$ docker exec -it 8ce00e2b9753 /bin/bash
[8ce00e2b9753 ~]$ ls
cfgtoollogs create-wls-domain.py inventory oraInst.loc root.sh
coherence domain-registry.xml OPatch oui user_projects
createAndStartEmptyDomain.sh get_healthcheck_url.sh oracle_common properties wlserver
[8ce00e2b9753 ~]$ cd user_projects/
[8ce00e2b9753 user_projects]$ ls
domains
[8ce00e2b9753 user_projects]$ cd domains/
[8ce00e2b9753 domains]$ ls
base_domain

docker inspect --format='{{.Config.Env}}' wls:14.1.1.0.0
[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/u01/jdk/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle ORACLE_HOME=/u01/oracle JAVA_HOME=/u01/jdk LC_ALL=en_US.UTF-8]

docker inspect --format='{{.Config.Env}}' oracle/weblogic:14.1.1.0-generic-11
[PATH=/usr/java/jdk-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/java/jdk-11/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin HTTP_PROXY=http://www-proxy-tyo.jp.oracle.com:80 HTTPS_PROXY=http://www-proxy-tyo.jp.oracle.com:80 LANG=en_US.UTF-8 JAVA_VERSION=11.0.7 JAVA_HOME=/usr/java/jdk-11 ORACLE_HOME=/u01/oracle USER_MEM_ARGS=-Djava.security.egd=file:/dev/./urandom SCRIPT_FILE=/u01/oracle/createAndStartEmptyDomain.sh HEALTH_SCRIPT_FILE=/u01/oracle/get_healthcheck_url.sh DOMAIN_NAME=base_domain ADMIN_LISTEN_PORT=7001 ADMIN_NAME=AdminServer ADMINISTRATION_PORT_ENABLED=true ADMINISTRATION_PORT=9002]

As you see, there have no DOMAIN_HOME environment in the two images.
Any points are highly appreciated!
Thanks in advance!

Regards,
Feng Wang

Currently, the REBASE tool does not work with images where the environment variable DOMAIN_HOME is not defined. A quick workaround is to manually add the environment variable to the source image before running imagetool rebase.
Dockerfile

FROM oracle/weblogic:14.1.1.0-generic-11
ENV DOMAIN_HOME={path to domain in source image}

docker build -t newImage .

@ddsharpe Thanks for your reply.
Will try later, if any result, will let you know.

Sorry for i'm a imagetool's newbie.
When I run "imagetool rebase" command, I found that docker image created by imagetool not automatically create a domain.
So I run following command:

bash-4.2$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wls 14.1.1.0.0 f8d78c87677b 7 days ago 1.34GB
wls 14.1.1.0.0new2 84c97a5fd9d8 10 days ago 1.35GB
wls 14.1.1.0.0new dbe458f0e79f 10 days ago 1.35GB
...

All of above is created by imagetool .

bash-4.2$ docker run --rm -it wls:14.1.1.0.0new2 /bin/bash
[a7cee121f6d6 oracle]$ pwd
/u01/oracle
[a7cee121f6d6 oracle]$ ls
cfgtoollogs coherence inventory OPatch oracle_common oraInst.loc oraInventory oui wlserver
[a7cee121f6d6 oracle]$ cd oracle_common/common/bin
[a7cee121f6d6 bin]$ ls
clonedunpack_internal.sh config.sh prepareCustomProvider.sh unpack_internal.sh
clonedunpack.sh configWallet_internal.sh qs_config_internal.sh unpack.sh
commBaseEnv.sh configWallet.sh qs_config.sh update_jdk_env.sh
commEnv.sh fmwconfig_common.sh reconfig_internal.sh wlst_internal.sh
commExtEnv.sh getproperty.sh reconfig.sh wlst.sh
config_builder_internal.sh pack_internal.sh setHomeDirs.sh
config_builder.sh pack.sh setWlstEnv_internal.sh
config_internal.sh prepareCustomProvider_internal.sh setWlstEnv.sh

[a7cee121f6d6 bin]$ ./config.sh -mode=console -log=config_0810_5.log -log_priority=debug

2020-08-10 11:52:26,905 FINE [21] com.oracle.cie.domain.template.TemplateXMLInspection - During template inspection, entry in template jar was found null. Inspection was performed on File : security/keystore/keystore.xml from Template Jar : /u01/oracle/wlserver/common/templates/wls/wls_schema_reconfig_12.2.1.3.0.jar
2020-08-10 11:52:27,025 SEVERE [13] com.oracle.cie.wizard.internal.engine.WizardControllerEngine - Wizard error cause
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:208)
at java.desktop/java.awt.Window.(Window.java:548)
at java.desktop/java.awt.Frame.(Frame.java:423)
at java.desktop/java.awt.Frame.(Frame.java:388)
at java.desktop/javax.swing.JFrame.(JFrame.java:180)
at com.oracle.cie.wizard.internal.cont.GUIContext.initGUI(GUIContext.java:1576)
at com.oracle.cie.wizard.internal.cont.GUIContext.setupGUI(GUIContext.java:1222)
at com.oracle.cie.wizard.internal.cont.GUITaskContainer$MethodRunner.run(GUITaskContainer.java:212)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2020-08-10 11:52:27,030 WARNING [13] com.oracle.cie.wizard.internal.engine.EmbeddedEngine - Duplicate action cause encountered: java.lang.UnsatisfiedLinkError: /u01/jdk/lib/libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory
2020-08-10 11:52:27,030 WARNING [13] com.oracle.cie.wizard.internal.engine.EmbeddedEngine - Given state 'ERROR' does not follow current 'ERROR'
2020-08-10 11:52:27,030 SEVERE [13] com.oracle.cie.wizard.internal.engine.WizardControllerEngine - Wizard error cause
java.lang.UnsatisfiedLinkError: /u01/jdk/lib/libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2430)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2487)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2684)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2638)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:827)
at java.base/java.lang.System.loadLibrary(System.java:1871)
at java.desktop/sun.font.FontManagerNativeLibrary$1.run(FontManagerNativeLibrary.java:57)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/sun.font.FontManagerNativeLibrary.(FontManagerNativeLibrary.java:32)
at java.desktop/sun.font.SunFontManager$1.run(SunFontManager.java:270)

Even I set the DISPLAY environment.

[a7cee121f6d6 bin]$ env |grep DISPLAY
DISPLAY=localhost:2

Any points are highly appreciated!
Thanks in advance!

Regards,
Feng Wang

@wangfeng791012 The REBASE command is for moving a domain from one image to another (or a new one). For REBASE, the domain must already exist. To create a domain, you need to use either CREATE or UPDATE. For UPDATE, the Oracle Home must already exist, and then UPDATE will create a layer on top of that existing image with WebLogic Server that will contain a new domain (or can be used to update an existing domain). CREATE starts from the base operating system, installs Java, Oracle WebLogic Server, and optionally creates a WebLogic Server domain.

@ddsharpe Thanks for your reply.
Could you kindly give me some sample for these:

To create a domain, you need to use either CREATE or UPDATE.

@wangfeng791012
While the image tool will download patches and PSUs for you, it does not yet download installers. Until that point, you must download the WebLogic Server and Java Development Kit installer manually, and let the image tool know where to find them using the imagetool cache addInstaller command.

# Tell the Image Tool where to find the JDK installer
${WIT_HOME}/bin/imagetool.sh cache addInstaller --path /path/to/intaller/jdk-8u231-linux-x64.tar.gz --type jdk --version 8u231 

# Tell the Image Tool where to find the WebLogic Server installer
# The installer filename may be slightly different depending on which version of the 12.2.1.4.0 installer that you downloaded, slim or generic
${WIT_HOME}/bin/imagetool.sh cache addInstaller --path /path/to/intaller/fmw_12.2.1.4.0_wls_Disk1_1of1.zip --type wls --version 12.2.1.4.0

# Tell the Image Tool where to find the WebLogic Deploy Tooling installer
${WIT_HOME}/bin/imagetool.sh cache addInstaller --path /path/to/intaller/weblogic-deploy.zip --type wdt --version latest

# Run the CREATE function to build the Docker image
${WIT_HOME}/bin/imagetool.sh create --tag your/repo/todo:1 --version 12.2.1.4.0 --jdkVersion 8u231 --wdtModel ./model.yaml --wdtArchive ./archive.zip --wdtVariables ./model.properties 

@ddsharpe Thanks a lot for providing the samples.

I've used two source image to run the rebase command, but one failed with "[SEVERE ] Response code: -1, message: docker command failed with error: COPY failed: stat /home/docker/overlay2/aa17fc6e8366f61c6c42202adcdbb00b48e4b5de1d6c4dbe2c262c08331255cb/merged/u01/oracle/user_projects/domains/base_domain: no such file or directory"
one run successful, but i did not know how to run the images from remote machine.

[root@frmrep12c Downloads]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wls 14.1.1.0.0new5 8df57f8b0da7 3 hours ago 1.34GB *** created by imagetool
wls 14.1.1.0.0new3 d3273adbeb3d 7 hours ago 1.34GB *** created by imagetool
wls 14.1.1.0.0new4 f16f15d30213 7 hours ago 1.34GB *** created by imagetool
oracle/weblogic 14.1.1.0-generic-11-new 61c93f950bc8 5 days ago 1.36GB *** created by docker

/refresh/home/docker/docker-images/OracleWebLogic/dockerfiles/14.1.1.0/Dockerfile.generic-11

Domain and Server environment variables

------------------------------------------------------------

wf add start

ENV DOMAIN_HOME=/u01/oracle/user_projects/domains/base_domain

wf add end

ENV DOMAIN_NAME="${DOMAIN_NAME:-base_domain}"
ADMIN_LISTEN_PORT="${ADMIN_LISTEN_PORT:-7001}"
ADMIN_NAME="${ADMIN_NAME:-AdminServer}"
ADMINISTRATION_PORT_ENABLED="${ADMINISTRATION_PORT_ENABLED:-true}"
ADMINISTRATION_PORT="${ADMINISTRATION_PORT:-9002}"

/refresh/home/docker/docker-images/OracleWebLogic/dockerfiles/buildDockerImage.sh

WebLogic Image Name

wf mod start

#IMAGE_NAME="oracle/weblogic:$VERSION-$DIST"
IMAGE_NAME="oracle/weblogic:$VERSION-$DIST-new"

wf mod start

[root@frmrep12c 14.1.1.0]# sh buildDockerImage.sh -v 14.1.1.0 -g -j 11
...

[root@frmrep12c 14.1.1.0]# docker inspect --format='{{.Config.Env}}' oracle/weblogic:14.1.1.0-generic-11-new
[PATH=/usr/java/jdk-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/java/jdk-11/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin HTTP_PROXY=http://www-proxy-tyo.jp.oracle.com:80 HTTPS_PROXY=http://www-proxy-tyo.jp.oracle.com:80 LANG=en_US.UTF-8 JAVA_VERSION=11.0.7 JAVA_HOME=/usr/java/jdk-11 ORACLE_HOME=/u01/oracle USER_MEM_ARGS=-Djava.security.egd=file:/dev/./urandom SCRIPT_FILE=/u01/oracle/createAndStartEmptyDomain.sh HEALTH_SCRIPT_FILE=/u01/oracle/get_healthcheck_url.sh DOMAIN_HOME=/u01/oracle/user_projects/domains/base_domain DOMAIN_NAME=base_domain ADMIN_LISTEN_PORT=7001 ADMIN_NAME=AdminServer ADMINISTRATION_PORT_ENABLED=true ADMINISTRATION_PORT=9002]

we can see the foollowing DOMAIN_HOME was set.

DOMAIN_HOME=/u01/oracle/user_projects/domains/base_domain

[root@frmrep12c bin]# docker run -d -p 8001:8001 -v /refresh/home/docker/docker-images/OracleWebLogic/dockerfiles/14.1.1.0/propertiesnew:/u01/oracle/properties -e ADMINISTRATION_PORT_ENABLED=false -e DOMAIN_NAME=base_domain oracle/weblogic:14.1.1.0-generic-11-new

[root@frmrep12c bin]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
99dfa7f91ee8 oracle/weblogic:14.1.1.0-generic-11-new "/u01/oracle/createA\u2026" 7 hours ago Up 7 hours (healthy) 0.0.0.0:8001->8001/tcp funny_morse

[root@frmrep12c bin]# imagetool rebase --tag wls:14.1.1.0.0_new3 --sourceImage oracle/weblogic:14.1.1.0-generic-11-new --jdkVersion=11u7 --version 14.1.1.0.0 --httpsProxyUrl=www-proxy-tyo.jp.oracle.com:80
[INFO ] Image Tool build ID: c4e4c62a-40f9-479f-86ec-2c394af7b795
[INFO ] Temporary directory used for docker build context: /root/wlsimgbuilder_temp6520384500122571627
[INFO ] Copying /refresh/home/Downloads/jdk-11.0.7_linux-x64_bin.tar.gz to build context folder.
[INFO ] Using middleware installers (wls) version 14.1.1.0.0
[INFO ] Copying /refresh/home/Downloads/fmw_14.1.1.0.0_wls_Disk1_1of1.zip to build context folder.
[INFO ] docker cmd = docker build --no-cache --force-rm --tag wls:14.1.1.0.0_new3 --build-arg https_proxy=www-proxy-tyo.jp.oracle.com:80 /root/wlsimgbuilder_temp6520384500122571627
Sending build context to Docker daemon 1.112GB

Step 1/38 : FROM oracle/weblogic:14.1.1.0-generic-11-new as SOURCE_IMAGE
---> 61c93f950bc8
Step 2/38 : FROM oraclelinux:7-slim as OS_UPDATE
---> 7442ca158991
Step 3/38 : ARG ADMIN_PORT
---> Running in c23445b21c72
Removing intermediate container c23445b21c72
---> be99c30e4fb5
Step 4/38 : ARG MANAGED_SERVER_PORT
---> Running in 8d4e0b87d0b2
Removing intermediate container 8d4e0b87d0b2
---> 72aea4443d4c
Step 5/38 : ENV ADMIN_PORT=${ADMIN_PORT} MANAGED_SERVER_PORT=${MANAGED_SERVER_PORT} DOMAIN_HOME=/u01/oracle/user_projects/domains/base_domain
---> Running in e251fee36b34
Removing intermediate container e251fee36b34
---> e29946795a59
Step 6/38 : LABEL com.oracle.weblogic.imagetool.buildid="c4e4c62a-40f9-479f-86ec-2c394af7b795"
---> Running in f7bb797e4bb6
Removing intermediate container f7bb797e4bb6
---> fd41c57e7761
Step 7/38 : USER root
---> Running in ecd1b091a0c7
Removing intermediate container ecd1b091a0c7
---> 1305c7a43b84
Step 8/38 : RUN yum -y --downloaddir=/tmp/imagetool install gzip tar unzip libaio && yum -y --downloaddir=/tmp/imagetool clean all && rm -rf /var/cache/yum/* && rm -rf /tmp/imagetool
---> Running in 61a0e5169216
Loaded plugins: ovl
Resolving Dependencies
--> Running transaction check
---> Package gzip.x86_64 0:1.5-10.el7 will be installed
---> Package libaio.x86_64 0:0.3.109-13.el7 will be installed
---> Package tar.x86_64 2:1.26-35.el7 will be installed
---> Package unzip.x86_64 0:6.0-21.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size

Installing:
gzip x86_64 1.5-10.el7 ol7_latest 129 k
libaio x86_64 0.3.109-13.el7 ol7_latest 24 k
tar x86_64 2:1.26-35.el7 ol7_latest 845 k
unzip x86_64 6.0-21.el7 ol7_latest 171 k

Transaction Summary

Install 4 Packages

Total download size: 1.1 M
Installed size: 3.3 M
Downloading packages:

Total 511 kB/s | 1.1 MB 00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:tar-1.26-35.el7.x86_64 1/4
Installing : unzip-6.0-21.el7.x86_64 2/4
Installing : libaio-0.3.109-13.el7.x86_64 3/4
Installing : gzip-1.5-10.el7.x86_64 4/4
Verifying : gzip-1.5-10.el7.x86_64 1/4
Verifying : libaio-0.3.109-13.el7.x86_64 2/4
Verifying : unzip-6.0-21.el7.x86_64 3/4
Verifying : 2:tar-1.26-35.el7.x86_64 4/4

Installed:
gzip.x86_64 0:1.5-10.el7 libaio.x86_64 0:0.3.109-13.el7
tar.x86_64 2:1.26-35.el7 unzip.x86_64 0:6.0-21.el7

Complete!
Loaded plugins: ovl
Cleaning repos: ol7_latest
Removing intermediate container 61a0e5169216
---> 4e947bc8b919
Step 9/38 : RUN if [ -z "$(getent group oracle)" ]; then hash groupadd &> /dev/null && groupadd oracle || exit -1 ; fi && if [ -z "$(getent passwd oracle)" ]; then hash useradd &> /dev/null && useradd -g oracle oracle || exit -1; fi && mkdir /u01 && chown oracle:oracle /u01 && chmod 775 /u01
---> Running in f70ff7228261
Removing intermediate container f70ff7228261
---> 3e84cd337f9c
Step 10/38 : FROM OS_UPDATE as JDK_BUILD
---> 3e84cd337f9c
Step 11/38 : LABEL com.oracle.weblogic.imagetool.buildid="c4e4c62a-40f9-479f-86ec-2c394af7b795"
---> Running in 96a2a6865abc
Removing intermediate container 96a2a6865abc
---> 2fd88cbb8f63
Step 12/38 : ENV JAVA_HOME=/u01/jdk
---> Running in cc0d8ee8a537
Removing intermediate container cc0d8ee8a537
---> 46eb9d61a759
Step 13/38 : COPY --chown=oracle:oracle jdk-11.0.7_linux-x64_bin.tar.gz /tmp/imagetool/
---> effd52bf8a9c
Step 14/38 : USER oracle
---> Running in e753c127e8e6
Removing intermediate container e753c127e8e6
---> 1b624c2f3c81
Step 15/38 : RUN tar xzf /tmp/imagetool/jdk-11.0.7_linux-x64_bin.tar.gz -C /u01 && mv /u01/jdk* /u01/jdk && rm -rf /tmp/imagetool && rm -f /u01/jdk/javafx-src.zip /u01/jdk/src.zip
---> Running in 4fd44d33758d
Removing intermediate container 4fd44d33758d
---> 4ef48806968a
Step 16/38 : FROM OS_UPDATE as WLS_BUILD
---> 3e84cd337f9c
Step 17/38 : LABEL com.oracle.weblogic.imagetool.buildid="c4e4c62a-40f9-479f-86ec-2c394af7b795"
---> Running in f109ad4508a1
Removing intermediate container f109ad4508a1
---> 02e754859d05
Step 18/38 : ENV JAVA_HOME=/u01/jdk ORACLE_HOME=/u01/oracle OPATCH_NO_FUSER=true
---> Running in bdc62c99154b
Removing intermediate container bdc62c99154b
---> 891a36515d3e
Step 19/38 : RUN mkdir -p /u01/oracle && mkdir -p /u01/oracle/oraInventory && chown oracle:oracle /u01/oracle/oraInventory && chown oracle:oracle /u01/oracle
---> Running in 7cd8f93a3609
Removing intermediate container 7cd8f93a3609
---> bfc62bb98507
Step 20/38 : COPY --from=JDK_BUILD --chown=oracle:oracle /u01/jdk /u01/jdk/
---> 82193d7a1ccd
Step 21/38 : COPY --chown=oracle:oracle fmw_14.1.1.0.0_wls_Disk1_1of1.zip wls.rsp /tmp/imagetool/
---> 573ea32def9a
Step 22/38 : COPY --chown=oracle:oracle oraInst.loc /u01/oracle/
---> 5a979240e083
Step 23/38 : USER oracle
---> Running in bb0a54d9043f
Removing intermediate container bb0a54d9043f
---> 1a2fdbed1f5c
Step 24/38 : RUN unzip -q /tmp/imagetool/fmw_14.1.1.0.0_wls_Disk1_1of1.zip "*.jar" -d /tmp/imagetool && /u01/jdk/bin/java -Xmx1024m -jar /tmp/imagetool/fmw_14.1.1.0.0_wls.jar -silent ORACLE_HOME=/u01/oracle -responseFile /tmp/imagetool/wls.rsp -invPtrLoc /u01/oracle/oraInst.loc -ignoreSysPrereqs -force -novalidation
---> Running in 258db345f117
Launcher log file is /tmp/OraInstall2020-08-16_01-17-36AM/launcher2020-08-16_01-17-36AM.log.
Extracting the installer . . . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz. Actual 2393.845 MHz Passed
Checking swap space: must be greater than 512 MB. Actual 16383 MB Passed
Checking temp space: must be greater than 300 MB. Actual 79079 MB Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2020-08-16_01-17-36AM
Log: /tmp/OraInstall2020-08-16_01-17-36AM/install2020-08-16_01-17-36AM.log
Setting ORACLE_HOME...
Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Validations are disabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100

The installation of Oracle Fusion Middleware 14.1.1 WebLogic Server and Coherence 14.1.1.0.0 completed successfully.
Logs successfully copied to /u01/oracle/oraInventory/logs.
Removing intermediate container 258db345f117
---> 03b6bcdb09d9
Step 25/38 : FROM OS_UPDATE as FINAL_BUILD
---> 3e84cd337f9c
Step 26/38 : ARG ADMIN_NAME
---> Running in 12f877f7b182
Removing intermediate container 12f877f7b182
---> ecb601da9983
Step 27/38 : ARG ADMIN_HOST
---> Running in 74524d0dd9df
Removing intermediate container 74524d0dd9df
---> 698e8bb44ea9
Step 28/38 : ARG ADMIN_PORT
---> Running in 745c15a49810
Removing intermediate container 745c15a49810
---> 0127fb1175f9
Step 29/38 : ARG MANAGED_SERVER_PORT
---> Running in d154adfaf8c9
Removing intermediate container d154adfaf8c9
---> 87b52ea230b0
Step 30/38 : ENV ORACLE_HOME=/u01/oracle JAVA_HOME=/u01/jdk LC_ALL=${DEFAULT_LOCALE:-en_US.UTF-8} PATH=${PATH}:/u01/jdk/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle
---> Running in 588b275805d8
Removing intermediate container 588b275805d8
---> c2918b9aaf8e
Step 31/38 : LABEL com.oracle.weblogic.imagetool.buildid="c4e4c62a-40f9-479f-86ec-2c394af7b795"
---> Running in da0ed6bcc8ad
Removing intermediate container da0ed6bcc8ad
---> dfddb2cd125e
Step 32/38 : COPY --from=JDK_BUILD --chown=oracle:oracle /u01/jdk /u01/jdk/
---> 89687f717e45
Step 33/38 : COPY --from=WLS_BUILD --chown=oracle:oracle /u01/oracle /u01/oracle/
---> d8260366bf2a
Step 34/38 : USER oracle
---> Running in 3b0f12d3ccbf
Removing intermediate container 3b0f12d3ccbf
---> 1e35b0729d48
Step 35/38 : RUN mkdir -p /u01/oracle/user_projects/domains/base_domain
---> Running in ad6aa688c0a5
Removing intermediate container ad6aa688c0a5
---> 0fb0f174215f
Step 36/38 : COPY --from=SOURCE_IMAGE --chown=oracle:oracle /u01/oracle/user_projects/domains/base_domain /u01/oracle/user_projects/domains/base_domain/
[SEVERE ] Response code: -1, message: docker command failed with error: COPY failed: stat /home/docker/overlay2/aa17fc6e8366f61c6c42202adcdbb00b48e4b5de1d6c4dbe2c262c08331255cb/merged/u01/oracle/user_projects/domains/base_domain: no such file or directory

[root@frmrep12c bin]# imagetool.sh create --tag wls:14.1.1.0.0new4 --version 14.1.1.0.0 --jdkVersion 11u7 --wdtModel /refresh/home/Downloads/demo/create_domain.yaml --wdtArchive /refresh/home/Downloads/demo/archive.zip --wdtVersion=1.9.2 --httpsProxyUrl=www-proxy-tyo.jp.oracle.com:80
[INFO ] Image Tool build ID: 98049880-e1e4-4c91-85ce-aeff116cf2ae
[INFO ] Temporary directory used for docker build context: /root/wlsimgbuilder_temp1764709091761588431
[INFO ] Copying /refresh/home/Downloads/jdk-11.0.7_linux-x64_bin.tar.gz to build context folder.
[INFO ] Using middleware installers (wls) version 14.1.1.0.0
[INFO ] Copying /refresh/home/Downloads/fmw_14.1.1.0.0_wls_Disk1_1of1.zip to build context folder.
[INFO ] Copying /refresh/home/Downloads/weblogic-deploy.zip to build context folder.
[INFO ] docker cmd = docker build --no-cache --force-rm --tag wls:14.1.1.0.0new4 --build-arg https_proxy=www-proxy-tyo.jp.oracle.com:80 /root/wlsimgbuilder_temp1764709091761588431
Sending build context to Docker daemon 1.113GB

Step 1/45 : FROM oraclelinux:7-slim as OS_UPDATE
---> 7442ca158991
Step 2/45 : LABEL com.oracle.weblogic.imagetool.buildid="98049880-e1e4-4c91-85ce-aeff116cf2ae"
---> Running in df548e206f61
Removing intermediate container df548e206f61
---> 84d91eab079b
Step 3/45 : USER root
---> Running in 828ed3dd88fa
Removing intermediate container 828ed3dd88fa
---> 3e7a96b2ca91
Step 4/45 : RUN yum -y --downloaddir=/tmp/imagetool install gzip tar unzip libaio && yum -y --downloaddir=/tmp/imagetool clean all && rm -rf /var/cache/yum/* && rm -rf /tmp/imagetool
---> Running in 8da5234ea0a3
Loaded plugins: ovl
Resolving Dependencies
--> Running transaction check
---> Package gzip.x86_64 0:1.5-10.el7 will be installed
---> Package libaio.x86_64 0:0.3.109-13.el7 will be installed
---> Package tar.x86_64 2:1.26-35.el7 will be installed
---> Package unzip.x86_64 0:6.0-21.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size

Installing:
gzip x86_64 1.5-10.el7 ol7_latest 129 k
libaio x86_64 0.3.109-13.el7 ol7_latest 24 k
tar x86_64 2:1.26-35.el7 ol7_latest 845 k
unzip x86_64 6.0-21.el7 ol7_latest 171 k

Transaction Summary

Install 4 Packages

Total download size: 1.1 M
Installed size: 3.3 M
Downloading packages:

Total 530 kB/s | 1.1 MB 00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:tar-1.26-35.el7.x86_64 1/4
Installing : unzip-6.0-21.el7.x86_64 2/4
Installing : libaio-0.3.109-13.el7.x86_64 3/4
Installing : gzip-1.5-10.el7.x86_64 4/4
Verifying : gzip-1.5-10.el7.x86_64 1/4
Verifying : libaio-0.3.109-13.el7.x86_64 2/4
Verifying : unzip-6.0-21.el7.x86_64 3/4
Verifying : 2:tar-1.26-35.el7.x86_64 4/4

Installed:
gzip.x86_64 0:1.5-10.el7 libaio.x86_64 0:0.3.109-13.el7
tar.x86_64 2:1.26-35.el7 unzip.x86_64 0:6.0-21.el7

Complete!
Loaded plugins: ovl
Cleaning repos: ol7_latest
Removing intermediate container 8da5234ea0a3
---> cde2f8b910c0
Step 5/45 : RUN if [ -z "$(getent group oracle)" ]; then hash groupadd &> /dev/null && groupadd oracle || exit -1 ; fi && if [ -z "$(getent passwd oracle)" ]; then hash useradd &> /dev/null && useradd -g oracle oracle || exit -1; fi && mkdir /u01 && chown oracle:oracle /u01 && chmod 775 /u01
---> Running in 9da043ca23c3
Removing intermediate container 9da043ca23c3
---> da56567539e5
Step 6/45 : FROM OS_UPDATE as JDK_BUILD
---> da56567539e5
Step 7/45 : LABEL com.oracle.weblogic.imagetool.buildid="98049880-e1e4-4c91-85ce-aeff116cf2ae"
---> Running in 575845d83b52
Removing intermediate container 575845d83b52
---> 38a3bf193a9c
Step 8/45 : ENV JAVA_HOME=/u01/jdk
---> Running in b4c4488653eb
Removing intermediate container b4c4488653eb
---> 98145fc341f4
Step 9/45 : COPY --chown=oracle:oracle jdk-11.0.7_linux-x64_bin.tar.gz /tmp/imagetool/
---> 8edc631e9587
Step 10/45 : USER oracle
---> Running in 96b1525c5436
Removing intermediate container 96b1525c5436
---> e5561a41a84d
Step 11/45 : RUN tar xzf /tmp/imagetool/jdk-11.0.7_linux-x64_bin.tar.gz -C /u01 && $(test -d /u01/jdk* && mv /u01/jdk* /u01/jdk || mv /u01/graal* /u01/jdk) && rm -rf /tmp/imagetool && rm -f /u01/jdk/javafx-src.zip /u01/jdk/src.zip
---> Running in 5563b93a5408
Removing intermediate container 5563b93a5408
---> 409dda685441
Step 12/45 : FROM OS_UPDATE as WLS_BUILD
---> da56567539e5
Step 13/45 : LABEL com.oracle.weblogic.imagetool.buildid="98049880-e1e4-4c91-85ce-aeff116cf2ae"
---> Running in 47a2cedf02ab
Removing intermediate container 47a2cedf02ab
---> 2cafc0f7a696
Step 14/45 : ENV JAVA_HOME=/u01/jdk ORACLE_HOME=/u01/oracle OPATCH_NO_FUSER=true
---> Running in a37a228e3998
Removing intermediate container a37a228e3998
---> f08384c22ac5
Step 15/45 : RUN mkdir -p /u01/oracle && mkdir -p /u01/oracle/oraInventory && chown oracle:oracle /u01/oracle/oraInventory && chown oracle:oracle /u01/oracle
---> Running in fddba67603aa
Removing intermediate container fddba67603aa
---> c413ff5b2a6a
Step 16/45 : COPY --from=JDK_BUILD --chown=oracle:oracle /u01/jdk /u01/jdk/
---> ba41aa0d841c
Step 17/45 : COPY --chown=oracle:oracle fmw_14.1.1.0.0_wls_Disk1_1of1.zip wls.rsp /tmp/imagetool/
---> 8d8f7e045d1d
Step 18/45 : COPY --chown=oracle:oracle oraInst.loc /u01/oracle/
---> 212c93c36fe3
Step 19/45 : USER oracle
---> Running in b64c3dcef4fd
Removing intermediate container b64c3dcef4fd
---> ad8dbdd77957
Step 20/45 : RUN unzip -q /tmp/imagetool/fmw_14.1.1.0.0_wls_Disk1_1of1.zip "*.jar" -d /tmp/imagetool && /u01/jdk/bin/java -Xmx1024m -jar /tmp/imagetool/fmw_14.1.1.0.0_wls.jar -silent ORACLE_HOME=/u01/oracle -responseFile /tmp/imagetool/wls.rsp -invPtrLoc /u01/oracle/oraInst.loc -ignoreSysPrereqs -force -novalidation
---> Running in 2d4c9c7fe56b
Launcher log file is /tmp/OraInstall2020-08-16_12-24-04PM/launcher2020-08-16_12-24-04PM.log.
Extracting the installer . . . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz. Actual 2393.845 MHz Passed
Checking swap space: must be greater than 512 MB. Actual 16383 MB Passed
Checking temp space: must be greater than 300 MB. Actual 79072 MB Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2020-08-16_12-24-04PM
Log: /tmp/OraInstall2020-08-16_12-24-04PM/install2020-08-16_12-24-04PM.log
Setting ORACLE_HOME...
Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Validations are disabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100

The installation of Oracle Fusion Middleware 14.1.1 WebLogic Server and Coherence 14.1.1.0.0 completed successfully.
Logs successfully copied to /u01/oracle/oraInventory/logs.
Removing intermediate container 2d4c9c7fe56b
---> 9b007af775d2
Step 21/45 : FROM WLS_BUILD as WDT_BUILD
---> 9b007af775d2
Step 22/45 : ARG WDT_ENCRYPTION_KEY
---> Running in dc371227947e
Removing intermediate container dc371227947e
---> 79b1570d1c3d
Step 23/45 : LABEL com.oracle.weblogic.imagetool.buildid="98049880-e1e4-4c91-85ce-aeff116cf2ae"
---> Running in 9e64666d61bb
Removing intermediate container 9e64666d61bb
---> 70f60104a09b
Step 24/45 : ENV WLSDEPLOY_PROPERTIES=" -Djava.security.egd=file:/dev/./urandom" LC_ALL=${DEFAULT_LOCALE:-en_US.UTF-8} DOMAIN_HOME=/u01/domains/base_domain
---> Running in c8af1b813c37
Removing intermediate container c8af1b813c37
---> ca7611cc87f4
Step 25/45 : COPY --chown=oracle:oracle weblogic-deploy.zip /tmp/imagetool/
---> 1ef86c415ef7
Step 26/45 : RUN mkdir -p /u01/wdt && chown oracle:oracle /u01/wdt
---> Running in 7356242790c7
Removing intermediate container 7356242790c7
---> ce0b010c1cef
Step 27/45 : USER oracle
---> Running in 22c3752b2ea7
Removing intermediate container 22c3752b2ea7
---> 26c42a7cd5c8
Step 28/45 : RUN cd /u01/wdt && mkdir -p /u01/wdt/models && mkdir -p $(dirname /u01/domains/base_domain)
---> Running in 625c0abb4ee9
Removing intermediate container 625c0abb4ee9
---> 86f2c8671f5d
Step 29/45 : COPY --chown=oracle:oracle create_domain.yaml /u01/wdt/models/
---> bbbb56dd2ecd
Step 30/45 : COPY --chown=oracle:oracle archive.zip /u01/wdt/models/
---> b4bdb0e65fe4
Step 31/45 : RUN unzip -q /tmp/imagetool/weblogic-deploy.zip -d /u01/wdt
---> Running in 012f4363a856
Removing intermediate container 012f4363a856
---> 9d88f1b2d37f
Step 32/45 : RUN cd /u01/wdt/weblogic-deploy/bin && ./createDomain.sh -oracle_home /u01/oracle -domain_home /u01/domains/base_domain -domain_type WLS -model_file /u01/wdt/models/create_domain.yaml -archive_file /u01/wdt/models/archive.zip
---> Running in f584b4254a34
JDK version is 11.0.7+8-LTS
JAVA_HOME = /u01/jdk
WLST_EXT_CLASSPATH = /u01/wdt/weblogic-deploy/lib/weblogic-deploy-core.jar
CLASSPATH = /u01/wdt/weblogic-deploy/lib/weblogic-deploy-core.jar
WLST_PROPERTIES = -Dcom.oracle.cie.script.throwException=true -Djava.util.logging.config.class=oracle.weblogic.deploy.logging.WLSDeployCustomizeLoggingConfig -Djava.security.egd=file:/dev/./urandom
/u01/oracle/oracle_common/common/bin/wlst.sh /u01/wdt/weblogic-deploy/lib/python/create.py -oracle_home /u01/oracle -domain_home /u01/domains/base_domain -domain_type WLS -model_file /u01/wdt/models/create_domain.yaml -archive_file /u01/wdt/models/archive.zip
####<Aug 16, 2020 12:28:51 PM> <> <> <The createDomain program will write its log to /u01/wdt/weblogic-deploy/logs/createDomain.log>

Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

####<Aug 16, 2020 12:30:15 PM> <The WebLogic Deploy Tooling createDomain version is 1.9.2:master.2c10a57:Jul 27, 2020 15:04 UTC>
####<Aug 16, 2020 12:30:20 PM> <filter_helper> <apply_filters> <No filter configuration file /u01/wdt/weblogic-deploy/lib/model_filters.json>
####<Aug 16, 2020 12:30:20 PM> <filter_helper> <apply_filters> <No filters of type create found in filter configuration file /u01/wdt/weblogic-deploy/lib/model_filters.json>
####<Aug 16, 2020 12:30:20 PM> <__create_domain>
####<Aug 16, 2020 12:30:20 PM> <__create_base_domain_with_select_template>
####<Aug 16, 2020 12:30:27 PM> <__extend_domain_with_select_template>
####<Aug 16, 2020 12:30:45 PM> <_create_named_mbeans>
####<Aug 16, 2020 12:30:46 PM> <__extend_domain_with_select_template> <Writing base domain base_domain to directory /u01/domains/base_domain>
####<Aug 16, 2020 12:31:04 PM> <__extend_domain_with_select_template>
####<Aug 16, 2020 12:31:06 PM> <install_domain_libraries>
####<Aug 16, 2020 12:31:06 PM> <extract_classpath_libraries> <The archive file /u01/wdt/models/archive.zip contains no classpath libraries to install>
####<Aug 16, 2020 12:31:06 PM> <install_domain_scripts>

Issue Log for createDomain version 1.9.2 running WebLogic version 14.1.1.0.0 offline mode:

Total: WARNING : 0 SEVERE : 0

createDomain.sh completed successfully (exit code = 0)
Removing intermediate container f584b4254a34
---> c724b89836ad
Step 33/45 : FROM OS_UPDATE as FINAL_BUILD
---> da56567539e5
Step 34/45 : ARG ADMIN_NAME
---> Running in e976c015da3a
Removing intermediate container e976c015da3a
---> 955b7e295ee8
Step 35/45 : ARG ADMIN_HOST
---> Running in e52486b4e858
Removing intermediate container e52486b4e858
---> ac151e2f0298
Step 36/45 : ARG ADMIN_PORT
---> Running in bf4ab2a40d70
Removing intermediate container bf4ab2a40d70
---> cc9aeb13d0d9
Step 37/45 : ARG MANAGED_SERVER_PORT
---> Running in 9f8d2d192fa5
Removing intermediate container 9f8d2d192fa5
---> 0a3f0c0cad1b
Step 38/45 : ENV ORACLE_HOME=/u01/oracle JAVA_HOME=/u01/jdk ADMIN_NAME=${ADMIN_NAME:-admin-server} ADMIN_HOST=${ADMIN_HOST:-wlsadmin} ADMIN_PORT=${ADMIN_PORT:-7001} MANAGED_SERVER_NAME=${MANAGED_SERVER_NAME:-} MANAGED_SERVER_PORT=${MANAGED_SERVER_PORT:-8001} DOMAIN_HOME=/u01/domains/base_domain LC_ALL=${DEFAULT_LOCALE:-en_US.UTF-8} PATH=${PATH}:/u01/jdk/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle:$/u01/domains/base_domain/bin
---> Running in ca18894b8cd3
Removing intermediate container ca18894b8cd3
---> f456353266c8
Step 39/45 : LABEL com.oracle.weblogic.imagetool.buildid="98049880-e1e4-4c91-85ce-aeff116cf2ae"
---> Running in 6a89e8e0309a
Removing intermediate container 6a89e8e0309a
---> ed213e37f1de
Step 40/45 : COPY --from=JDK_BUILD --chown=oracle:oracle /u01/jdk /u01/jdk/
---> e70121540a28
Step 41/45 : COPY --from=WLS_BUILD --chown=oracle:oracle /u01/oracle /u01/oracle/
---> 64de24a9934d
Step 42/45 : COPY --from=WDT_BUILD --chown=oracle:oracle /u01/domains/base_domain /u01/domains/base_domain/
---> 18364281b919
Step 43/45 : EXPOSE $ADMIN_PORT $MANAGED_SERVER_PORT
---> Running in 9e93d41dd05e
Removing intermediate container 9e93d41dd05e
---> a0e13dc7fa2a
Step 44/45 : USER oracle
---> Running in 71b3667ce186
Removing intermediate container 71b3667ce186
---> 8801138d6912
Step 45/45 : WORKDIR /u01/domains/base_domain
---> Running in 92212ea4e250
Removing intermediate container 92212ea4e250
---> 51c913f4111d
Successfully built 51c913f4111d
Successfully tagged wls:14.1.1.0.0new4
[INFO ] Build successful. Build time=675s. Image tag=wls:14.1.1.0.0new4

[root@frmrep12c bin]# docker inspect --format='{{.Config.Env}}' wls:14.1.1.0.0new4
[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/u01/jdk/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle:$/u01/domains/base_domain/bin ORACLE_HOME=/u01/oracle JAVA_HOME=/u01/jdk ADMIN_NAME=admin-server ADMIN_HOST=wlsadmin ADMIN_PORT=7001 MANAGED_SERVER_NAME= MANAGED_SERVER_PORT=8001 DOMAIN_HOME=/u01/domains/base_domain LC_ALL=en_US.UTF-8]

We can see the DOMAIN_HOME was set.

DOMAIN_HOME=/u01/domains/base_domain

[root@frmrep12c bin]# imagetool rebase --tag wls:14.1.1.0.0new3 --sourceImage wls:14.1.1.0.0new4 --jdkVersion=11u7 --version 14.1.1.0.0 --httpsProxyUrl=www-proxy-tyo.jp.oracle.com:80
[INFO ] Image Tool build ID: 9ca95467-1b7d-4c37-ad82-3100881b63c4
[INFO ] Temporary directory used for docker build context: /root/wlsimgbuilder_temp2292054850714554152
[INFO ] Copying /refresh/home/Downloads/jdk-11.0.7_linux-x64_bin.tar.gz to build context folder.
[INFO ] Using middleware installers (wls) version 14.1.1.0.0
[INFO ] Copying /refresh/home/Downloads/fmw_14.1.1.0.0_wls_Disk1_1of1.zip to build context folder.
[INFO ] docker cmd = docker build --no-cache --force-rm --tag wls:14.1.1.0.0new3 --build-arg https_proxy=www-proxy-tyo.jp.oracle.com:80 --build-arg ADMIN_PORT=7001 --build-arg MANAGED_SERVER_PORT=8001 /root/wlsimgbuilder_temp2292054850714554152
Sending build context to Docker daemon 1.112GB

Step 1/38 : FROM wls:14.1.1.0.0new4 as SOURCE_IMAGE
---> 51c913f4111d
Step 2/38 : FROM oraclelinux:7-slim as OS_UPDATE
---> 7442ca158991
Step 3/38 : ARG ADMIN_PORT
---> Running in 011db33d4096
Removing intermediate container 011db33d4096
---> 51b8b402fecc
Step 4/38 : ARG MANAGED_SERVER_PORT
---> Running in cac9ad35347f
Removing intermediate container cac9ad35347f
---> 6dadd4803309
Step 5/38 : ENV ADMIN_PORT=${ADMIN_PORT} MANAGED_SERVER_PORT=${MANAGED_SERVER_PORT} DOMAIN_HOME=/u01/domains/base_domain
---> Running in a76baed425c7
Removing intermediate container a76baed425c7
---> cd767cf6c9c1
Step 6/38 : LABEL com.oracle.weblogic.imagetool.buildid="9ca95467-1b7d-4c37-ad82-3100881b63c4"
---> Running in 5584378d2503
Removing intermediate container 5584378d2503
---> 463c651e4e68
Step 7/38 : USER root
---> Running in 01291c31e779
Removing intermediate container 01291c31e779
---> 928a978c09f3
Step 8/38 : RUN yum -y --downloaddir=/tmp/imagetool install gzip tar unzip libaio && yum -y --downloaddir=/tmp/imagetool clean all && rm -rf /var/cache/yum/* && rm -rf /tmp/imagetool
---> Running in 06e949a9d6ab
Loaded plugins: ovl
Resolving Dependencies
--> Running transaction check
---> Package gzip.x86_64 0:1.5-10.el7 will be installed
---> Package libaio.x86_64 0:0.3.109-13.el7 will be installed
---> Package tar.x86_64 2:1.26-35.el7 will be installed
---> Package unzip.x86_64 0:6.0-21.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size

Installing:
gzip x86_64 1.5-10.el7 ol7_latest 129 k
libaio x86_64 0.3.109-13.el7 ol7_latest 24 k
tar x86_64 2:1.26-35.el7 ol7_latest 845 k
unzip x86_64 6.0-21.el7 ol7_latest 171 k

Transaction Summary

Install 4 Packages

Total download size: 1.1 M
Installed size: 3.3 M
Downloading packages:

Total 504 kB/s | 1.1 MB 00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:tar-1.26-35.el7.x86_64 1/4
Installing : unzip-6.0-21.el7.x86_64 2/4
Installing : libaio-0.3.109-13.el7.x86_64 3/4
Installing : gzip-1.5-10.el7.x86_64 4/4
Verifying : gzip-1.5-10.el7.x86_64 1/4
Verifying : libaio-0.3.109-13.el7.x86_64 2/4
Verifying : unzip-6.0-21.el7.x86_64 3/4
Verifying : 2:tar-1.26-35.el7.x86_64 4/4

Installed:
gzip.x86_64 0:1.5-10.el7 libaio.x86_64 0:0.3.109-13.el7
tar.x86_64 2:1.26-35.el7 unzip.x86_64 0:6.0-21.el7

Complete!
Loaded plugins: ovl
Cleaning repos: ol7_latest
Removing intermediate container 06e949a9d6ab
---> 89aaedb22018
Step 9/38 : RUN if [ -z "$(getent group oracle)" ]; then hash groupadd &> /dev/null && groupadd oracle || exit -1 ; fi && if [ -z "$(getent passwd oracle)" ]; then hash useradd &> /dev/null && useradd -g oracle oracle || exit -1; fi && mkdir /u01 && chown oracle:oracle /u01 && chmod 775 /u01
---> Running in 5d22b2f85ca5
Removing intermediate container 5d22b2f85ca5
---> d19ce10305b9
Step 10/38 : FROM OS_UPDATE as JDK_BUILD
---> d19ce10305b9
Step 11/38 : LABEL com.oracle.weblogic.imagetool.buildid="9ca95467-1b7d-4c37-ad82-3100881b63c4"
---> Running in b0f96c37df1d
Removing intermediate container b0f96c37df1d
---> b1e86df624eb
Step 12/38 : ENV JAVA_HOME=/u01/jdk
---> Running in 6a09de409fbf
Removing intermediate container 6a09de409fbf
---> 3f0afd5827e2
Step 13/38 : COPY --chown=oracle:oracle jdk-11.0.7_linux-x64_bin.tar.gz /tmp/imagetool/
---> b8cd899afada
Step 14/38 : USER oracle
---> Running in 9aaea932b701
Removing intermediate container 9aaea932b701
---> 944bfac83288
Step 15/38 : RUN tar xzf /tmp/imagetool/jdk-11.0.7_linux-x64_bin.tar.gz -C /u01 && mv /u01/jdk* /u01/jdk && rm -rf /tmp/imagetool && rm -f /u01/jdk/javafx-src.zip /u01/jdk/src.zip
---> Running in db2b17c7a900
Removing intermediate container db2b17c7a900
---> 57cb0ee33b73
Step 16/38 : FROM OS_UPDATE as WLS_BUILD
---> d19ce10305b9
Step 17/38 : LABEL com.oracle.weblogic.imagetool.buildid="9ca95467-1b7d-4c37-ad82-3100881b63c4"
---> Running in 2d2e1aad6a7d
Removing intermediate container 2d2e1aad6a7d
---> 315906afbc81
Step 18/38 : ENV JAVA_HOME=/u01/jdk ORACLE_HOME=/u01/oracle OPATCH_NO_FUSER=true
---> Running in 37822c245bdd
Removing intermediate container 37822c245bdd
---> 3eeff11e3de3
Step 19/38 : RUN mkdir -p /u01/oracle && mkdir -p /u01/oracle/oraInventory && chown oracle:oracle /u01/oracle/oraInventory && chown oracle:oracle /u01/oracle
---> Running in 85839454a66d
Removing intermediate container 85839454a66d
---> 8362159abf6e
Step 20/38 : COPY --from=JDK_BUILD --chown=oracle:oracle /u01/jdk /u01/jdk/
---> 993cc41b644a
Step 21/38 : COPY --chown=oracle:oracle fmw_14.1.1.0.0_wls_Disk1_1of1.zip wls.rsp /tmp/imagetool/
---> 199cf95020de
Step 22/38 : COPY --chown=oracle:oracle oraInst.loc /u01/oracle/
---> 2de5993da49e
Step 23/38 : USER oracle
---> Running in cb0c47e12978
Removing intermediate container cb0c47e12978
---> 67e9603b916a
Step 24/38 : RUN unzip -q /tmp/imagetool/fmw_14.1.1.0.0_wls_Disk1_1of1.zip "*.jar" -d /tmp/imagetool && /u01/jdk/bin/java -Xmx1024m -jar /tmp/imagetool/fmw_14.1.1.0.0_wls.jar -silent ORACLE_HOME=/u01/oracle -responseFile /tmp/imagetool/wls.rsp -invPtrLoc /u01/oracle/oraInst.loc -ignoreSysPrereqs -force -novalidation
---> Running in 3909907137b7
Launcher log file is /tmp/OraInstall2020-08-16_12-40-07PM/launcher2020-08-16_12-40-07PM.log.
Extracting the installer . . . . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz. Actual 2393.845 MHz Passed
Checking swap space: must be greater than 512 MB. Actual 16383 MB Passed
Checking temp space: must be greater than 300 MB. Actual 77872 MB Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2020-08-16_12-40-07PM
Log: /tmp/OraInstall2020-08-16_12-40-07PM/install2020-08-16_12-40-07PM.log
Setting ORACLE_HOME...
Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Validations are disabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100

The installation of Oracle Fusion Middleware 14.1.1 WebLogic Server and Coherence 14.1.1.0.0 completed successfully.
Logs successfully copied to /u01/oracle/oraInventory/logs.
Removing intermediate container 3909907137b7
---> feaef096b0dc
Step 25/38 : FROM OS_UPDATE as FINAL_BUILD
---> d19ce10305b9
Step 26/38 : ARG ADMIN_NAME
---> Running in 586a06c0b0fc
Removing intermediate container 586a06c0b0fc
---> 4c9b5d698308
Step 27/38 : ARG ADMIN_HOST
---> Running in 51caab06a3d0
Removing intermediate container 51caab06a3d0
---> b7111238256e
Step 28/38 : ARG ADMIN_PORT
---> Running in 138b02a5ee4c
Removing intermediate container 138b02a5ee4c
---> f22a2f5dc4a7
Step 29/38 : ARG MANAGED_SERVER_PORT
---> Running in 9379ed70f6f7
Removing intermediate container 9379ed70f6f7
---> 2342aef22b83
Step 30/38 : ENV ORACLE_HOME=/u01/oracle JAVA_HOME=/u01/jdk LC_ALL=${DEFAULT_LOCALE:-en_US.UTF-8} PATH=${PATH}:/u01/jdk/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle
---> Running in ac1eb1a4f752
Removing intermediate container ac1eb1a4f752
---> 4d615bce070e
Step 31/38 : LABEL com.oracle.weblogic.imagetool.buildid="9ca95467-1b7d-4c37-ad82-3100881b63c4"
---> Running in 5535f926e092
Removing intermediate container 5535f926e092
---> 149a5a3ec684
Step 32/38 : COPY --from=JDK_BUILD --chown=oracle:oracle /u01/jdk /u01/jdk/
---> 318e93aea053
Step 33/38 : COPY --from=WLS_BUILD --chown=oracle:oracle /u01/oracle /u01/oracle/
---> 77e671633273
Step 34/38 : USER oracle
---> Running in db17749b9d24
Removing intermediate container db17749b9d24
---> 9c95c48a3799
Step 35/38 : RUN mkdir -p /u01/domains/base_domain
---> Running in b8b0464fa362
Removing intermediate container b8b0464fa362
---> 7ec297d145ba
Step 36/38 : COPY --from=SOURCE_IMAGE --chown=oracle:oracle /u01/domains/base_domain /u01/domains/base_domain/
---> 97ae37965ad4
Step 37/38 : EXPOSE $ADMIN_PORT $MANAGED_SERVER_PORT
---> Running in 737d30748be2
Removing intermediate container 737d30748be2
---> 74b8b70ac053
Step 38/38 : WORKDIR /u01/domains/base_domain
---> Running in 05c50ed89b85
Removing intermediate container 05c50ed89b85
---> 212daf88744c
Successfully built 212daf88744c
Successfully tagged wls:14.1.1.0.0new3
[INFO ] Build successful. Build time=524s. Image tag=wls:14.1.1.0.0new3

docker run -it wls:14.1.1.0.0new3 /bin/bash

[ae75b22559ad base_domain]$ pwd
/u01/domains/base_domain

[ae75b22559ad base_domain]$ ./bin/setDomainEnv.sh
[ae75b22559ad base_domain]$ ./startWebLogic.sh

<Aug 16, 2020, 12:50:51,170 PM Greenwich Mean Time> <Channel "Default" is now listening on 172.17.0.2:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 16, 2020, 12:50:51,198 PM Greenwich Mean Time> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 16, 2020, 12:50:51,198 PM Greenwich Mean Time> <Channel "Default" is now listening on 172.17.0.2:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 16, 2020, 12:50:51,199 PM Greenwich Mean Time> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 16, 2020, 12:50:51,246 PM Greenwich Mean Time>

[ae75b22559ad base_domain]$ exit

It can be accessed by local machine by not remote machine.

[root@frmrep12c bin]# docker run -d -p 7001:7001 -v /refresh/home/docker/docker-images/OracleWebLogic/dockerfiles/14.1.1.0/propertiesnew:/u01/oracle/properties -e ADMINISTRATION_PORT_ENABLED=false -e DOMAIN_NAME=base_domain wls:14.1.1.0.0new3
fb47cc188dae2dfeed310d09b47f927be50ffd51d8dcd3213b5e2201c9b0139d
[root@frmrep12c bin]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fb47cc188dae wls:14.1.1.0.0new3 "/bin/bash" 8 seconds ago Exited (0) 7 seconds ago strange_ramanujan

[root@frmrep12c bin]# docker logs fb47cc188dae
no logs...

archive.zip

@wangfeng791012 Your thread has completely changed here, and I cannot understand what you are trying to say with your latest posts. Please summarize for me what you are trying to ask. From trying to read through this (multiple times), it seems like everything is working as expected.

@ddsharpe Thanks for your reply. And sorry for confusing you.
Let me summarize it for my previous post.

  1. I try to rebase a docker image created by docker command but failed with following error:
    [root@frmrep12c bin]# imagetool rebase --tag wls:14.1.1.0.0_new3 --sourceImage oracle/weblogic:14.1.1.0-generic-11-new --jdkVersion=11u7 --version 14.1.1.0.0 --httpsProxyUrl=www-proxy-tyo.jp.oracle.com:80

Step 36/38 : COPY --from=SOURCE_IMAGE --chown=oracle:oracle /u01/oracle/user_projects/domains/base_domain /u01/oracle/user_projects/domains/base_domain/
[SEVERE ] Response code: -1, message: docker command failed with error: COPY failed: stat /home/docker/overlay2/aa17fc6e8366f61c6c42202adcdbb00b48e4b5de1d6c4dbe2c262c08331255cb/merged/u01/oracle/user_projects/domains/base_domain: no such file or directory

oracle/weblogic:14.1.1.0-generic-11-new is being created by docker command.

  1. I also rebase a docker image created by imagetool, it succeeded.
    [root@frmrep12c bin]# imagetool rebase --tag wls:14.1.1.0.0new3 --sourceImage wls:14.1.1.0.0new4 --jdkVersion=11u7 --version 14.1.1.0.0 --httpsProxyUrl=www-proxy-tyo.jp.oracle.com:80
    ...
    [INFO ] Build successful. Build time=524s. Image tag=wls:14.1.1.0.0new3

But i could not access the domain from remote machine.
docker run -it wls:14.1.1.0.0new3 /bin/bash

[ae75b22 base_domain]$ pwd
/u01/domains/base_domain

[ae75b22 base_domain]$ ./bin/setDomainEnv.sh
[ae75b22 base_domain]$ ./startWebLogic.sh

<Aug 16, 2020, 12:50:51,170 PM Greenwich Mean Time> <Channel "Default" is now listening on 172.17.0.2:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 16, 2020, 12:50:51,198 PM Greenwich Mean Time> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 16, 2020, 12:50:51,198 PM Greenwich Mean Time> <Channel "Default" is now listening on 172.17.0.2:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 16, 2020, 12:50:51,199 PM Greenwich Mean Time> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 16, 2020, 12:50:51,246 PM Greenwich Mean Time>

wls:14.1.1.0.0new4 is being created by imagetool command.

Did i miss any steps?
Any points are highly appreciated!

Regards,
Feng Wang

Two things. First, I do not know what is in oracle/weblogic:14.1.1.0-generic-11-new, so I cannot say why you get the error. I would guess that the error is because there is no base_domain directory in the user_projects/domains folder. I am assuming that you created this image, but if this is a public image, please direct me to the store where I can view it.
Second, you ran docker run -it wls:14.1.1.0.0new3 /bin/bash without exposing any ports. If you wish to access an internal port in the docker container, you need to tell Docker how to map the port. Try docker run -p 7001:7001 -it wls:14.1.1.0.0new3 /bin/bash which will map port 7001 inside the container to 7001 on the localhost. There are many other options here, of course, which you can learn about on docker run. See --publish or --expose.

@ddsharpe Thanks for your reply.
After I run "docker run -p 7001:7001 -it wls:14.1.1.0.0new3 /bin/bash", it works as as expected. I can access the domain from remote machine. Great!!!

And about first , will ping you at slack.

Thanks a lot!

Regards,
Feng Wang