blob: 744e62db29be29c7d381021f939c22a15164ce65 [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 && \
Yuli Shlosberg59d75832018-04-24 22:12:05 +030022 gem install chef:13.8.5 berkshelf io-console --no-document