Skip to content

Commit ea8e22e

Browse files
author
Bapt Abl
committed
Add docker files for running an Elasticsearch instance alongside the plugin
because of gradle 'run' task removal here: elastic/elasticsearch@36d018c
1 parent c8a4249 commit ea8e22e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docker-compose.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: "3.7"
2+
3+
services:
4+
elasticsearch-plugin-debug:
5+
build:
6+
context: .
7+
dockerfile: docker/Dockerfile
8+
target: elasticsearch-plugin-debug
9+
environment:
10+
- discovery.type=single-node
11+
# NO DEBUG
12+
- ES_JAVA_OPTS=-Xms512m -Xmx512m
13+
# DEBUG
14+
# - ES_JAVA_OPTS=-Xms512m -Xmx512m -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
15+
ports:
16+
- "9200:9200"
17+
- "5005:5005" # DEBUG

docker/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2 AS elasticsearch-plugin-debug
2+
3+
COPY /build/distributions/geopoint-clustering-aggregation-7.10.2.0.zip /tmp/geopoint-clustering-aggregation-7.10.2.0.zip
4+
RUN ./bin/elasticsearch-plugin install file:/tmp/geopoint-clustering-aggregation-7.10.2.0.zip

0 commit comments

Comments
 (0)