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

Add support for specifying image platform #806

Merged
merged 9 commits into from
Aug 16, 2024

Conversation

weyert
Copy link
Contributor

@weyert weyert commented Jul 28, 2024

Adds the ability to the pass --platform-argument for the docker container

fixes #773

Adds the ability to the pass `--platform`-argument for the docker container

refs testcontainers#773
Copy link

netlify bot commented Jul 28, 2024

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 033ca2b
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/66bb387198bcaf00082456da
😎 Deploy Preview https://deploy-preview-806--testcontainers-node.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.

@cristianrgreco cristianrgreco added enhancement New feature or request minor Backward compatible functionality labels Jul 28, 2024
@cristianrgreco cristianrgreco changed the title feat: add withPlatform-function to TestContainer Add support for specifying image platform Jul 30, 2024
@@ -123,6 +123,19 @@ describe("GenericContainer", () => {
expect(output).toEqual(expect.stringContaining("/tmp"));
});

it("should set platform", async () => {
// This test uses an older version of cristianrgreco/testcontainer as all the other tests are using the latest version and the code doesn't pull the image again when the platform differs at this time
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I have updated it.

@weyert
Copy link
Contributor Author

weyert commented Aug 12, 2024

@cristianrgreco Anything else needed to get this merged?

@weyert
Copy link
Contributor Author

weyert commented Aug 13, 2024

@cristianrgreco I updated the documentation to add a callout to the new withPlatform-option

@weyert
Copy link
Contributor Author

weyert commented Aug 15, 2024

@cristianrgreco Any more changes needed? Love to stop using my fork of this package :)

@cristianrgreco cristianrgreco merged commit 1947842 into testcontainers:main Aug 16, 2024
94 checks passed
@weyert weyert deleted the add-with-platform branch August 16, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor Backward compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add withPlatform() method to GenericContainer
2 participants