-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Switch toxiproxy default image to ghcr.io and update default tag to 2.4.0 #5173
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
Conversation
@gmunozfe 2.4.0 is the latest version. Maybe makes sense to use it instead of 2.3.0? |
@Aloren sure, updated with the last one, thanks for pointing out |
hi, any update on this? |
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 for your contribution @gmunozfe ! I have added a suggestion, after that I would be glad to merge it.
@@ -21,8 +21,8 @@ | |||
*/ | |||
public class ToxiproxyContainer extends GenericContainer<ToxiproxyContainer> { | |||
|
|||
private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName.parse("shopify/toxiproxy"); | |||
private static final String DEFAULT_TAG = "2.1.0"; | |||
private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName.parse("ghcr.io/shopify/toxiproxy"); |
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.
we need to keep backward compatibility, in this case I would suggest to add a new image name
private static final DockerImageName GHCR_IMAGE_NAME = DockerImageName.parse("ghcr.io/shopify/toxiproxy");
and add it here
dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME, GHCR_IMAGE_NAME);
Toxiproxy is no longer updating their images in dockerhub but in ghcr.
Updated DEFAULT_IMAGE_NAME to "ghcr.io/shopify/toxiproxy" and DEFAULT_TAG to "2.4.0". Notice that "toxiproxy-java" library 2.1.5 (the one included in testcontainers module) is compatible with 2.4.0.