Skip to content

Commit

Permalink
Accept localstack/localstack-pro image name (#6836)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddumelendez authored Mar 31, 2023
1 parent 1bd177f commit a692602
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public class LocalStackContainer extends GenericContainer<LocalStackContainer> {

private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName.parse("localstack/localstack");

private static final DockerImageName LOCALSTACK_PRO_IMAGE_NAME = DockerImageName.parse("localstack/localstack-pro");

private static final String DEFAULT_TAG = "0.11.2";

private static final String DEFAULT_REGION = "us-east-1";
Expand Down Expand Up @@ -100,7 +102,7 @@ public LocalStackContainer(final DockerImageName dockerImageName) {
@Deprecated
public LocalStackContainer(final DockerImageName dockerImageName, boolean useLegacyMode) {
super(dockerImageName);
dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME);
dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME, LOCALSTACK_PRO_IMAGE_NAME);

this.legacyMode = useLegacyMode;
String version = dockerImageName.getVersionPart();
Expand Down

0 comments on commit a692602

Please sign in to comment.