From 89d749f8ea74e2775844318e57704225e142db5c Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Fri, 15 Dec 2023 10:07:32 -0600 Subject: [PATCH] Update Pulsar container to use 'latest' tag --- .../start/site/container/SimpleDockerServiceResolver.java | 3 +-- .../SpringPulsarProjectGenerationConfigurationTests.java | 2 +- start-site/src/test/resources/compose/pulsar.yaml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/start-site/src/main/java/io/spring/start/site/container/SimpleDockerServiceResolver.java b/start-site/src/main/java/io/spring/start/site/container/SimpleDockerServiceResolver.java index aca7232e06..bb5ec99a7c 100644 --- a/start-site/src/main/java/io/spring/start/site/container/SimpleDockerServiceResolver.java +++ b/start-site/src/main/java/io/spring/start/site/container/SimpleDockerServiceResolver.java @@ -113,8 +113,7 @@ private static DockerService postgres() { } private static DockerService pulsar() { - // The latest tag they provide is not the 'latest' GA - return DockerService.withImageAndTag("apachepulsar/pulsar:3.1.1") + return DockerService.withImageAndTag("apachepulsar/pulsar") .website("https://hub.docker.com/r/apachepulsar/pulsar") .command("bin/pulsar standalone") .ports(8080, 6650) diff --git a/start-site/src/test/java/io/spring/start/site/extension/dependency/springpulsar/SpringPulsarProjectGenerationConfigurationTests.java b/start-site/src/test/java/io/spring/start/site/extension/dependency/springpulsar/SpringPulsarProjectGenerationConfigurationTests.java index 5fef285463..381ec33732 100644 --- a/start-site/src/test/java/io/spring/start/site/extension/dependency/springpulsar/SpringPulsarProjectGenerationConfigurationTests.java +++ b/start-site/src/test/java/io/spring/start/site/extension/dependency/springpulsar/SpringPulsarProjectGenerationConfigurationTests.java @@ -172,7 +172,7 @@ private void assertPulsarServiceConnectionAdded(ServiceConnections connections) assertThat(connection.containerClassNameGeneric()).isFalse(); assertThat(connection.dockerService()).satisfies((dockerService) -> { assertThat(dockerService.getImage()).isEqualTo("apachepulsar/pulsar"); - assertThat(dockerService.getImageTag()).isEqualTo("3.1.1"); + assertThat(dockerService.getImageTag()).isEqualTo("latest"); assertThat(dockerService.getWebsite()).isEqualTo("https://hub.docker.com/r/apachepulsar/pulsar"); assertThat(dockerService.getCommand()).isEqualTo("bin/pulsar standalone"); assertThat(dockerService.getPorts()).containsExactlyInAnyOrder(8080, 6650); diff --git a/start-site/src/test/resources/compose/pulsar.yaml b/start-site/src/test/resources/compose/pulsar.yaml index 013e7f4a9c..cbd95ab404 100644 --- a/start-site/src/test/resources/compose/pulsar.yaml +++ b/start-site/src/test/resources/compose/pulsar.yaml @@ -1,6 +1,6 @@ services: pulsar: - image: 'apachepulsar/pulsar:3.1.1' + image: 'apachepulsar/pulsar:latest' ports: - '6650' - '8080'