From caf2fc2ab67549b4700a1157d3bcde5d1805a0e7 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Thu, 13 Jul 2017 09:09:10 -0500 Subject: [PATCH] [es] Correcting old-ADD tar file path --- elasticsearch/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/elasticsearch/Dockerfile b/elasticsearch/Dockerfile index 69949670..c986571a 100755 --- a/elasticsearch/Dockerfile +++ b/elasticsearch/Dockerfile @@ -9,7 +9,10 @@ ARG ES_VERSION=5.5.0 ADD https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES_VERSION.tar.gz /tmp # need to adapt to both Docker's new remote-unpack-ADD behavior and the old behavior RUN cd /usr/share && \ - if [ -f /tmp/elasticsearch-$ES_VERSION.tar.gz ]; then tar xf /tmp/es.tgz; else mv /tmp/elasticsearch-${ES_VERSION} /usr/share; fi && \ + if [ -f /tmp/elasticsearch-$ES_VERSION.tar.gz ]; then \ + tar xf /tmp/elasticsearch-$ES_VERSION.tar.gz; \ + else mv /tmp/elasticsearch-${ES_VERSION} /usr/share; \ + fi && \ rm -f /tmp/elasticsearch-$ES_VERSION.tar.gz EXPOSE 9200 9300