89516a6727bd25f91259170f8b0c26a776808cdf
[sdc.git] / sdc-os-chef / sdc-elasticsearch / Dockerfile
1 FROM elasticsearch:2.1.2
2
3 ARG HTTP_PROXY
4 ARG HTTPS_PROXY
5
6 ENV HTTP_PROXY  ${HTTP_PROXY}
7 ENV HTTPS_PROXY ${HTTPS_PROXY}
8
9 RUN 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
12 RUN apt-get -y update
13 RUN apt-get -y install apt-utils
14 RUN apt-get -y install curl
15 RUN apt-get -y install vim
16 RUN mkdir -p /var/chef/nodes
17
18 COPY chef-solo /root/chef-solo/
19 COPY chef-repo/cookbooks /root/chef-solo/cookbooks/
20
21 # install chef-solo
22 RUN curl -L https://omnitruck.chef.io/install.sh | bash
23
24 COPY startup.sh /root/
25 RUN chmod 770 /root/startup.sh
26
27 ENTRYPOINT [ "/root/startup.sh" ]