Skip to content

Switch toxiproxy default image to ghcr.io and update default tag to 2.4.0#5173

Merged
eddumelendez merged 3 commits intotestcontainers:masterfrom
gmunozfe:switch_ghcr
Jun 28, 2022
Merged

Switch toxiproxy default image to ghcr.io and update default tag to 2.4.0#5173
eddumelendez merged 3 commits intotestcontainers:masterfrom
gmunozfe:switch_ghcr

Conversation

@gmunozfe
Copy link
Contributor

@gmunozfe gmunozfe commented Mar 14, 2022

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.

@gmunozfe gmunozfe changed the title Switch default image to ghcr.io and update default tag to 2.3.0 Switch toxiproxy default image to ghcr.io and update default tag to 2.3.0 Mar 14, 2022
@Aloren
Copy link
Contributor

Aloren commented Mar 18, 2022

@gmunozfe 2.4.0 is the latest version. Maybe makes sense to use it instead of 2.3.0?

@gmunozfe gmunozfe changed the title Switch toxiproxy default image to ghcr.io and update default tag to 2.3.0 Switch toxiproxy default image to ghcr.io and update default tag to 2.4.0 Mar 18, 2022
@gmunozfe
Copy link
Contributor Author

@Aloren sure, updated with the last one, thanks for pointing out

@gmunozfe
Copy link
Contributor Author

hi, any update on this?

Copy link
Member

@eddumelendez eddumelendez left a 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.


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");
Copy link
Member

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);

@gmunozfe gmunozfe requested a review from a team June 28, 2022 04:11
@eddumelendez eddumelendez added this to the next milestone Jun 28, 2022
@eddumelendez eddumelendez merged commit 5a2d76f into testcontainers:master Jun 28, 2022
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.

3 participants