Skip to content

Commit

Permalink
Switch default image to ghcr.io and update default tag to 2.4.0 (#5173)
Browse files Browse the repository at this point in the history
Co-authored-by: Eddú Meléndez <eddu.melendez@gmail.com>
  • Loading branch information
gmunozfe and eddumelendez authored Jun 28, 2022
1 parent 56d0cf1 commit 5a2d76f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public class ToxiproxyContainer extends GenericContainer<ToxiproxyContainer> {

private static final String DEFAULT_TAG = "2.1.0";

private static final DockerImageName GHCR_IMAGE_NAME = DockerImageName.parse("ghcr.io/shopify/toxiproxy");

private static final int TOXIPROXY_CONTROL_PORT = 8474;

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

public ToxiproxyContainer(final DockerImageName dockerImageName) {
super(dockerImageName);
dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME);
dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME, GHCR_IMAGE_NAME);

addExposedPorts(TOXIPROXY_CONTROL_PORT);
setWaitStrategy(new HttpWaitStrategy().forPath("/version").forPort(TOXIPROXY_CONTROL_PORT));
Expand Down

0 comments on commit 5a2d76f

Please sign in to comment.