[sdc] - sdctool configuration.yaml was missing settings of localDataCenter
[sdc.git] / sdc-os-chef / sdc-cassandra / Dockerfile
1 FROM cassandra:2.1.17
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 #ENV DEBIAN_FRONTEND noninteractive
13 RUN apt-get -y update && apt-get -y install --no-install-recommends \
14     curl   \
15     vim \
16     apt-utils  \
17     openjdk-8-jdk
18
19 RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
20
21 COPY chef-solo /root/chef-solo/
22 COPY chef-repo/cookbooks /root/chef-solo/cookbooks/
23
24 # install chef-solo
25 RUN curl -L https://omnitruck.chef.io/install.sh | bash
26
27
28 COPY startup.sh /root/
29 RUN chmod 770 /root/startup.sh
30 ENTRYPOINT [ "/root/startup.sh" ]