blob: 89516a6727bd25f91259170f8b0c26a776808cdf [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001FROM elasticsearch:2.1.2
2
Victor Morales648b32e2017-06-14 14:45:20 -05003ARG 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
Michael Lando451a3402017-02-19 10:28:42 +020012RUN apt-get -y update
13RUN apt-get -y install apt-utils
14RUN apt-get -y install curl
15RUN apt-get -y install vim
16RUN mkdir -p /var/chef/nodes
17
18COPY chef-solo /root/chef-solo/
19COPY chef-repo/cookbooks /root/chef-solo/cookbooks/
20
Michael Lando451a3402017-02-19 10:28:42 +020021# install chef-solo
Grinberg Motic3bda482017-02-23 11:24:34 +020022RUN curl -L https://omnitruck.chef.io/install.sh | bash
23
Michael Lando451a3402017-02-19 10:28:42 +020024COPY startup.sh /root/
Michael Lando451a3402017-02-19 10:28:42 +020025RUN chmod 770 /root/startup.sh
26
27ENTRYPOINT [ "/root/startup.sh" ]