From 0ddccae0c723a1a6c0f3173e0d8a36468393122d Mon Sep 17 00:00:00 2001 From: Jasmine Hegman Date: Fri, 10 Nov 2017 15:45:52 -0700 Subject: [PATCH] Enhanced to use openssl for Search guard cert support as per https://gist.github.com/floragunncom/9319a994ae09df64b2a173128f745ed2 --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e10cca9..2fa74b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ FROM alpine:3.6 -RUN apk --no-cache add python py-setuptools py-pip && \ +RUN apk --no-cache add python py-setuptools py-pip gcc libffi py-cffi python-dev libffi-dev py-openssl musl-dev linux-headers openssl-dev && \ pip install elasticsearch-curator==5.4.0 && \ - pip install boto3 && \ - pip install requests-aws4auth && \ - apk del py-pip + pip install requests-aws4auth==0.9 && \ + pip install cryptography==2.1.3 && \ + apk del py-pip gcc python-dev libffi-dev musl-dev linux-headers openssl-dev && \ + sed -i '/import sys/a urllib3.contrib.pyopenssl.inject_into_urllib3()' /usr/bin/curator && \ + sed -i '/import sys/a import urllib3.contrib.pyopenssl' /usr/bin/curator && \ + sed -i '/import sys/a import urllib3' /usr/bin/curator USER nobody:nobody + ENTRYPOINT ["/usr/bin/curator"]