From 6dfd6d6cecb805e09925ba03d64fc0ffd14a4834 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Thu, 14 Dec 2023 10:46:26 -0600 Subject: [PATCH] Move Pulsar container to use 'latest' tag See gh-1376 --- .../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 81ab5167741..bb5ec99a7c5 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.0") + 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 0ff94b15aba..381ec337321 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.0"); + 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 1bca13fe254..cbd95ab4042 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.0' + image: 'apachepulsar/pulsar:latest' ports: - '6650' - '8080'