-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Conversation
Adds the ability to the pass `--platform`-argument for the docker container refs testcontainers#773
✅ Deploy Preview for testcontainers-node ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
packages/testcontainers/src/generic-container/generic-container.test.ts
Outdated
Show resolved
Hide resolved
withPlatform
-function to TestContainerUpdated the `image-client` so it also allows passing the `platform` configuration option to `dockerode`
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
packages/testcontainers/src/generic-container/generic-container.test.ts
Outdated
Show resolved
Hide resolved
@cristianrgreco Anything else needed to get this merged? |
@cristianrgreco I updated the documentation to add a callout to the new |
@cristianrgreco Any more changes needed? Love to stop using my fork of this package :) |
Adds the ability to the pass
--platform
-argument for the docker containerfixes #773