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

Force testcontainers to always pull images when creating container #175

Merged
merged 1 commit into from
Apr 6, 2020
Merged

Force testcontainers to always pull images when creating container #175

merged 1 commit into from
Apr 6, 2020

Conversation

ikolomiyets
Copy link
Contributor

It is sometimes useful when running integration test scenarios to force Testcontainers Go to always pull the image. For instance, when test cases are relying on the image with the latest tag and latest tag is always moved when the new image is pushed to the registry.

This PR adds a property to the ContainerRequest structure that instructs CreateContainer to always pull the image even if it already exists when the property in question is set to true. Otherwise, behaviour does not change.

…to always pull the image even if it already exists
@gianarb gianarb self-requested a review April 6, 2020 07:40
@gianarb gianarb added the feature New functionality or new behaviors on the existing one label Apr 6, 2020
@gianarb gianarb merged commit b5ed60c into testcontainers:master Apr 6, 2020
@gianarb
Copy link
Collaborator

gianarb commented Apr 6, 2020

Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality or new behaviors on the existing one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants