File tree 1 file changed +3
-1
lines changed
modules/toxiproxy/src/main/java/org/testcontainers/containers
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> {
25
25
26
26
private static final String DEFAULT_TAG = "2.1.0" ;
27
27
28
+ private static final DockerImageName GHCR_IMAGE_NAME = DockerImageName .parse ("ghcr.io/shopify/toxiproxy" );
29
+
28
30
private static final int TOXIPROXY_CONTROL_PORT = 8474 ;
29
31
30
32
private static final int FIRST_PROXIED_PORT = 8666 ;
@@ -51,7 +53,7 @@ public ToxiproxyContainer(String dockerImageName) {
51
53
52
54
public ToxiproxyContainer (final DockerImageName dockerImageName ) {
53
55
super (dockerImageName );
54
- dockerImageName .assertCompatibleWith (DEFAULT_IMAGE_NAME );
56
+ dockerImageName .assertCompatibleWith (DEFAULT_IMAGE_NAME , GHCR_IMAGE_NAME );
55
57
56
58
addExposedPorts (TOXIPROXY_CONTROL_PORT );
57
59
setWaitStrategy (new HttpWaitStrategy ().forPath ("/version" ).forPort (TOXIPROXY_CONTROL_PORT ));
You can’t perform that action at this time.
0 commit comments