-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oracle image for TestContainers in Java on Apple cpu #84
Comments
Hi @ltpitt, Thanks for using these images!
Yup, there is. Throw Colima away and just pull the latest version. Docker will automatically pull the ARM one. :) |
I cry hot tears of joy! Thank you! But I still get the same error, what am I doing wrong?: My Dockerfile: |
Ah, wait! |
Exactly, don't use gvenzl/oracle-xe, use gvenzl/oracle-free :) Hopefully, the tears didn't drown your Mac :) |
It works awesome, deeply thank you! Give the fact I am speaking with the creator himself... I use your image in testcontainers to test a java app but, as you might imagine, startup is quite slow. Deeply thanks and, again, congratulations for the great work. |
I'm glad to hear it and thank you for your kind words! There are a couple of tricks that might work, but ultimately, it comes down to how fast the pull of the image and how fast the extraction vs. startup time are. You might find that using the non-faststart image (the one without having The most important thing is to avoid pulling the image over and over again. I'm not a Testcontainers expert and don't know whether it does or doesn't do that but a discussion over here indicates that it throws the image away right away again. Outside of image download, given that you are using the I hope this helps! |
Thanks for your kind help and pointers, I will read avidly :) Have an awesome day! |
Thank you, you too! |
Hello,
I am experiencing significant performance issues when running integration tests using the Testcontainers Oracle PDB image on my Apple M1 Pro (32GB RAM).
Due to the ARM architecture of my Mac, I am using Colima to manage Docker containers. Here are the details of my setup and the steps I have taken:
System Configuration:
Device: Apple M1 Pro
RAM: 32GB
Docker Management Tool: Colima
Steps Taken:
Started Colima with the following configuration:
colima start --arch x86_64 --vm-type vz --cpu 8 --memory 16
Enabled container reuse in testcontainers.properties:
testcontainers.reuse.enable=true
Configured the Oracle container with .withReuse(true) in the code.
Despite these optimizations, the integration tests remain very slow and almost unusable. The qemu-system process consumes a significant amount of CPU and memory, indicating that the emulation might be causing the slowdown.
Request:
Could you suggest any additional techniques or configurations to improve the performance of the Testcontainers Oracle PDB image on an Apple M1 Pro?
Is there an ARM64-compatible version of the Oracle PDB image available that I can use to avoid the overhead of emulation?
Thank you for your assistance and patience.
The text was updated successfully, but these errors were encountered: