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

break: use a docker image type for modules #2744

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mdelapenya
Copy link
Member

What does this PR do?

It adds a new type alias for string to represent Docker image names, which will be used in the signature of all the Run functions in the modules.

All calls to Run with an untyped string will not break, but users of the lib passing a typed string will have to change it to a testcontainers.DockerImage.

Why is it important?

It will allow providing support for the compatible-for feature in testcontainers-java, among other Docker image validations.

@mdelapenya mdelapenya added the breaking change Causing compatibility issues. label Aug 22, 2024
@mdelapenya mdelapenya self-assigned this Aug 22, 2024
Copy link

netlify bot commented Aug 22, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 8f4b456
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/66c76756ffe28e0009843780
😎 Deploy Preview https://deploy-preview-2744--testcontainers-go.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.

// Valid examples:
// - "alpine:3.12"
// - "docker.io/nginx:latest"
// - "my-registry.local:5000/my-image:my-tag"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be sha256:abc... form valid as well? Could you add example to the doc?

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

Successfully merging this pull request may close these issues.

2 participants