Skip to content

buildDockerImage.sh fails on 11.2.0.2 xe (rm: cannot remove '/install': Directory not empty)  #326

Closed
@lurodrig

Description

@lurodrig

Hello there,

First thanks Gerald Venzl for this initiative, having the possibility of just running your Oracle Dabatabase without worrying about all the bits and pieces of the installation is fantastic!

However it is not working for me, but probably I am missing something...

My host:

CentOS Linux release 7.2.1511 (Core)

Linux version 3.10.0-327.10.1.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Tue Feb 16 17:03:50 UTC 2016

The problem: trying...

./buildDockerImage.sh -v 11.2.0.2 -x -i

...I get:

sysctl: setting key "kernel.sem": Read-only file system  
/var/tmp/rpm-tmp.BMFGBE: line 257: [: 18446744073692774399: integer expression expected  
/var/tmp/rpm-tmp.BMFGBE: line 271: [: 18446744073692774399: integer expression expected  
sysctl: setting key "fs.file-max": Read-only file system  
Executing post-install steps...  
You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.  
rm: cannot remove '/install': Directory not empty  
Removing intermediate container ad997f0e8856  
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. 

In the dockerfiles folder I have:

[dockerfiles]$ ls -alrt 11.2.0.2/  
total 308516  
-rw-r--r--. 1 lurodrig it 315891481 Mar 15 16:33 oracle-xe-11.2.0-1.0.x86_64.rpm.zip  
-rw-r--r--. 1 lurodrig it      4661 Mar 15 16:35 runOracle.sh  
-rw-r--r--. 1 lurodrig it      2421 Mar 15 16:35 Dockerfile.xe  
-rw-r--r--. 1 lurodrig it        70 Mar 15 16:35 Checksum.xe  
-rw-r--r--. 1 lurodrig it      2943 Mar 15 16:35 xe.rsp  
-rw-r--r--. 1 lurodrig it       193 Mar 15 16:35 setPassword.sh

I know that this rpm is not exactly the same version as the one stated in the project. However I can see that is the one used in the Dockerfile.xe:


    # Environment variables required for this build (do NOT change)  
    # -------------------------------------------------------------  
    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" 

Am I missing something?

Thanks in advance,

Luis

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions