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

feat: Align IImage properties with Docker DSL #1256

Merged
merged 4 commits into from
Sep 10, 2024

Conversation

HofmeisterAn
Copy link
Collaborator

What does this PR do?

The PR updates the IImage and DockerImage implementations. It improves parsing and resolving the reference format, using parts of the official Go implementation. The table below shows the changes:

Actual Expected
Registry - myregistryhost:5000
Repository myregistryhost:5000/fedora fedora/httpd
Name httpd -
Tag version1.0 version1.0
Digest - sha256:37a3b014d320...
GetHostname() myregistryhost:5000 myregistryhost:5000

The Registry and Digest properties have been added to the interface. The Name property is marked obsolete and will be removed in the next minor version. The Repository property now resolves the correct value from the reference format according to the Docker DSL.

I’ve marked all obsolete parts and provided guidance on how to transition to the new interface. I tried to make the transition as smooth as possible, but relying on the Repository property might cause issues since it now resolves a different value than before.

Why is it important?

These changes align with other Testcontainers language implementations and address inconsistent APIs and incorrect DSL.

Related issues

@HofmeisterAn HofmeisterAn added enhancement New feature or request breaking change Causing compatibility issues labels Sep 9, 2024
Copy link

netlify bot commented Sep 9, 2024

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 0e656ad
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/66df3f6f07c0380008c73871
😎 Deploy Preview https://deploy-preview-1256--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.

@HofmeisterAn HofmeisterAn changed the title Feature/align iimage dockerimage with dsl feat: Align IImage properties with Docker DSL Sep 9, 2024
@HofmeisterAn HofmeisterAn merged commit 1d32bc8 into develop Sep 10, 2024
14 checks passed
@HofmeisterAn HofmeisterAn deleted the feature/align-iimage-dockerimage-with-dsl branch September 10, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Causing compatibility issues enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: Refactor the IImage properties (align with DSL)
2 participants