File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
modules/toxiproxy/src/main/java/org/testcontainers/containers Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments