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 the ability to specify an image's platform. #7313

Merged
merged 4 commits into from Nov 29, 2023

Conversation

shawjef3
Copy link
Contributor

It's possible to specify the platform for a container by using GenericContainer#withCreateContainerCmdModifier. However, it's not possible to do the same when creating an image, and so it's not possible to both create and test an image for a platform.

This adds ImageFromDockerfile#withBuildImageCmdModifier which makes this possible.

#7312

It's possible to specify the platform for a container by using `GenericContainer#withCreateContainerCmdModifier`.
However, it's not possible to do the same when creating an image, and so it's
not possible to both create and test an image for a platform.

This adds `ImageFromDockerfile#withBuildImageCmdModifier` which makes this possible.
@shawjef3 shawjef3 requested a review from a team as a code owner July 18, 2023 19:12
@eddumelendez eddumelendez added this to the next milestone Nov 29, 2023
@eddumelendez eddumelendez merged commit d5dc4d3 into testcontainers:main Nov 29, 2023
88 checks passed
@eddumelendez
Copy link
Member

Thanks for your contribution, @shawjef3 !

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

Successfully merging this pull request may close these issues.

None yet

2 participants