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)

Most upvoted comments

The host’s yum.conf is not used by the container. You need to use --build-arg to pass in the right proxy configuration. You’ll need to run the manual build like this:

$ docker build -t oracle/database:12.2.0.1-ee --build-arg http_proxy=<proxy_fqdn>:<proxy_port> -f Dockerfile.ee

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.sh script 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-arg parameters to the docker build command.

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.

Checking if required packages are present and valid...
linuxx64_12201_database.zip: OK
==========================
DOCKER info:
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
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 ipvlan 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
 selinux
Kernel Version: 4.1.12-94.3.8.el7uek.x86_64
Operating System: Oracle Linux Server 7.3
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.795 GiB
Name: localhost.localdomain
ID: GZ5A:XQWB:F5TE:56JE:GR3J:VCXJ:I7BO:EGMY:K52K:JAS3:A7ZC:BOHQ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
==========================
Building image 'oracle/database:12.2.0.1-ee' ...
Sending build context to Docker daemon 3.454 GB
Step 1/16 : FROM oraclelinux:7-slim
7-slim: Pulling from library/oraclelinux
7bd9e1692b54: Pull complete
Digest: sha256:f1388709e1ce62dfa9cf9af9746bc0cca47b2e09975a1fb6ba01c66061b2b793
Status: Downloaded newer image for oraclelinux:7-slim
 ---> 08a01cc7be97
Step 2/16 : MAINTAINER Gerald Venzl <gerald.venzl@oracle.com>
 ---> Running in 53cd87d95208
 ---> fe48ae42f12b
Removing intermediate container 53cd87d95208
Step 3/16 : ENV ORACLE_BASE /opt/oracle ORACLE_HOME /opt/oracle/product/12.2.0.1/dbhome_1 INSTALL_FILE_1 "linuxx64_12201_database.zip" INSTALL_RSP "db_inst.rsp" CONFIG_RSP "dbca.rsp.tmpl" PWD_FILE "setPassword.sh" PERL_INSTALL_FILE "installPerl.sh" RUN_FILE "runOracle.sh" START_FILE "startDB.sh" CREATE_DB_FILE "createDB.sh" SETUP_LINUX_FILE "setupLinuxEnv.sh" CHECK_SPACE_FILE "checkSpace.sh" CHECK_DB_FILE "checkDBStatus.sh" INSTALL_DB_BINARIES_FILE "installDBBinaries.sh"
 ---> Running in 48b06d55c211
 ---> 241b0248cd2c
Removing intermediate container 48b06d55c211
Step 4/16 : ENV INSTALL_DIR $ORACLE_BASE/install PATH $ORACLE_HOME/bin:$ORACLE_HOME/OPatch/:/usr/sbin:$PATH LD_LIBRARY_PATH $ORACLE_HOME/lib:/usr/lib CLASSPATH $ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
 ---> Running in 842b6ace5774
 ---> fa99ad665212
Removing intermediate container 842b6ace5774
Step 5/16 : COPY $INSTALL_FILE_1 $INSTALL_RSP $PERL_INSTALL_FILE $SETUP_LINUX_FILE $CHECK_SPACE_FILE $INSTALL_DB_BINARIES_FILE $INSTALL_DIR/
 ---> ef98169b4205
Removing intermediate container 4c07b751f0e4
Step 6/16 : COPY $RUN_FILE $START_FILE $CREATE_DB_FILE $CONFIG_RSP $PWD_FILE $CHECK_DB_FILE $ORACLE_BASE/
 ---> c39638b0f961
