Skip to content

Commit

Permalink
chore(deps): update localstack/localstack docker tag to v3.3.0 (#661)
Browse files Browse the repository at this point in the history
* chore(deps): update localstack/localstack docker tag to v3.3.0

* chore(deps) : Upgrade container to latest version

* feat : fix spotless formatting issue

* feat : minor changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
rajadilipkolli and renovate[bot] authored Mar 29, 2024
1 parent 799111e commit f68c9dc
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class LocalStackConfig {
static {
localStackContainer =
new LocalStackContainer(
DockerImageName.parse("localstack/localstack").withTag("3.1.0"))
DockerImageName.parse("localstack/localstack").withTag("3.3.0"))
.withServices(CLOUDWATCH)
.withExposedPorts(4566);
localStackContainer.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@Slf4j
public class LocalStackConfig {
protected static final LocalStackContainer LOCAL_STACK_CONTAINER =
new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.1.0"))
new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.3.0"))
.withCopyFileToContainer(
MountableFile.forHostPath(".localstack/"),
"/etc/localstack/init/ready.d/")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public class LocalStackConfig {
private static final Logger log = LoggerFactory.getLogger(LocalStackConfig.class);

static LocalStackContainer localStackContainer =
new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.2.0"));
new LocalStackContainer(
DockerImageName.parse("localstack/localstack").withTag("3.3.0"));

static {
localStackContainer.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public class TestKinesisProducerApplication {
@Bean
LocalStackContainer localStackContainer(DynamicPropertyRegistry dynamicPropertyRegistry) {
LocalStackContainer localStackContainer =
new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.2.0"));
new LocalStackContainer(
DockerImageName.parse("localstack/localstack").withTag("3.3.0"));
dynamicPropertyRegistry.add("spring.cloud.aws.endpoint", localStackContainer::getEndpoint);
dynamicPropertyRegistry.add(
"spring.cloud.aws.region.static", localStackContainer::getRegion);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ class ApplicationIntegrationTest {
static Network network = Network.newNetwork();

@Container
static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:16.1-alpine")
static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:16.2-alpine")
.withNetwork(network)
.withNetworkAliases("postgres")
.withReuse(true);

@Container
static LocalStackContainer localstack = new LocalStackContainer(
DockerImageName.parse("localstack/localstack:3.1.0"))
DockerImageName.parse("localstack/localstack").withTag("3.3.0"))
.withNetwork(network)
.withEnv("LOCALSTACK_HOST", "localhost.localstack.cloud")
.withEnv("LAMBDA_DOCKER_NETWORK", ((Network.NetworkImpl) network).getName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public class ContainersConfig {
@Bean
@ServiceConnection
PostgreSQLContainer<?> postgreSQLContainer() {
return new PostgreSQLContainer<>(DockerImageName.parse("postgres:16.1-alpine"));
return new PostgreSQLContainer<>(DockerImageName.parse("postgres:16.2-alpine"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class LocalStackContainerConfig {

@Container
private static final LocalStackContainer localStackContainer =
new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.1.0"))
new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.3.0"))
.withCopyFileToContainer(
MountableFile.forHostPath("localstack/"),
"/etc/localstack/init/ready.d/")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ PostgreSQLContainer<?> postgresContainer() {
LocalStackContainer localstackContainer(DynamicPropertyRegistry registry) {
LocalStackContainer localStackContainer =
new LocalStackContainer(
DockerImageName.parse("localstack/localstack").withTag("3.2.0"))
DockerImageName.parse("localstack/localstack").withTag("3.3.0"))
.withCopyFileToContainer(
MountableFile.forHostPath(".localstack/"),
"/etc/localstack/init/ready.d/")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
public interface DBTestContainer {

@Container @ServiceConnection
PostgreSQLContainer<?> sqlContainer = new PostgreSQLContainer<>("postgres:16.1-alpine");
PostgreSQLContainer<?> sqlContainer = new PostgreSQLContainer<>("postgres:16.2-alpine");
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class LocalStackContainerConfig {

@Container
private static final LocalStackContainer localStackContainer =
new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.1.0"))
new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("3.3.0"))
.withCopyFileToContainer(
MountableFile.forHostPath("localstack/"),
"/etc/localstack/init/ready.d/")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class LocalStackConfig {

static final LocalStackContainer localStackContainer =
new LocalStackContainer(
DockerImageName.parse("localstack/localstack").withTag("3.1.0"));
DockerImageName.parse("localstack/localstack").withTag("3.3.0"));

static {
localStackContainer.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public class ContainersConfig {

@Bean
LocalStackContainer localstackContainer(DynamicPropertyRegistry registry) {
LocalStackContainer localStackContainer =
new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.1.0"));
LocalStackContainer localStackContainer = new LocalStackContainer(
DockerImageName.parse("localstack/localstack").withTag("3.3.0"));
registry.add("spring.cloud.aws.credentials.access-key", localStackContainer::getAccessKey);
registry.add("spring.cloud.aws.credentials.secret-key", localStackContainer::getSecretKey);
registry.add("spring.cloud.aws.region.static", localStackContainer::getRegion);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
properties = {
"spring.jpa.hibernate.ddl-auto=validate",
"spring.test.database.replace=none",
"spring.datasource.url=jdbc:tc:postgresql:16.1-alpine:///db"
"spring.datasource.url=jdbc:tc:postgresql:16.2-alpine:///db"
})
class SchemaValidationTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ public class TestcontainersConfig {
@Bean
@ServiceConnection
public PostgreSQLContainer<?> postgreSQLContainer() {
return new PostgreSQLContainer<>("postgres:16.1-alpine");
return new PostgreSQLContainer<>("postgres:16.2-alpine");
}

@Bean
LocalStackContainer localstackContainer(DynamicPropertyRegistry registry) {
LocalStackContainer localStackContainer =
new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.1.0"))
new LocalStackContainer(
DockerImageName.parse("localstack/localstack").withTag("3.3.0"))
.withReuse(true);
registry.add("spring.cloud.aws.credentials.access-key", localStackContainer::getAccessKey);
registry.add("spring.cloud.aws.credentials.secret-key", localStackContainer::getSecretKey);
Expand Down

0 comments on commit f68c9dc

Please sign in to comment.