Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KIE Sandbox Quarkus Accelerator] 10.0.x - Wrong Default Image for Data-Index TestContainer #1722

Open
rbcb-bedag opened this issue Dec 18, 2024 · 1 comment

Comments

@rbcb-bedag
Copy link

rbcb-bedag commented Dec 18, 2024

Setup

Windows 23H2 but executed inside WSL 2 Distro Ubuntu 22.04.3 LTS.
Used branch 10.0.x

Problem

When using the project setup of the KIE Sandbox Quarkus Accelerator (eg. https://github.com/apache/incubator-kie-sandbox-quarkus-accelerator/tree/10.0.0) it wont startup correctly, because the TestContainer for data-index cannot be pulled => it does not exist on docker-hub.

apache/incubator-kie-kogito-data-index-ephemeral:10.0 not found

The problem is, that it should use the tag 10.0.0 and not 10.0

How to reproduce:

Clone Accelerator Repository:

git clone https://github.com/apache/incubator-kie-sandbox-quarkus-accelerator.git;
cd incubator-kie-sandbox-quarkus-accelerator

Checkout branch 10.0.x

git checkout tags/10.0.0 -b 10.0.x

Do a maven build

mvn clean install

Startup in dev mode

mvn quarkus:dev

Output:

2024-12-18 08:12:58,672 INFO  [tc.tes.1.0] (build-17) Container testcontainers/sshd:1.1.0 started in PT2.291080682S
2024-12-18 08:13:00,835 ERROR [com.git.doc.api.asy.ResultCallbackTemplate] (docker-java-stream--288756554) Error during callback: com.github.dockerjava.api.exception.NotFoundException: Status 404: {"message":"manifest for apache/incubator-kie-kogito-data-index-ephemeral:10.0 not found: manifest unknown: manifest unknown"}

Temporary Fix (for developers)

We can manually define inside the application.properties which tag should be used for the devservice.

# src/main/resources/application.properties
quarkus.kogito.devservices.image-name=apache/incubator-kie-kogito-data-index-ephemeral:10.0.0

Now starting the application should spin up testcontainers for inifinispan and dataindex.

mvn quarkus:dev

image

Also to consider

This problem occurs for the template with infinispan (eg. ephemeral storage for dataindex).
Maybe it also occurs when using postgres as persistence, but to test this we need to adjust the dependencies in the pom.xml (for now i don't know how the correct setup would look like).

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

No branches or pull requests

1 participant