Skip to content

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

Closed
@jwedel

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions