-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
ElasticSearch Dev Service image cannot be replaced with custom-built image #27862
Comments
/cc @gsmet, @loicmathieu, @yrodiere |
Is there a chance to make the solution from #20945 the default behavior for all dev services? If the user exchanges the image, he or she probably know why. Would be unfortunate if someone has to stumble upon this problem for each (new) dev service first. |
Seems like an oversight. Would you like to provide a fix? |
@languitar yes, we should consider the user knows what they're doing. So if you feel like it, you can generalize this solution to all dev services. And let us know if you're not interested as it's probably something we should prioritize for 2.13. Thanks! |
Fixes quarkusio#27862 (cherry picked from commit cf81292)
Describe the bug
In the ElasticSearch DEV service you can use your own image (
quarkus.elasticsearch.devservices.image-name
), however it is not accepted because it is not name-compatible with the expected value:docker.elastic.co/elasticsearch/elasticsearch
.Expected behavior
Any image that extends an ElasticSearch image is accepted and used.
Actual behavior
How to Reproduce?
mvn io.quarkus.platform:quarkus-maven-plugin:2.12.1.Final:create
-DprojectGroupId=org.acme
-DprojectArtifactId=elasticsearch-quickstart
-DclassName="org.acme.datasource.GreetingResource"
-Dextensions="resteasy,resteasy-jackson,elasticsearch-rest-client"
cd elasticsearch-quickstart/
echo "quarkus.elasticsearch.devservices.image-name = debian:buster" >> ./src/main/resources/application.properties
mvn verify
Output of
uname -a
orver
Linux ****** 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "17.0.3" 2022-04-19 OpenJDK Runtime Environment (build 17.0.3+7-Ubuntu-0ubuntu0.20.04.1) OpenJDK 64-Bit Server VM (build 17.0.3+7-Ubuntu-0ubuntu0.20.04.1, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.12.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63) Maven home: /opt/maven Java version: 17.0.3, vendor: Private Build, runtime: /usr/lib/jvm/java-17-openjdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "5.4.72-microsoft-standard-wsl2", arch: "amd64", family: "unix"
Additional information
This bug has the identical problem as: #20945
The text was updated successfully, but these errors were encountered: