From 4cb2f0fcfc92208cfcfaa7a3af5ae172a83e5473 Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Tue, 3 Dec 2019 11:21:39 -0600 Subject: [PATCH] Elasticsearch: Add elasticsearch python packages This updates the Elasticsearch 7.1.0 image to include the python packages to support python scripting to query Elasticsearch directly Change-Id: I42fcf7c8c74efdef0584a6051e133ef287fdc686 Signed-off-by: Steve Wilkerson --- elasticsearch-s3/Dockerfile.7_1_0 | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/elasticsearch-s3/Dockerfile.7_1_0 b/elasticsearch-s3/Dockerfile.7_1_0 index 50ec7a27..6e110e4d 100644 --- a/elasticsearch-s3/Dockerfile.7_1_0 +++ b/elasticsearch-s3/Dockerfile.7_1_0 @@ -1,7 +1,14 @@ FROM docker.elastic.co/elasticsearch/elasticsearch-oss:7.1.0 -RUN wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 \ - && chmod +x ./jq \ - && cp jq /usr/bin - -RUN bin/elasticsearch-plugin install --batch repository-s3 +RUN wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64; \ + chmod +x ./jq ;\ + cp jq /usr/bin ;\ + yum -y update ;\ + rm -rf /var/cache/yum ;\ + curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py ;\ + python /tmp/get-pip.py ;\ + rm -f /tmp/get-pip.py ;\ + pip install \ + elasticsearch==7.1.0 \ + elasticsearch-dsl==7.1.0; \ + bin/elasticsearch-plugin install --batch repository-s3