Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ jobs:
with:
distribution: "adopt"
java-version: "8"
- name: Pull Docker containers
run: |
set -e
nohup docker pull localstack/localstack-ext > /dev/null &
- name: Compile Tests
run: |
set -e
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Simply add the following dependency to your `pom.xml` file:
<dependency>
<groupId>cloud.localstack</groupId>
<artifactId>localstack-utils</artifactId>
<version>0.2.23</version>
<version>0.3.0</version>
</dependency>
```

Expand Down Expand Up @@ -114,6 +114,7 @@ To publish a release of the library, the "Maven Release" Github Action can be ma

## Change Log

* v0.3.0: Makes localstack/localstack-pro the default image. For more information see: https://blog.localstack.cloud/localstack-single-image-next-steps/
* v0.2.23: Fix S3 endpoints to be compatible with LocalStack v2
* v0.2.22: Fix sqs event mapping for new event format, some test fixes
* v0.2.21: Bump version of AWS SDK v1; add AWS SDK v2 sync clients to TestUtils; add docker executable path under homebrew
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>cloud.localstack</groupId>
<artifactId>localstack-utils</artifactId>
<packaging>jar</packaging>
<version>0.2.23</version>
<version>0.3.0</version>
<name>localstack-utils</name>

<description>Java utilities for the LocalStack platform.</description>
Expand Down
9 changes: 2 additions & 7 deletions src/main/java/cloud/localstack/docker/Container.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public class Container {

private static final Logger LOG = Logger.getLogger(Container.class.getName());

private static final String LOCALSTACK_IMAGE = "localstack/localstack";
private static final String LOCALSTACK_PRO_IMAGE = "localstack/localstack-pro";
private static final String LOCALSTACK_IMAGE_TAG = "latest";
private static final String LOCALSTACK_PORT_EDGE = "4566";
Expand Down Expand Up @@ -51,7 +50,7 @@ public class Container {
* @param pullNewImage determines if docker pull should be run to update to the latest image of the container
* @param randomizePorts determines if the container should expose the default local stack ports or if it should expose randomized ports
* in order to prevent conflicts with other localstack containers running on the same machine
* @param imageName the name of the image defaults to {@value LOCALSTACK_IMAGE} if null
* @param imageName the name of the image defaults to {@value LOCALSTACK_PRO_IMAGE} if null
* @param imageTag the tag of the image to pull, defaults to {@value LOCALSTACK_IMAGE_TAG} if null
* @param environmentVariables map of environment variables to be passed to the docker container
* @param portMappings port mappings
Expand All @@ -68,11 +67,7 @@ public static Container createLocalstackContainer(
bindMounts = bindMounts == null ? Collections.emptyMap() : bindMounts;
portMappings = portMappings == null ? Collections.emptyMap() : portMappings;

String imageNameOrDefault = imageName;
if (StringUtils.isEmpty(imageName)) {
String apiKeyEnv = System.getenv(Constants.ENV_LOCALSTACK_API_KEY);
imageNameOrDefault = !StringUtils.isEmpty(apiKeyEnv) ? LOCALSTACK_PRO_IMAGE : LOCALSTACK_IMAGE;
}
String imageNameOrDefault = !StringUtils.isEmpty(imageName) ? imageName : LOCALSTACK_PRO_IMAGE;
String fullImageName = imageNameOrDefault + ":" + (imageTag == null ? LOCALSTACK_IMAGE_TAG : imageTag);
boolean imageExists = new ListImagesCommand().execute().contains(fullImageName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
public class TestContainersSqsTest {

private static final String DOCKER_IMAGE_NAME = "localstack/localstack:latest";
private static final String DOCKER_IMAGE_NAME = "localstack/localstack-pro:latest";

private AmazonSQS amazonSQS;

Expand Down
Loading