blob: 7af6de1de443b6eb758edcc5f532ae4ade047134 [file] [log] [blame]
Michael Landofd3821d2017-06-01 13:07:44 +03001FROM cassandra:2.1.17
Michael Lando451a3402017-02-19 10:28:42 +02002
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 Lando706e7162017-05-19 00:28:52 +030012#ENV DEBIAN_FRONTEND noninteractive
Michael Landofd3821d2017-06-01 13:07:44 +030013RUN apt-get -y update && apt-get -y install --no-install-recommends \
14 curl \
15 vim \
16 apt-utils \
17 openjdk-8-jdk
18
19RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Michael Lando451a3402017-02-19 10:28:42 +020020
21COPY chef-solo /root/chef-solo/
22COPY chef-repo/cookbooks /root/chef-solo/cookbooks/
23
24# install chef-solo
Grinberg Motic3bda482017-02-23 11:24:34 +020025RUN curl -L https://omnitruck.chef.io/install.sh | bash
26
Grinberg Motif79a5d12017-02-22 15:36:03 +020027
Michael Lando451a3402017-02-19 10:28:42 +020028COPY startup.sh /root/
Michael Lando451a3402017-02-19 10:28:42 +020029RUN chmod 770 /root/startup.sh
Michael Landoed64b5e2017-06-09 03:19:04 +030030ENTRYPOINT [ "/root/startup.sh" ]