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

Improve Oracle support #1321

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

0xced
Copy link
Contributor

@0xced 0xced commented Dec 20, 2024

What does this PR do?

This pull request selects the correct database default name depending on the Docker image version and enable setting a custom database name for Oracle 18 and onwards.

Why is it important?

This enables using the new Oracle Docker images (e.g. gvenzl/oracle-free) which doesn't work with the current implementation because of the hardcoded XEPDB1 default database.

Note

The gvenzl/oracle-free image is the first one with arm64 support which is especially interesting for macOS users.

Related issues

Closes #1233

How to test this PR

The OracleContainerTest class has been augmented to test many variations of the Oracle Docker images.

  • gvenzl/oracle-xe:11
  • gvenzl/oracle-xe:18
  • gvenzl/oracle-xe:21
  • gvenzl/oracle-free:23

Copy link

netlify bot commented Dec 20, 2024

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 84f5181
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/6765a8126120540008af166c
😎 Deploy Preview https://deploy-preview-1321--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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
@0xced 0xced force-pushed the feature/oracle-all-versions branch from 0ade2f4 to 84f5181 Compare December 20, 2024 17:23
@0xced
Copy link
Contributor Author

0xced commented Dec 20, 2024

11 Oracle containers from 4 images and the GitHub runner fails with No space left on device 😖

@HofmeisterAn
Copy link
Collaborator

11 Oracle containers from 4 images and the GitHub runner fails with No space left on device 😖

It looks like we are right at the edge. Although I expected ~20GB to be enough, I thought the root filesystem had something like ~30GB left. Maybe we can save some MBs by restoring the NuGet cache on the temp disk, but that likely won't be enough too.

gvenzl/oracle-xe:11-slim-faststart 1.64GB
gvenzl/oracle-xe:18-slim-faststart 4.44GB
gvenzl/oracle-xe:21-slim-faststart 4.66GB
gvenzl/oracle-xe:21.3.0-slim-faststart 4.66GB
gvenzl/oracle-free:23-slim-faststart 4.62GB

What do you think about removing 18 and 21 (as we are most likely testing the same configurations)? Maybe that is enough already.

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

Successfully merging this pull request may close these issues.

[Enhancement]: Allow Oracle container builder to set the database name
2 participants