Removing intermediate container 53fdbb4a767b
Step 7/16 : RUN chmod ug+x $INSTALL_DIR/*.sh &&     sync &&     $INSTALL_DIR/$CHECK_SPACE_FILE &&     $INSTALL_DIR/$SETUP_LINUX_FILE
 ---> Running in d0870b1540df
Loaded plugins: ovl
Resolving Dependencies
--> Running transaction check
---> Package openssl.x86_64 1:1.0.1e-60.0.1.el7_3.1 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-60.0.1.el7_3.1 for package: 1:openssl-1.0.1e-60.0.1.el7_3.1.x86_64
--> Processing Dependency: make for package: 1:openssl-1.0.1e-60.0.1.el7_3.1.x86_64
---> Package oracle-database-server-12cR2-preinstall.x86_64 0:1.0-2.el7 will be installed
...
...
...
  xorg-x11-xauth.x86_64 1:1.0.9-1.el7
  xz.x86_64 0:5.2.2-1.el7

Dependency Updated:
  openssl-libs.x86_64 1:1.0.1e-60.0.1.el7_3.1

Complete!
Loaded plugins: ovl
Cleaning repos: ol7_UEKR4 ol7_latest
Cleaning up everything
 ---> 36c446376743
Removing intermediate container d0870b1540df
Step 8/16 : USER oracle
 ---> Running in 18aeab6dd644
 ---> 9a2961af4173
Removing intermediate container 18aeab6dd644
Step 9/16 : RUN $INSTALL_DIR/$INSTALL_DB_BINARIES_FILE EE
 ---> Running in b49843849003
Archive:  linuxx64_12201_database.zip
   creating: database/
   creating: database/sshsetup/
  inflating: database/sshsetup/sshUserSetup.sh
   creating: database/rpm/
  inflating: database/rpm/cvuqdisk-1.0.10-1.rpm
...
...
...
  inflating: database/stage/globalvariables/variable.properties
  inflating: database/stage/globalvariables/globalvar.xml
  inflating: database/stage/install1.jar
  inflating: database/runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 500 MB.   Actual 89353 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 8063 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-07-09_05-32-32PM. 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-09_05-32-32PM.log
The installation of Oracle Database 12c was successful.
Please check '/opt/oracle/oraInventory/logs/silentInstall2017-07-09_05-32-32PM.log' for more details.

As a root user, execute the following script(s):
	1. /opt/oracle/oraInventory/orainstRoot.sh
	2. /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.

 ---> 40f7f5f403d3
Removing intermediate container b49843849003
Step 10/16 : USER root
 ---> Running in 5226c9e7804a
 ---> 70ef3691e248
Removing intermediate container 5226c9e7804a
Step 11/16 : RUN $ORACLE_BASE/oraInventory/orainstRoot.sh &&     $ORACLE_HOME/root.sh &&     rm -rf $INSTALL_DIR
 ---> Running in e160cb2a7bac
Changing permissions of /opt/oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /opt/oracle/oraInventory to dba.
The execution of the script is complete.
Check /opt/oracle/product/12.2.0.1/dbhome_1/install/root_4677f42c5ed9_2017-07-09_17-38-29-792554555.log for the output of root script
 ---> 70ce883a067c
Removing intermediate container e160cb2a7bac
Step 12/16 : USER oracle
 ---> Running in 371fdcd9a79f
 ---> 911272bd5700
Removing intermediate container 371fdcd9a79f
Step 13/16 : WORKDIR /home/oracle
 ---> 36961379d48f
Removing intermediate container 10c7dea3c2e0
Step 14/16 : VOLUME $ORACLE_BASE/oradata
 ---> Running in d2e5494cb690
 ---> f2a4a6993ed8
Removing intermediate container d2e5494cb690
Step 15/16 : EXPOSE 1521 5500
 ---> Running in 251d1bbb89ea
 ---> eea27943fd54
Removing intermediate container 251d1bbb89ea
Step 16/16 : CMD exec $ORACLE_BASE/$RUN_FILE
 ---> Running in c26b44e02f51
 ---> 7d16f7ebcaf4
Removing intermediate container c26b44e02f51
Successfully built 7d16f7ebcaf4

  Oracle Database Docker Image for 'ee' version 12.2.0.1 is ready to be extended:

    --> oracle/database:12.2.0.1-ee

  Build completed in 743 seconds.

[root@localhost dockerfiles]#