diff --git a/itests/pom.xml b/itests/pom.xml
index 98e98e9e5..0d0ccde8c 100644
--- a/itests/pom.xml
+++ b/itests/pom.xml
@@ -196,6 +196,14 @@
+
+
+
+
+
+
@@ -210,6 +218,9 @@
elasticsearch
+
+ 9400
+
true
@@ -229,6 +240,7 @@
foo
elasticsearch
+ ${elasticsearch.port}
@@ -247,43 +259,64 @@
- com.github.alexcojocaru
- elasticsearch-maven-plugin
-
- 6.29
+ io.fabric8
+ docker-maven-plugin
-
- contextElasticSearchITests
- 9500
- 9400
- ${elasticsearch.test.version}
- true
- 120
-
- -Xms4g -Xmx4g
-
-
-
- false
- ${project.build.directory}/snapshots_repository
- false
- OPTIONS,HEAD,GET,POST,PUT,DELETE
- Authorization,X-Requested-With,X-Auth-Token,Content-Type,Content-Length
-
-
+ itests-elasticsearch
+
+
+ docker.elastic.co/elasticsearch/elasticsearch:${elasticsearch.test.version}
+ elasticsearch
+
+
+ ${elasticsearch.port}:9200
+
+
+ single-node
+ -Xms8g -Xmx8g -Dcluster.default.index.settings.number_of_replicas=0
+ false
+ false
+ /tmp/snapshots_repository
+ false
+
+
+
+ ${project.build.directory}/snapshots_repository:/tmp/snapshots_repository
+
+
+
+
+ http://localhost:${elasticsearch.port}
+ GET
+ 200
+
+
+
+ ${project.build.directory}/elasticsearch-port.properties
+
+
+
-
+
+
+ remove-existing-container
+ pre-integration-test
+
+ stop
+ remove
+
+
+
start-elasticsearch
pre-integration-test
- runforked
+ start
+
+ true
+
stop-elasticsearch
diff --git a/pom.xml b/pom.xml
index 174e68308..f7e85f403 100644
--- a/pom.xml
+++ b/pom.xml
@@ -146,6 +146,7 @@
3.21.0
0.16.1
1.0-m5.1
+ 0.48.0
v16.20.2
v1.22.19
@@ -867,6 +868,11 @@
dependency-check-maven
${dependency-check.plugin.version}
+
+ io.fabric8
+ docker-maven-plugin
+ ${docker-maven-plugin.version}
+