Skip to content
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

[Enhancement]: Support new oracle/free image with ARM support #1329

Closed
jwedel opened this issue Jan 2, 2025 · 1 comment
Closed

[Enhancement]: Support new oracle/free image with ARM support #1329

jwedel opened this issue Jan 2, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@jwedel
Copy link

jwedel commented Jan 2, 2025

Problem

According to this comment the oracle/xe image is deprecated. Also this image does (and will) not support ARM and thus will not work on e.g. Mac. ARM is currently only supported with CPU emulated colima which is very slow even on very fast hardware.

Solution

The solution is to use the almost compatible oracle/free image.

I was able to successfully use the existing test container with changed configuration:

  private readonly OracleContainer _container = new OracleBuilder()
    .WithImage("gvenzl/oracle-free:23.5-slim-faststart")
    .WithEnvironment("ORACLE_DATABASE", OracleBuilder.DefaultDatabase)
    .Build();

The only change apart from the image tag is that the default database is is called FREEPDB1 instead of XEPDB1. As the WithDatabasebuilder method is private, I could not change this and needed to use the env var to create second database.

Benefit

  • Future proof image (no deprecated one)
  • ARM support for macs without the use of slow colima

Alternatives

Keep it as is.

Would you like to help contributing this enhancement?

Yes

@jwedel jwedel added the enhancement New feature or request label Jan 2, 2025
@HofmeisterAn
Copy link
Collaborator

There is already a PR: #1321.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants