[hibernate-dev] Tuned Elasticsearch docker image for development / testing / demoing

Sanne Grinovero sanne at hibernate.org
Mon Jun 12 07:11:46 EDT 2017


out of desperation for my laptop taking ages to run Hibernate Search /
Elasticsearch tests,
I created a new Docker image which improves my build times from 40
minutes to 5 minutes:

 - https://hub.docker.com/r/sanne/elasticsearch-light-testing/
 - https://github.com/Sanne/elasticsearch-light-testing

YMMV, it's great for my old laptop but only wins me a couple of
seconds on the main workstation.

Start it with:

docker run -ti --tmpfs /run
--tmpfs=/opt/elasticsearch/volatile/data:uid=1000 --tmpfs
--tmpfs=/opt/elasticsearch/volatile/logs:uid=1000 -p 9200:9200 -p
9300:9300 --name es-it sanne/elasticsearch-light-testing

Run the Hibernate Search testsuite with:

mvn clean install -Dtest.elasticsearch.host.provided=true


More information about the hibernate-dev mailing list