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

Pin tags #671

Merged
merged 8 commits into from
Apr 29, 2018
Merged

Pin tags #671

merged 8 commits into from
Apr 29, 2018

Conversation

rnorth
Copy link
Member

@rnorth rnorth commented Apr 28, 2018

No description provided.

@rnorth rnorth requested a review from bsideup April 28, 2018 20:12
@rnorth rnorth requested a review from kiview as a code owner April 28, 2018 20:12
Copy link
Member

@bsideup bsideup left a comment

Choose a reason for hiding this comment

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

👍 just some minors

CHANGELOG.md Outdated
@@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
### Fixed

### Changed
- Database container images are now pinned to a specific version rather than using `latest`. The tags selected are the most recent as of the time of this change. If a JDBC URL is used with no tag specified, a WARN level log message is output, pending a future change to make tags mandatory in the JDBC URL.
Copy link
Member

Choose a reason for hiding this comment

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

Please link the PR :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Now that I have one I will :D

Copy link
Member

Choose a reason for hiding this comment

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

I have the same issue every time I submit a PR :D Even started to predict the next number 😂


`jdbc:tc:mysql://somehostname:someport/databasename`

*(Note: this will use the latest version of MySQL)*
*(Note: this will implicitly use the `latest` version of MySQL. Using `latest` is risky and Testcontainers will soon require an explicit tag name to be provided)*
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should implicitly set it to 5 if no version was provided?

Copy link
Member Author

Choose a reason for hiding this comment

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

Perhaps - I think I might sleep on it. Both approaches have tradeoffs, so I guess it's just a case of which one we think is least troublesome for users.

Copy link
Member

Choose a reason for hiding this comment

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

True. Just thought that given the fact that the latest MySQL broke our own tests, a lot of users will also be affected, especially the ones who use the JDBC url approach :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I've decided 😆
Updated following your suggestion. We're now using a fixed version (which is similar to current latest) if there is no tag provided in the JDBC URL.

@bsideup bsideup added this to the next milestone Apr 28, 2018
@rnorth rnorth changed the title Pin tags WIP: Pin tags Apr 29, 2018
@rnorth rnorth changed the title WIP: Pin tags Pin tags Apr 29, 2018
@rnorth rnorth merged commit bead0b3 into master Apr 29, 2018
@rnorth rnorth deleted the pin-tags branch April 29, 2018 13:04
bsideup pushed a commit that referenced this pull request Apr 29, 2018
* Pin tags where it makes sense to do so
* Update changelog and docs
* Use fixed tag names for JDBC URLs when none specified
(equivalent to current 'latest')
@bsideup bsideup mentioned this pull request Apr 29, 2018
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.

2 participants