Hi all,
after I downloaded the binaries for Oracle Express 11.2.0.2 I tried to build it. I got the following error:
$ ./buildDockerImage.sh -v 11.2.0.2 -x -i
Ignored MD5 checksum.
=====================
Building image 'oracle/database:11.2.0.2-xe' ...
Sending build context to Docker daemon 633.2 MB
Step 1 : FROM oraclelinux:latest
---> 3d62999fc909
Step 2 : MAINTAINER Gerald Venzl <[email protected]>
---> Running in 3fbde130d744
---> 6acd3efbd3ec
Removing intermediate container 3fbde130d744
Step 3 : ENV ORACLE_BASE /u01/app/oracle ORACLE_HOME /u01/app/oracle/product/11.2.0/xe ORACLE_SID XE INSTALL_FILE_1 "oracle-xe-11.2.0-1.0.x86_64.rpm.zip" INSTALL_DIR "$HOME/install" CONFIG_RSP "xe.rsp" RUN_FILE "runOracle.sh" PWD_FILE "setPassword.sh"
---> Running in 4f01f40d272c
---> c0fbcb3799e0
Removing intermediate container 4f01f40d272c
Step 4 : ENV PATH $ORACLE_HOME/bin:$PATH
---> Running in 3343bdd9654e
---> 9de4cff3075d
Removing intermediate container 3343bdd9654e
Step 5 : COPY $INSTALL_FILE_1 $CONFIG_RSP $RUN_FILE $PWD_FILE $INSTALL_DIR/
---> f2dd2c96d251
Removing intermediate container d89014ea3967
Step 6 : RUN yum -y install unzip libaio bc initscripts net-tools openssl && yum clean all && cd $INSTALL_DIR && unzip $INSTALL_FILE_1 && rm $INSTALL_FILE_1 && rpm -i Disk1/*.rpm && mkdir $ORACLE_BASE/oradata && chown -R oracle:dba $ORACLE_BASE && mv $INSTALL_DIR/$CONFIG_RSP $ORACLE_BASE/ && mv $INSTALL_DIR/$RUN_FILE $ORACLE_BASE/ && mv $INSTALL_DIR/$PWD_FILE $ORACLE_BASE/ && ln -s $ORACLE_BASE/$PWD_FILE / && cd $HOME && rm -rf $INSTALL_DIR && chmod u+x $ORACLE_BASE/$RUN_FILE && chmod u+x $ORACLE_BASE/$PWD_FILE
---> Running in d2e33a0d0a8a
Loaded plugins: ovl, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package bc.x86_64 0:1.06.95-13.el7 will be installed
---> Package initscripts.x86_64 0:9.49.30-1.0.1.el7_2.3 will be updated
---> Package initscripts.x86_64 0:9.49.37-1.0.1.el7 will be an update
---> Package libaio.x86_64 0:0.3.109-13.el7 will be installed
---> Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed
---> Package openssl.x86_64 1:1.0.1e-60.el7 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-60.el7 for package: 1:openssl-1.0.1e-60.el7.x86_64
--> Processing Dependency: make for package: 1:openssl-1.0.1e-60.el7.x86_64
---> Package unzip.x86_64 0:6.0-16.el7 will be installed
--> Running transaction check
---> Package make.x86_64 1:3.82-23.el7 will be installed
---> Package openssl-libs.x86_64 1:1.0.1e-51.el7_2.7 will be updated
---> Package openssl-libs.x86_64 1:1.0.1e-60.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
bc x86_64 1.06.95-13.el7 ol7_latest 114 k
libaio x86_64 0.3.109-13.el7 ol7_latest 24 k
net-tools x86_64 2.0-0.17.20131004git.el7 ol7_latest 303 k
openssl x86_64 1:1.0.1e-60.el7 ol7_latest 713 k
unzip x86_64 6.0-16.el7 ol7_latest 169 k
Updating:
initscripts x86_64 9.49.37-1.0.1.el7 ol7_latest 431 k
Installing for dependencies:
make x86_64 1:3.82-23.el7 ol7_latest 420 k
Updating for dependencies:
openssl-libs x86_64 1:1.0.1e-60.el7 ol7_latest 958 k
Transaction Summary
================================================================================
Install 5 Packages (+1 Dependent package)
Upgrade 1 Package (+1 Dependent package)
Total download size: 3.1 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
--------------------------------------------------------------------------------
Total 406 kB/s | 3.1 MB 00:07
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:make-3.82-23.el7.x86_64 1/10
Updating : 1:openssl-libs-1.0.1e-60.el7.x86_64 2/10
Installing : 1:openssl-1.0.1e-60.el7.x86_64 3/10
Installing : bc-1.06.95-13.el7.x86_64 4/10
Installing : libaio-0.3.109-13.el7.x86_64 5/10
Installing : unzip-6.0-16.el7.x86_64 6/10
Installing : net-tools-2.0-0.17.20131004git.el7.x86_64 7/10
Updating : initscripts-9.49.37-1.0.1.el7.x86_64 8/10
Cleanup : initscripts-9.49.30-1.0.1.el7_2.3.x86_64 9/10
warning: file /usr/share/doc/initscripts-9.49.30/examples: remove failed: No such file or directory
warning: file /usr/share/doc/initscripts-9.49.30: remove failed: No such file or directory
Cleanup : 1:openssl-libs-1.0.1e-51.el7_2.7.x86_64 10/10
Verifying : 1:openssl-libs-1.0.1e-60.el7.x86_64 1/10
Verifying : initscripts-9.49.37-1.0.1.el7.x86_64 2/10
Verifying : 1:openssl-1.0.1e-60.el7.x86_64 3/10
Verifying : net-tools-2.0-0.17.20131004git.el7.x86_64 4/10
Verifying : unzip-6.0-16.el7.x86_64 5/10
Verifying : 1:make-3.82-23.el7.x86_64 6/10
Verifying : libaio-0.3.109-13.el7.x86_64 7/10
Verifying : bc-1.06.95-13.el7.x86_64 8/10
Verifying : initscripts-9.49.30-1.0.1.el7_2.3.x86_64 9/10
Verifying : 1:openssl-libs-1.0.1e-51.el7_2.7.x86_64 10/10
Installed:
bc.x86_64 0:1.06.95-13.el7 libaio.x86_64 0:0.3.109-13.el7
net-tools.x86_64 0:2.0-0.17.20131004git.el7 openssl.x86_64 1:1.0.1e-60.el7
unzip.x86_64 0:6.0-16.el7
Dependency Installed:
make.x86_64 1:3.82-23.el7
Updated:
initscripts.x86_64 0:9.49.37-1.0.1.el7
Dependency Updated:
openssl-libs.x86_64 1:1.0.1e-60.el7
Complete!
Loaded plugins: ovl, ulninfo
Cleaning repos: ol7_UEKR3 ol7_latest
Cleaning up everything
Archive: oracle-xe-11.2.0-1.0.x86_64.rpm.zip
creating: Disk1/
creating: Disk1/upgrade/
inflating: Disk1/upgrade/gen_inst.sql
creating: Disk1/response/
inflating: Disk1/response/xe.rsp
inflating: Disk1/oracle-xe-11.2.0-1.0.x86_64.rpm
This system does not meet the minimum requirements for swap space. Based on
the amount of physical memory available on the system, Oracle Database 11g
Express Edition requires 2048 MB of swap space. This system has 964 MB
of swap space. Configure more swap space on the system and retry the
installation.
error: %pre(oracle-xe-11.2.0-1.0.x86_64) scriptlet failed, exit status 1
error: oracle-xe-11.2.0-1.0.x86_64: install failed
Removing intermediate container d2e33a0d0a8a
The command '/bin/sh -c yum -y install unzip libaio bc initscripts net-tools openssl && yum clean all && cd $INSTALL_DIR && unzip $INSTALL_FILE_1 && rm $INSTALL_FILE_1 && rpm -i Disk1/*.rpm && mkdir $ORACLE_BASE/oradata && chown -R oracle:dba $ORACLE_BASE && mv $INSTALL_DIR/$CONFIG_RSP $ORACLE_BASE/ && mv $INSTALL_DIR/$RUN_FILE $ORACLE_BASE/ && mv $INSTALL_DIR/$PWD_FILE $ORACLE_BASE/ && ln -s $ORACLE_BASE/$PWD_FILE / && cd $HOME && rm -rf $INSTALL_DIR && chmod u+x $ORACLE_BASE/$RUN_FILE && chmod u+x $ORACLE_BASE/$PWD_FILE' returned a non-zero code: 1
There was an error building the image
Hi @nicolimo86,
Looks like that your docker environment doesn't have enough swap space configured. Have a look at https://forums.docker.com/t/docker-for-mac-configure-swap-space/20656, this looks almost identical to your issue and the user found a solution for how to increase the swap size of the Docker environment. Hopefully this works for you too.
@gvenzl thank you, I'll let you know if it works.
Indeed the problem was that one.
I'm glad to hear!
Most helpful comment
Hi @nicolimo86,
Looks like that your docker environment doesn't have enough swap space configured. Have a look at https://forums.docker.com/t/docker-for-mac-configure-swap-space/20656, this looks almost identical to your issue and the user found a solution for how to increase the swap size of the Docker environment. Hopefully this works for you too.