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 targeting a build stage when building a Docker image #628

Merged
merged 4 commits into from
Aug 7, 2023

Conversation

ClaytonNorthey92
Copy link
Contributor

@ClaytonNorthey92 ClaytonNorthey92 commented Aug 5, 2023

allowing a developer the ability to choose a build stage using the withTarget method, see discussion here

fixes 629

@netlify
Copy link

netlify bot commented Aug 5, 2023

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 4919f66
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/64d1118b94c86b00081af93c
😎 Deploy Preview https://deploy-preview-628--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 Aug 7, 2023
@cristianrgreco
Copy link
Collaborator

cristianrgreco commented Aug 7, 2023

Thanks for the PR, much appreciated!

Just a few nitpicks. Please also update the docs to let people know this is possible

@cristianrgreco cristianrgreco changed the title added way to specify build target stage when building a docker image Add support for targeting a build stage when building a Docker image Aug 7, 2023
@ClaytonNorthey92
Copy link
Contributor Author

hey @cristianrgreco thanks for the feedback, I...

  • removed the = undefined from the target attribute definition in generic-container-builder.ts
  • using a label stage when testing, opposed to logs, to simplify the test
  • fixed the type you pointed out
  • updated the README

let me know if there is anything else 👍

@cristianrgreco cristianrgreco merged commit dada8a0 into testcontainers:main Aug 7, 2023
24 checks passed
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.

Support for Stopping at Target Build Stages
2 participants