File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ services:
1010 args :
1111 ES_VERSION : ${ES_VERSION}
1212 PLUGIN_VERSION : ${PLUGIN_VERSION}
13+ PLUGIN_FILENAME : pathhierarchy-aggregation-${PLUGIN_VERSION}.zip
1314 environment :
1415 - discovery.type=single-node
1516 # NO DEBUG
Original file line number Diff line number Diff line change 11ARG ES_VERSION
2- ARG PLUGIN_VERSION
2+ ARG PLUGIN_FILENAME
33
44FROM docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION} AS elasticsearch-plugin-debug
55
6- COPY /build/distributions/pathhierarchy-aggregation-${PLUGIN_VERSION}.zip /tmp/pathhierarchy-aggregation-${PLUGIN_VERSION}.zip
7- RUN ./bin/elasticsearch-plugin install file:/tmp/pathhierarchy-aggregation-${PLUGIN_VERSION}.zip
6+ COPY build/distributions/${PLUGIN_FILENAME} /tmp/${PLUGIN_FILENAME}
7+
8+ # mandatory because docker ARG is scoped to stage (forgotten after the FROM scope above...!)
9+ ARG PLUGIN_FILENAME
10+ # madantory because ARGS cannot be used inside RUN shell
11+ ENV PLUGIN_FILENAME=${PLUGIN_FILENAME}
12+ RUN ./bin/elasticsearch-plugin install --batch file:/tmp/${PLUGIN_FILENAME}
You can’t perform that action at this time.
0 commit comments