oraclesean / cloud-native-oracle

A repository of container image builds for Oracle databases, with support for Intel, Apple Silicon, and ARM processors.
31 stars 6 forks source link

detect both arm64 and aarch64 as ARM64 architectures during uname checks #3

Closed alexhafner closed 8 months ago

alexhafner commented 8 months ago

When working with the current project defaults on an Apple silicon Macbook running Sonoma, the build fails with

> [db 6/6] RUN  chmod ug+x /opt/scripts/manageOracle.sh &&      /opt/scripts/manageOracle.sh -O:
1.594 0
1.614 unzip:  cannot find or open /opt/install/LINUX.X64_193000_db_home.zip, /opt/install/LINUX.X64_193000_db_home.zip.zip or /opt/install/LINUX.X64_193000_db_home.zip.ZIP.
1.616 ERROR: The installation file (LINUX.X64_193000_db_home.zip) was not found.
1.616 Exiting...
1.632 -bash: /u01/app/oracle/product/19.19/dbhome_1/runInstaller: No such file or directory

The architecture of the Oracle Linux 8 image is not detected as uname -m returns the synonymous value aarch64 instead of arm64. This change allows for either of the 2 values to indicate an ARM64 architecture.

alexhafner commented 8 months ago

Hi @oraclesean - Thanks for a great repository. I arrived here looking to build natively on ARM when running MacOS. I've run into a couple of quirks when running through the default install with my config, so I'm raising a couple of PRs in case this is useful for someone else.

oraclesean commented 8 months ago

Hi @oraclesean - Thanks for a great repository. I arrived here looking to build natively on ARM when running MacOS. I've run into a couple of quirks when running through the default install with my config, so I'm raising a couple of PRs in case this is useful for someone else.

@alexhafner Thanks for the kudos and I'm happy to know it's been useful!

oraclesean commented 8 months ago

Thanks for the fix @alexhafner!