docker-images: Docker image for Oracle Database 12.2.0.1 EE fails to build
I am getting the below error while building the docker image for oracle 12.2.0.1 enterprise edition. I am using the latest docker files from https://github.com/oracle/docker-images/tree/master/OracleDatabase.
Checking Temp space: must be greater than 500 MB. Actual 60288 MB Passed
Checking swap space: must be greater than 150 MB. Actual 23232 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-07-07_05-46-05AM. Please wait ...[WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory.
You can find the log of this install session at:
/opt/oracle/oraInventory/logs/installActions2017-07-07_05-46-05AM.log
The installation of Oracle Database 12c was successful.
Please check '/opt/oracle/oraInventory/logs/silentInstall2017-07-07_05-46-05AM.log' for more details.
As a root user, execute the following script(s):
1. /opt/oracle/product/12.2.0.1/dbhome_1/root.sh
Successfully Setup Software.
This is perl 5, version 22, subversion 0 (v5.22.0) built for x86_64-linux-thread-multi
Copyright 1987-2015, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
---> a09e25780715
Removing intermediate container 5881157eda05
Step 12/18 : USER root
---> Running in e7d610430de9
---> c9d85fa663b4
Removing intermediate container e7d610430de9
Step 13/18 : RUN $ORACLE_BASE/oraInventory/orainstRoot.sh && $ORACLE_HOME/root.sh && rm -rf $INSTALL_DIR
---> Running in 13e7d986cbd4
/bin/sh: /opt/oracle/oraInventory/orainstRoot.sh: No such file or directory
Removing intermediate container 13e7d986cbd4
The command '/bin/sh -c $ORACLE_BASE/oraInventory/orainstRoot.sh && $ORACLE_HOME/root.sh && rm -rf $INSTALL_DIR' returned a non-zero code: 127
Please find the attached logs for the more information.
installActions2017-07-07_02-28-42AM.txt build.txt
[root@whf00aiv dockerfiles]# docker info
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 39
Server Version: 17.03.1-ce
Storage Driver: btrfs
Build Version: Btrfs v4.4.1
Library Version: 101
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.1.12-61.1.27.el7uek.x86_64
Operating System: Oracle Linux Server 7.3
OSType: linux
Architecture: x86_64
CPUs: 6
Total Memory: 29.47 GiB
Name: whf00aiv.in.oracle.com
ID: IT5E:CE7J:VM7H:U3AV:YHYB:LBZL:6OY2:WZKR:O4GS:QTCR:ZIAE:H4MY
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
@gvenzl, Please help me if you have some time.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (7 by maintainers)
The host’s
yum.confis not used by the container. You need to use--build-argto pass in the right proxy configuration. You’ll need to run the manual build like this:You shouldn’t put your container on the same network as the host. Our guidelines strongly recommend against it and we don’t accept any images that require it.
Otherwise, use the
buildDockerImage.shscript which checks to see if your shell environment has the various proxy variables (i.e.http_proxy,https_proxy, etc) and automatically passes them as--build-argparameters to thedocker buildcommand.I tried to reproduce this issue but couldn’t. I wonder why in your image the installer thinks that the repository is already there, on an empty Linux slim image.