Skip to content

Commit 5f11125

Browse files
committed
fix plugin name in DockerFile
1 parent 7738597 commit 5f11125

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ OR
3434

3535
Then the following command will start a dockerized ES and will install the previously built plugin:
3636

37-
`docker-compose up`
37+
`
38+
docker-compose up
39+
`
3840

3941

4042
> NOTE: In `docker-compose.yml` you can uncomment the debug env and attach a REMOTE JVM on `*:5005` to debug the plugin.

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ services:
99
environment:
1010
- discovery.type=single-node
1111
# NO DEBUG
12-
- ES_JAVA_OPTS=-Xms512m -Xmx512m
12+
# - ES_JAVA_OPTS=-Xms512m -Xmx512m
1313
# DEBUG
14-
# - ES_JAVA_OPTS=-Xms512m -Xmx512m -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
14+
- ES_JAVA_OPTS=-Xms512m -Xmx512m -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
1515
ports:
1616
- "9200:9200"
1717
# DEBUG
18-
# - "5005:5005"
18+
- "5005:5005"

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FROM docker.elastic.co/elasticsearch/elasticsearch:7.10.2 AS elasticsearch-plugin-debug
22

3-
COPY /build/distributions/pathhierarchy-aggregation-7.10.2.zip /tmp/pathhierarchy-aggregation-7.10.2.zip
4-
RUN ./bin/elasticsearch-plugin install file:/tmp/pathhierarchy-aggregation-7.10.2.zip
3+
COPY /build/distributions/pathhierarchy-aggregation-7.10.2.0.zip /tmp/pathhierarchy-aggregation-7.10.2.0.zip
4+
RUN ./bin/elasticsearch-plugin install file:/tmp/pathhierarchy-aggregation-7.10.2.0.zip

src/main/java/org/opendatasoft/elasticsearch/plugin/PathHierarchyAggregation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package org.opendatasoft.elasticsearch.plugin;
22

3-
import java.util.ArrayList;
4-
53
import org.elasticsearch.plugins.Plugin;
64
import org.elasticsearch.plugins.SearchPlugin;
5+
import org.opendatasoft.elasticsearch.search.aggregations.bucket.DateHierarchyAggregationBuilder;
76
import org.opendatasoft.elasticsearch.search.aggregations.bucket.InternalDateHierarchy;
87
import org.opendatasoft.elasticsearch.search.aggregations.bucket.InternalPathHierarchy;
98
import org.opendatasoft.elasticsearch.search.aggregations.bucket.PathHierarchyAggregationBuilder;
10-
import org.opendatasoft.elasticsearch.search.aggregations.bucket.DateHierarchyAggregationBuilder;
9+
10+
import java.util.ArrayList;
1111

1212
public class PathHierarchyAggregation extends Plugin implements SearchPlugin {
1313
@Override

0 commit comments

Comments
 (0)