
Create common Dockerfiles for the latest major ES versions Change-Id: I5b1232e41e6713cdf89b832262ec5a703cfaf81d
18 lines
559 B
Docker
18 lines
559 B
Docker
ARG ELASTICSEARCH_VERSION
|
|
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION}
|
|
|
|
ARG ELASTICSEARCH_VERSION
|
|
|
|
RUN set -ex \
|
|
&& apt-get update \
|
|
&& apt-get upgrade -y \
|
|
&& apt-get install -y --no-install-recommends \
|
|
jq \
|
|
python3-pip \
|
|
&& pip3 install --no-cache-dir --upgrade pip \
|
|
&& pip3 install --no-cache-dir \
|
|
"elasticsearch<=${ELASTICSEARCH_VERSION}" \
|
|
"elasticsearch-dsl~=7.0" \
|
|
&& bin/elasticsearch-plugin install --batch repository-s3 \
|
|
&& rm -rf /var/lib/apt/lists/*
|