blob: e2f1e86a18c02bc524652e01a024d44c5d62a4f2 [file] [log] [blame]
Areli Fuss0a3899f2017-11-19 13:28:08 +02001FROM elasticsearch:2.4.6-alpine
Areli Fuss547839b2017-08-22 15:34:37 +03002
3ARG HTTP_PROXY
4ARG HTTPS_PROXY
5
6ENV HTTP_PROXY ${HTTP_PROXY}
7ENV HTTPS_PROXY ${HTTPS_PROXY}
8
9RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \
10 if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
11
Areli Fuss0a3899f2017-11-19 13:28:08 +020012RUN apk add --no-cache \
Areli Fuss547839b2017-08-22 15:34:37 +030013 curl \
Areli Fuss0a3899f2017-11-19 13:28:08 +020014 vim \
15 && :
Areli Fuss547839b2017-08-22 15:34:37 +030016
17RUN mkdir -p /var/chef/nodes
18
Areli Fuss0a3899f2017-11-19 13:28:08 +020019# Install Chef
20RUN set -ex && \
21 apk add --no-cache bash build-base ruby ruby-dev libffi-dev libxml2-dev && \
22 gem install chef berkshelf io-console --no-document