Skip to content

Rename ActiveMQ docker image#2086

Merged
mhalbritter merged 2 commits intospring-io:mainfrom
eddumelendez:rename-activemq-docker-image
Mar 25, 2026
Merged

Rename ActiveMQ docker image#2086
mhalbritter merged 2 commits intospring-io:mainfrom
eddumelendez:rename-activemq-docker-image

Conversation

@eddumelendez
Copy link
Copy Markdown
Contributor

From apache/activemq-classic to apache/activemq.
See https://lists.apache.org/list.html?dev@activemq.apache.org

Signed-off-by: Eddú Meléndez eddu.melendez@gmail.com

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 21, 2026
@mhalbritter mhalbritter added type: enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 23, 2026
@mhalbritter mhalbritter self-assigned this Feb 23, 2026
@mhalbritter
Copy link
Copy Markdown
Contributor

Hello,

that change leads to this failure:

Caused by: java.lang.IllegalStateException: Failed to verify that image 'apache/activemq:latest' is a compatible substitute for 'apache/activemq-classic'. This generally means that you are trying to use an image that Testcontainers has not been designed to use. If this is deliberate, and if you are confident that the image is compatible, you should declare compatibility in code using the `asCompatibleSubstituteFor` method. For example:
   DockerImageName myImage = DockerImageName.parse("apache/activemq:latest").asCompatibleSubstituteFor("apache/activemq-classic");
and then use `myImage` instead.
	at org.testcontainers.utility.DockerImageName.assertCompatibleWith(DockerImageName.java:279) ~[testcontainers-2.0.3.jar:2.0.3]
	at org.testcontainers.activemq.ActiveMQContainer.<init>(ActiveMQContainer.java:48) ~[testcontainers-activemq-2.0.3.jar:na]
	at com.example.demo.TestcontainersConfiguration.activemqContainer(TestcontainersConfiguration.java:15) ~[test/:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Method.java:569) ~[na:na]
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:155) ~[spring-beans-7.0.5.jar:7.0.5]
	... 44 common frames omitted

Is this something which will be fixed in Testcontainers?

@mhalbritter mhalbritter added the status: waiting-for-feedback We need additional information before we can continue label Feb 23, 2026
@eddumelendez
Copy link
Copy Markdown
Contributor Author

We should wait until next Testcontainers release to support compatibility with that new image. That means it will be compatible with latest spring boot project, once the dependency is updated.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Feb 23, 2026
@eddumelendez
Copy link
Copy Markdown
Contributor Author

Testcontainers 2.0.4 contains the change for this. Once Spring Boot updates the version, this change can be merged, I think it will apply for 4.1.0-M3

@mhalbritter
Copy link
Copy Markdown
Contributor

Yes, it now works with 4.0.4 and 4.1.0-M3 because they use Testcontainers 2.0.4. This leaves 3.5.x as broken. Are you able to fix the PR so that it only applies to 4.0.x and up?

@mhalbritter mhalbritter added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels Mar 20, 2026
@eddumelendez
Copy link
Copy Markdown
Contributor Author

PR updated

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Mar 20, 2026
@mhalbritter mhalbritter force-pushed the rename-activemq-docker-image branch from f1b4f46 to 480254f Compare March 25, 2026 08:52
@mhalbritter mhalbritter merged commit 44c88b6 into spring-io:main Mar 25, 2026
1 of 3 checks passed
@mhalbritter
Copy link
Copy Markdown
Contributor

Thanks @eddumelendez !

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants