-
-
Notifications
You must be signed in to change notification settings - Fork 287
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]: Allow Oracle container builder to set the database name #1233
Comments
I believe the method is private because previous versions did not support changing the database name, but it seems this is supported in version 18c and later (see ORACLE_DATABASE). We need to update the builder's logic accordingly. In the meantime, you can either use the generic builder or set the environment variable and use your own connection string as a workaround for this limitation (maybe we need to adjust the wait strategy too). |
I was working on this a few days ago. Pull request #1231 did not come out of the blue, it was a prerequisite to select the correct default database name ( I have a branch that support all Oracle versions: https://github.com/0xced/testcontainers-dotnet/tree/feature/oracle-all-versions |
Use the correct database default name depending on the Docker image version and enable setting a custom database name for Oracle 18 and onwards. Fixes testcontainers#1233
Use the correct database default name depending on the Docker image version and enable setting a custom database name for Oracle 18 and onwards. Fixes testcontainers#1233
Use the correct database default name depending on the Docker image version and enable setting a custom database name for Oracle 18 and onwards. Fixes testcontainers#1233
Problem
The currently used Oracle image uses a database named
XEPDB1
. In the more recent versions of the image it is namedFREEPDB1
. The current API allows us to change the image to use with Oracle but doesn't permit to change the database name:WithDatabase(string)
exists but is privateMerge(configuration)
exists but is protected and the class sealedAs a consequence there is no way to pick a newer version of this image, potentially with better security.
Solution
Make
WithDatabase
publicBenefit
Not having to request the image to be changed in TestContainers.
Alternatives
N/A
Would you like to help contributing this enhancement?
Yes
The text was updated successfully, but these errors were encountered: