docker-images
docker-images copied to clipboard
can't read /etc/security/limits.d/oracle-database-preinstall-18c.conf: No such file or directory on M1
I use:
Mac M1 Version 12.6, Chip Apple M1 Pro Virtual Machine Lima : limactl version 0.12.0
Maybe there idea how to run Oracle in M1, I have Lima und Ubuntu and has not worked?
Thank you
I try this command ./buildContainerImage.sh -v 11.2.0.2 -x
Then I check on Docker that gives me this result:
usname@s-MBP dockerfiles % ./buildContainerImage.sh -v 11.2.0.2 -x
Checking Docker version.
Ignored MD5 sum, 'md5sum' command not available.
==========================
Container runtime info:
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.9.1)
compose: Docker Compose (Docker Inc., v2.10.2)
extension: Manages Docker extensions (Docker Inc., v0.2.9)
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
scan: Docker Scan (Docker Inc., v0.19.0)
Server:
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 4
Server Version: 20.10.17
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
runc version: v1.1.4-0-g5fd4c4d
init version: de40ad0
Security Options:
seccomp
Profile: default
cgroupns
Kernel Version: 5.10.124-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: aarch64
CPUs: 5
Total Memory: 7.667GiB
Name: docker-desktop
ID: SYMH:ZPLE:Y7C5:U3VT:BZY3:CWTI:TONQ:WBCP:UZOF:6MVB:AVBI:M7AS
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5000
127.0.0.0/8
Live Restore Enabled: false
==========================
Building image 'oracle/database:11.2.0.2-xe' ...
[+] Building 0.7s (6/7)
=> [internal] load build definition from Dockerfile.xe 0.0s
=> => transferring dockerfile: 3.64kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/oraclelinux:7-slim 0.6s
=> [internal] load build context 0.0s
=> => transferring context: 11.21kB 0.0s
=> CACHED [1/3] FROM docker.io/library/oraclelinux:7-slim@sha256:072ae4b680a4e8c87416c8d2caab36f51d7d6cd88ed190e7f8a7047cedd489d5 0.0s
=> ERROR [2/3] COPY oracle-xe-11.2.0-1.0.x86_64.rpm.zip xe.rsp runOracle.sh setPassword.sh checkDBStatus.sh /install/ 0.0s
------
> [2/3] COPY oracle-xe-11.2.0-1.0.x86_64.rpm.zip xe.rsp runOracle.sh setPassword.sh checkDBStatus.sh /install/:
------
failed to compute cache key: "/oracle-xe-11.2.0-1.0.x86_64.rpm.zip" not found: not found
ERROR: Oracle Database container image was NOT successfully created.
ERROR: Check the output and correct any reported problems with the build operation.
username@s-MBP dockerfiles % cd 21.3.0
username@s-MBP 21.3.0 % sudo docker build -t oracle/database:21.3.0-xe -f Dockerfile.xe .
Password:
[+] Building 16.4s (7/8)
=> [internal] load build definition from Dockerfile.xe 0.0s
=> => transferring dockerfile: 3.34kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/oraclelinux:7-slim 0.6s
=> [internal] load build context 0.0s
=> => transferring context: 35.30kB 0.0s
=> CACHED [1/4] FROM docker.io/library/oraclelinux:7-slim@sha256:072ae4b 0.0s
=> [2/4] COPY checkSpace.sh oracle-xe-21c.conf setupLinuxEnv.sh runOracl 0.0s
=> ERROR [3/4] RUN cd /install && mkdir -p /opt/oracle && mv ru 15.6s
------
> [3/4] RUN cd /install && mkdir -p /opt/oracle && mv runOracle.sh setPassword.sh checkDBStatus.sh createDB.sh runUserScripts.sh configTcps.sh /opt/oracle/ && chmod ug+x *.sh && sync && ./checkSpace.sh && yum -y install expect && ./setupLinuxEnv.sh && chown -R oracle:oinstall /opt/oracle /home/oracle && sed -i -r 's/(^session\s+include\s+system-auth)/# \1/' /etc/pam.d/su && unbuffer yum -y install https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm && yum -y remove expect && rm -rf /var/cache/yum && rm -rf /var/tmp/yum-* && mv oracle-xe-21c.conf /etc/sysconfig/ && cd $HOME && rm -rf /install && /opt/oracle/oraInventory/orainstRoot.sh && /opt/oracle/product/21c/dbhomeXE/root.sh && echo 'export ORACLE_SID=XE' > .bashrc:
#7 0.301 Loaded plugins: ovl
#7 13.05 Resolving Dependencies
#7 13.05 --> Running transaction check
#7 13.05 ---> Package expect.aarch64 0:5.45-14.el7_1 will be installed
#7 13.05 --> Processing Dependency: libtcl8.5.so()(64bit) for package: expect-5.45-14.el7_1.aarch64
#7 13.15 --> Running transaction check
#7 13.15 ---> Package tcl.aarch64 1:8.5.13-8.el7 will be installed
#7 13.18 --> Finished Dependency Resolution
#7 13.18
#7 13.18 Dependencies Resolved
#7 13.18
#7 13.18 ================================================================================
#7 13.18 Package Arch Version Repository Size
#7 13.18 ================================================================================
#7 13.18 Installing:
#7 13.18 expect aarch64 5.45-14.el7_1 ol7_latest 260 k
#7 13.18 Installing for dependencies:
#7 13.18 tcl aarch64 1:8.5.13-8.el7 ol7_latest 1.8 M
#7 13.18
#7 13.18 Transaction Summary
#7 13.18 ================================================================================
#7 13.18 Install 1 Package (+1 Dependent package)
#7 13.18
#7 13.18 Total download size: 2.1 M
#7 13.18 Installed size: 5.1 M
#7 13.18 Downloading packages:
#7 13.64 --------------------------------------------------------------------------------
#7 13.64 Total 4.6 MB/s | 2.1 MB 00:00
#7 13.64 Running transaction check
#7 13.65 Running transaction test
#7 13.66 Transaction test succeeded
#7 13.66 Running transaction
#7 13.90 Installing : 1:tcl-8.5.13-8.el7.aarch64 1/2
#7 14.17 Installing : expect-5.45-14.el7_1.aarch64 2/2
#7 14.18 Verifying : 1:tcl-8.5.13-8.el7.aarch64 1/2
#7 14.19 Verifying : expect-5.45-14.el7_1.aarch64 2/2
#7 14.21
#7 14.21 Installed:
#7 14.21 expect.aarch64 0:5.45-14.el7_1
#7 14.21
#7 14.21 Dependency Installed:
#7 14.21 tcl.aarch64 1:8.5.13-8.el7
#7 14.21
#7 14.21 Complete!
#7 14.33 Loaded plugins: ovl
#7 14.37 No package oracle-database-preinstall-21c available.
#7 14.54 Resolving Dependencies
#7 14.54 --> Running transaction check
#7 14.54 ---> Package openssl.aarch64 1:1.0.2k-25.el7_9 will be installed
#7 14.55 --> Processing Dependency: make for package: 1:openssl-1.0.2k-25.el7_9.aarch64
#7 14.63 --> Running transaction check
#7 14.63 ---> Package make.aarch64 1:3.82-24.el7 will be installed
#7 14.64 --> Finished Dependency Resolution
#7 14.65
#7 14.65 Dependencies Resolved
#7 14.65
#7 14.65 ================================================================================
#7 14.65 Package Arch Version Repository Size
#7 14.65 ================================================================================
#7 14.65 Installing:
#7 14.65 openssl aarch64 1:1.0.2k-25.el7_9 ol7_latest 487 k
#7 14.65 Installing for dependencies:
#7 14.65 make aarch64 1:3.82-24.el7 ol7_latest 415 k
#7 14.65
#7 14.65 Transaction Summary
#7 14.65 ================================================================================
#7 14.65 Install 1 Package (+1 Dependent package)
#7 14.65
#7 14.65 Total download size: 901 k
#7 14.65 Installed size: 1.9 M
#7 14.65 Downloading packages:
#7 15.05 --------------------------------------------------------------------------------
#7 15.05 Total 2.2 MB/s | 901 kB 00:00
#7 15.05 Running transaction check
#7 15.06 Running transaction test
#7 15.07 Transaction test succeeded
#7 15.07 Running transaction
#7 15.12 Installing : 1:make-3.82-24.el7.aarch64 1/2
#7 15.41 Installing : 1:openssl-1.0.2k-25.el7_9.aarch64 2/2
#7 15.42 Verifying : 1:make-3.82-24.el7.aarch64 1/2
#7 15.42 Verifying : 1:openssl-1.0.2k-25.el7_9.aarch64 2/2
#7 15.44
#7 15.44 Installed:
#7 15.44 openssl.aarch64 1:1.0.2k-25.el7_9
#7 15.44
#7 15.44 Dependency Installed:
#7 15.44 make.aarch64 1:3.82-24.el7
#7 15.44
#7 15.45 Complete!
#7 15.60 chpasswd: line 1: user 'oracle' does not exist
#7 15.60 chpasswd: error detected, changes ignored
------
executor failed running [/bin/sh -c cd $INSTALL_DIR && mkdir -p $ORACLE_BASE && mv $RUN_FILE $PWD_FILE $CHECK_DB_FILE $CREATE_DB_FILE $USER_SCRIPTS_FILE $CONFIG_TCPS_FILE $ORACLE_BASE/ && chmod ug+x *.sh && sync && ./$CHECK_SPACE_FILE && yum -y install expect && ./$SETUP_LINUX_FILE && chown -R oracle:oinstall $ORACLE_BASE /home/oracle && sed -i -r 's/(^session\s+include\s+system-auth)/# \1/' /etc/pam.d/su && unbuffer yum -y install $INSTALL_FILE_1 && yum -y remove expect && rm -rf /var/cache/yum && rm -rf /var/tmp/yum-* && mv $CONF_FILE /etc/sysconfig/ && cd $HOME && rm -rf $INSTALL_DIR && $ORACLE_BASE/oraInventory/orainstRoot.sh && $ORACLE_HOME/root.sh && echo 'export ORACLE_SID=XE' > .bashrc]: exit code: 1
username@-MBP 21.3.0 % cd ..
usaname@-MBP dockerfiles % ./buildContainerImage.sh -v 18.4.0 -x
Checking Docker version.
Ignored MD5 checksum.
==========================
Container runtime info:
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.9.1)
compose: Docker Compose (Docker Inc., v2.10.2)
extension: Manages Docker extensions (Docker Inc., v0.2.9)
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
scan: Docker Scan (Docker Inc., v0.19.0)
Server:
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 4
Server Version: 20.10.17
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
runc version: v1.1.4-0-g5fd4c4d
init version: de40ad0
Security Options:
seccomp
Profile: default
cgroupns
Kernel Version: 5.10.124-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: aarch64
CPUs: 5
Total Memory: 7.667GiB
Name: docker-desktop
ID: SYMH:ZPLE:Y7C5:U3VT:BZY3:CWTI:TONQ:WBCP:UZOF:6MVB:AVBI:M7AS
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5000
127.0.0.0/8
Live Restore Enabled: false
==========================
Building image 'oracle/database:18.4.0-xe' ...
[+] Building 16.2s (8/8) FINISHED
=> [internal] load build definition from Dockerfile.xe 0.0s
=> => transferring dockerfile: 3.21kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/oraclelinux:7-slim 1.2s
=> [auth] library/oraclelinux:pull token for registry-1.docker.io 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 10.25kB 0.0s
=> CACHED [1/3] FROM docker.io/library/oraclelinux:7-slim@sha256:072ae4b 0.0s
=> [2/3] COPY checkSpace.sh runOracle.sh setPassword.sh checkDBStatus.sh 0.0s
=> ERROR [3/3] RUN chmod ug+x /install/*.sh && sync && /install 14.9s
------
> [3/3] RUN chmod ug+x /install/*.sh && sync && /install/checkSpace.sh && cd /install && yum -y install expect openssl oracle-database-preinstall-18c && sed -i -e 's/\(oracle\s\+hard\s\+nofile\)/# \1/' /etc/security/limits.d/oracle-database-preinstall-18c.conf && unbuffer yum -y install https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-18c-1.0-1.x86_64.rpm && yum -y remove expect && rm -rf /var/cache/yum && rm -rf /var/tmp/yum-* && mkdir -p /opt/oracle/scripts/setup && mkdir /opt/oracle/scripts/startup && ln -s /opt/oracle/scripts /docker-entrypoint-initdb.d && mkdir -p /opt/oracle/oradata /home/oracle && chown -R oracle:oinstall /opt/oracle /home/oracle && mv /install/runOracle.sh /opt/oracle/ && mv /install/setPassword.sh /opt/oracle/ && mv /install/checkDBStatus.sh /opt/oracle/ && mv /install/oracle-xe-18c.conf /etc/sysconfig/ && ln -s /opt/oracle/setPassword.sh / && cd $HOME && rm -rf /install && chmod ug+x /opt/oracle/*.sh:
#8 0.271 Loaded plugins: ovl
#8 13.00 No package oracle-database-preinstall-18c available.
#8 13.05 Resolving Dependencies
#8 13.05 --> Running transaction check
#8 13.05 ---> Package expect.aarch64 0:5.45-14.el7_1 will be installed
#8 13.06 --> Processing Dependency: libtcl8.5.so()(64bit) for package: expect-5.45-14.el7_1.aarch64
#8 13.15 ---> Package openssl.aarch64 1:1.0.2k-25.el7_9 will be installed
#8 13.15 --> Processing Dependency: make for package: 1:openssl-1.0.2k-25.el7_9.aarch64
#8 13.15 --> Running transaction check
#8 13.15 ---> Package make.aarch64 1:3.82-24.el7 will be installed
#8 13.15 ---> Package tcl.aarch64 1:8.5.13-8.el7 will be installed
#8 13.18 --> Finished Dependency Resolution
#8 13.18
#8 13.18 Dependencies Resolved
#8 13.18
#8 13.18 ================================================================================
#8 13.18 Package Arch Version Repository Size
#8 13.18 ================================================================================
#8 13.18 Installing:
#8 13.18 expect aarch64 5.45-14.el7_1 ol7_latest 260 k
#8 13.18 openssl aarch64 1:1.0.2k-25.el7_9 ol7_latest 487 k
#8 13.18 Installing for dependencies:
#8 13.18 make aarch64 1:3.82-24.el7 ol7_latest 415 k
#8 13.18 tcl aarch64 1:8.5.13-8.el7 ol7_latest 1.8 M
#8 13.18
#8 13.18 Transaction Summary
#8 13.18 ================================================================================
#8 13.18 Install 2 Packages (+2 Dependent packages)
#8 13.18
#8 13.18 Total download size: 3.0 M
#8 13.18 Installed size: 7.0 M
#8 13.18 Downloading packages:
#8 13.63 --------------------------------------------------------------------------------
#8 13.63 Total 6.6 MB/s | 3.0 MB 00:00
#8 13.64 Running transaction check
#8 13.66 Running transaction test
#8 13.67 Transaction test succeeded
#8 13.67 Running transaction
#8 13.73 Installing : 1:make-3.82-24.el7.aarch64 1/4
#8 14.19 Installing : 1:tcl-8.5.13-8.el7.aarch64 2/4
#8 14.46 Installing : expect-5.45-14.el7_1.aarch64 3/4
#8 14.52 Installing : 1:openssl-1.0.2k-25.el7_9.aarch64 4/4
#8 14.53 Verifying : 1:tcl-8.5.13-8.el7.aarch64 1/4
#8 14.53 Verifying : expect-5.45-14.el7_1.aarch64 2/4
#8 14.54 Verifying : 1:openssl-1.0.2k-25.el7_9.aarch64 3/4
#8 14.55 Verifying : 1:make-3.82-24.el7.aarch64 4/4
#8 14.56
#8 14.56 Installed:
#8 14.56 expect.aarch64 0:5.45-14.el7_1 openssl.aarch64 1:1.0.2k-25.el7_9
#8 14.56
#8 14.56 Dependency Installed:
#8 14.56 make.aarch64 1:3.82-24.el7 tcl.aarch64 1:8.5.13-8.el7
#8 14.56
#8 14.56 Complete!
**#8 14.58 sed: can't read /etc/security/limits.d/oracle-database-preinstall-18c.conf: No such file or directory**
------
executor failed running [/bin/sh -c chmod ug+x $INSTALL_DIR/*.sh && sync && $INSTALL_DIR/$CHECK_SPACE_FILE && cd $INSTALL_DIR && yum -y install expect openssl oracle-database-preinstall-18c && sed -i -e 's/\(oracle\s\+hard\s\+nofile\)/# \1/' /etc/security/limits.d/oracle-database-preinstall-18c.conf && unbuffer yum -y install $INSTALL_FILE_1 && yum -y remove expect && rm -rf /var/cache/yum && rm -rf /var/tmp/yum-* && mkdir -p $ORACLE_BASE/scripts/setup && mkdir $ORACLE_BASE/scripts/startup && ln -s $ORACLE_BASE/scripts /docker-entrypoint-initdb.d && mkdir -p $ORACLE_BASE/oradata /home/oracle && chown -R oracle:oinstall $ORACLE_BASE /home/oracle && mv $INSTALL_DIR/$RUN_FILE $ORACLE_BASE/ && mv $INSTALL_DIR/$PWD_FILE $ORACLE_BASE/ && mv $INSTALL_DIR/$CHECK_DB_FILE $ORACLE_BASE/ && mv $INSTALL_DIR/$CONF_FILE /etc/sysconfig/ && ln -s $ORACLE_BASE/$PWD_FILE / && cd $HOME && rm -rf $INSTALL_DIR && chmod ug+x $ORACLE_BASE/*.sh]: exit code: 2
ERROR: Oracle Database container image was NOT successfully created.
ERROR: Check the output and correct any reported problems with the build operation.