Skip to content

Conversation

@julianladisch
Copy link
Contributor

@julianladisch julianladisch commented Jan 26, 2026

Purpose

localstack 4.10.0 is outdated. We need to be compatible with the latest AWS S3.

Localstack 4.10.0 is very big resulting in long download time and high memory consumption.

Approach

Switch from 4.10.0 to s3-latest that is current and much smaller.

localstack 4.10.0 image size: 432 MB - https://hub.docker.com/r/localstack/localstack/tags?name=4.10.0
localstack s3-latest image size: 106 MB - https://hub.docker.com/r/localstack/localstack/tags?name=s3-latest

Remove waitingFor, it's provided by testcontainers: https://github.com/testcontainers/testcontainers-java/blob/1.17.6/modules/localstack/src/main/java/org/testcontainers/containers/localstack/LocalStackContainer.java#L98

(Note: If testcontainer's waitingFor doesn't work properly bump testcontainers to a more recent version: https://github.com/testcontainers/testcontainers-java/blob/1.21.4/modules/localstack/src/main/java/org/testcontainers/containers/localstack/LocalStackContainer.java#L126 )

Pre-Merge Checklist:

Before merging this PR, please go through the following list and take appropriate actions.

  • Does this PR meet or exceed the expected quality standards?
    • Code coverage on new code is 80% or greater
    • Duplications on new code is 3% or less
    • There are no major code smells or security issues
  • Does this introduce breaking changes?
    • There are no breaking changes in this PR.

Purpose

localstack 4.10.0 is outdated. We need to be compatible with the latest AWS S3.

Localstack 4.10.0 is very big resulting in long download time and high memory consumption.

Approach

Switch from 4.10.0 to s3-latest that is current and much smaller.

localstack 4.10.0 image size: 432 MB - https://hub.docker.com/r/localstack/localstack/tags?name=4.10.0
localstack s3-latest image size: 106 MB - https://hub.docker.com/r/localstack/localstack/tags?name=s3-latest

Pre-Merge Checklist:

Before merging this PR, please go through the following list and take appropriate actions.

- Does this PR meet or exceed the expected quality standards?
  - [x] Code coverage on new code is 80% or greater
  - [x] Duplications on new code is 3% or less
  - [x] There are no major code smells or security issues
- Does this introduce breaking changes?
  - [x] There are no breaking changes in this PR.
@julianladisch julianladisch requested a review from a team January 26, 2026 10:17
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants