abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
19.81k stars 398 forks source link

Stuck in the image building phase when trying to build oracle database 19.3.0 image #453

Open idandam opened 2 years ago

idandam commented 2 years ago

Description

Oracle database version 19.3.0. Using official image.

In the second phase of the build step, the script "installDBBinaries.sh", which comes with the docker-image for for version 19.3.0 in github oracle docker-image, runs forever.

Version

Colima Version:0.4.6 Lima Version: 0.12.0 Qemu Version: 7.1.0

Operating System

Reproduction Steps

  1. get Dockerfile and samples for version 19.3.0 for Oracle database from docker-image.
  2. run _colima start -c 4 -m 12 -a x8664
  3. run buildContainerImage.sh. this script comes with (1)

Expected behaviour

to build the image in a decent amount of time.

Additional context

Actually i left it to run over the night and it still ran after i checked the status, which was 10+ hours. I can tell it was running, just never finishes. When i the ran lima stop the following output was noticed:

ERROR: Oracle Database container image was NOT successfully created. ERROR: Check the output and correct any reported problems with the build operation.

abiosoft commented 2 years ago

This is due to emulation of x86_64 on your M1 device.

The recommendation is to get a arm64 version of the docker image. Emulation works for simple cases but would likely fail for much complex environments like databases.

codrutpopescu commented 2 years ago

@idandam Building the full Oracle EE will not work. For now only the XE edition and custom image of gvenzl/oracle-xe works with colima on M1/M2.