Add missing ES_CONF_PATH and ensure /opt/elasticsearch/config is
writeable
This commit is contained in:
parent
e8920d3684
commit
2c44fc0c28
|
@ -25,6 +25,7 @@ MAINTAINER [[ .docker.maintainer ]]
|
|||
|
||||
ENV PATH=/opt/elasticsearch/bin:$PATH \
|
||||
ES_JAVA_HOME=/opt/java/openjdk \
|
||||
ES_PATH_CONF=/opt/elasticsearch/config \
|
||||
ES_TMPDIR=/tmp
|
||||
|
||||
COPY --from=builder /opt/elasticsearch/ /opt/elasticsearch/
|
||||
|
@ -39,6 +40,9 @@ RUN set -eux &&\
|
|||
|
||||
COPY root/ /
|
||||
|
||||
RUN set -eux &&\
|
||||
chown -R elasticsearch:elasticsearch /opt/elasticsearch/config
|
||||
|
||||
WORKDIR /opt/elasticsearch
|
||||
USER elasticsearch
|
||||
EXPOSE 9200 9300
|
||||
|
|
|
@ -127,7 +127,7 @@ docker:
|
|||
# Define base_images so we can easily build 7 and 8 variants of the image
|
||||
base_images:
|
||||
elasticsearch7:
|
||||
image: elasticsearch:[[ .docker.base_images.elasticsearch7.build_args.ES_VERSION ]]-2
|
||||
image: elasticsearch:[[ .docker.base_images.elasticsearch7.build_args.ES_VERSION ]]-3
|
||||
build_args:
|
||||
ES_VERSION: 7.17.18
|
||||
tags:
|
||||
|
@ -135,7 +135,7 @@ docker:
|
|||
- elasticsearch7:latest
|
||||
|
||||
elasticsearch8:
|
||||
image: elasticsearch:[[ .docker.base_images.elasticsearch8.build_args.ES_VERSION ]]-2
|
||||
image: elasticsearch:[[ .docker.base_images.elasticsearch8.build_args.ES_VERSION ]]-3
|
||||
build_args:
|
||||
ES_VERSION: 8.12.2
|
||||
tags:
|
||||
|
|
Loading…
Reference in New Issue