Skip to content

Move from Testcontainers oracle-xe module to oracle-free #435

@eddumelendez

Description

@eddumelendez

What problem are you trying to solve?

Oracle Database Free is the successor of Oracle XE

What precondition(s) should be checked before applying this recipe?

  • Testcontainers version should be >= 1.19.2
  • org.testcontainers:oracle-xe dependency should change to org.testcontainers:oracle-free
  • org.testcontainers.containers.OracleContainer is used

Describe the situation before applying the recipe

import org.testcontainers.containers.OracleContainer;

class A {
    void foo() {
        var dockerImageName = DockerImageName.parse("gvenzl/oracle-free:23.3-slim-faststart").asCompatibleSubstituteFor("gvenzl/oracle-xe")
        OracleContainer oracle = new OracleContainer(dockerImageName);
    }
}

Describe the situation after applying the recipe

import org.testcontainers.oracle.OracleContainer;

class A {
    void foo() {
        OracleContainer oracle = new OracleContainer("gvenzl/oracle-free:23.3-slim-faststart");
    }
}

Have you considered any alternatives or workarounds?

Any additional context

OracleContainer from oracle-xe module depends on gvenzl/oracle-xe image. Meanwhile, OracleContainer from oracle-free module depends on gvenzl/oracle-free.

We can check if

Are you interested in contributing this recipe to OpenRewrite?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions