`ElasticsearchContainer` in 1.17.x does not handle `latest` tags correctly
See original GitHub issueWe’re currently trying to leverage testcontainers-java with the elasticsearch module and noticed that the most recent version 1.17.1 breaks our use of the elasticsearch module. I think it’s due to this commit https://github.com/testcontainers/testcontainers-java/commit/c7449edda49ff780921067c4a03014ce68b2aa41
We’re currently trying to leverage elasticsearch version 7.4.2 but our containers fail to start with the error
org.testcontainers.containers.ContainerLaunchException: Container startup failed
Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
Caused by: com.github.dockerjava.api.exception.NotFoundException:
Status 404: {"message":"Could not find the file /usr/share/elasticsearch/config/certs/http_ca.crt in container df2a5216dc041fb543e4d156a05ec268f1db4cadb5efef170200b841d712b2a9"}
Please advise?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Elasticsearch container - Testcontainers for Java
This module helps running elasticsearch using Testcontainers. Note that it's based on the official Docker image provided by elastic. Usage example. You can...
Read more >Logging OpenShift Container Platform 4.11
Garbage collection is the process of cleaning up cluster resources, such as terminated containers and images that are not referenced by any running...
Read more >Sysdig On-Premises Release Notes
0 does not yet support Kubernetes 1.22. Upgrade Process. **Supported Upgrades From: **4.0.x. For the full supportability matrix, ...
Read more >ONAP on Kubernetes
I am new to kubernetes installation of ONAP and have problems cloning onap ... we can use 1.17.x - but it is a...
Read more >openshift-ansible-3.10.35-1.git.0.e5b821e | Build Info
(mbruzek@gmail.com) - Default CFME nodeselector should be a list of str ... has no tags (pschiffe@redhat.com) - No code in openshift-ansible ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This seems indeed the culprit as
new ComparableVersion("latest").isGreaterThanOrEqualTo("8.0.0")
returnstrue
.It might make sense to just log a warning, if the CA cert file is not available instead of throwing a hard exception, as the version can be anything with custom images. I’ll open a PR.
is there a better way to load custom plugins and use custom images like this?
It seems like I’d want
ElasticsearchContainer
to have a constructor that takes a typeImageFromDockerfile
and does the right thing.