Skip to content

Commit 5a2d76f

Browse files
Switch default image to ghcr.io and update default tag to 2.4.0 (#5173)
Co-authored-by: Eddú Meléndez <[email protected]>
1 parent 56d0cf1 commit 5a2d76f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/toxiproxy/src/main/java/org/testcontainers/containers/ToxiproxyContainer.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public class ToxiproxyContainer extends GenericContainer<ToxiproxyContainer> {
2525

2626
private static final String DEFAULT_TAG = "2.1.0";
2727

28+
private static final DockerImageName GHCR_IMAGE_NAME = DockerImageName.parse("ghcr.io/shopify/toxiproxy");
29+
2830
private static final int TOXIPROXY_CONTROL_PORT = 8474;
2931

3032
private static final int FIRST_PROXIED_PORT = 8666;
@@ -51,7 +53,7 @@ public ToxiproxyContainer(String dockerImageName) {
5153

5254
public ToxiproxyContainer(final DockerImageName dockerImageName) {
5355
super(dockerImageName);
54-
dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME);
56+
dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME, GHCR_IMAGE_NAME);
5557

5658
addExposedPorts(TOXIPROXY_CONTROL_PORT);
5759
setWaitStrategy(new HttpWaitStrategy().forPath("/version").forPort(TOXIPROXY_CONTROL_PORT));

0 commit comments

Comments
 (0)