Source: https://itnext.io/oracle-on-arm-mac-m1-m2-docker-images-99ed67ed6ba6
Tested with OrbStack on an M1 Pro MacBook Pro.
-
Clone the official Oracle Docker images repository:
git clone https://github.com/oracle/docker-images
-
Download the Oracle Database 19c aarch64 installer
Download the installer from Oracle Database 19c and put them into the dockerfiles/19.3.0 folder. The needed file is named LINUX.ARM64_1919000_db_home.zip.
-
Build the 19c Enterprise Edition container
cd OracleDatabase/SingleInstance/dockerfiles/ ./buildContainerImage.sh -v 19.3.0 -eAt the end of this script, you should see the image in your Docker images:
oracle/database:19.3.0-ee -
Check out this fork for the slim fast container
git clone -b 19c-arm-slim https://github.com/marcelo-ochoa/oci-oracle-free cd oci-oracle-freeNote: Make sure to checkout the
19c-arm-slimbranch. -
Build the slim version
docker buildx build --build-arg BUILD_MODE=SLIM -t oracle/database:19.3.0-ee-slim -f Dockerfile.193 .At the end, you should see this image:
oracle/database:19.3.0-ee-slim -
Finally build slim-faststart version
docker buildx build --build-arg BASE_IMAGE=oracle/database:19.3.0-ee-slim -t oracle/database:19.3.0-ee-slim-faststart -f Dockerfile.faststart .At the end, you should see this image:
oracle/database:19.3.0-ee-slim-faststart -
Use the
oracle/database:19.3.0-ee-slim-faststartimage in your Docker Compose
Did u manage to download the Oracle 19c installer?