add chef-install.sh until LF will fix curl
[sdc.git] / sdc-os-chef / sdc-cassandra / Dockerfile
1 FROM cassandra:2.1.16
2
3 ENV DEBIAN_FRONTEND noninteractive
4 RUN apt-get -y update && apt-get -y install --no-install-recommends \
5     apt-utils \
6     curl \
7     vim \
8     default-jre \
9     && rm -rf /var/lib/apt/lists/*
10
11
12 ENV JAVA_VERSION 8u121
13 ENV JAVA_DEBIAN_VERSION 8u121-b13-1~bpo8+1
14
15 # see https://bugs.debian.org/775775
16 # and https://github.com/docker-library/java/issues/19#issuecomment-70546872
17 ENV CA_CERTIFICATES_JAVA_VERSION 20161107~bpo8+1
18
19 RUN set -x \
20         && apt-get update \
21         && apt-get install -y \
22                 openjdk-8-jdk="$JAVA_DEBIAN_VERSION" \
23                 ca-certificates-java="$CA_CERTIFICATES_JAVA_VERSION" \
24         && rm -rf /var/lib/apt/lists/*
25
26
27 # see CA_CERTIFICATES_JAVA_VERSION notes above
28 RUN /var/lib/dpkg/info/ca-certificates-java.postinst configure
29
30 RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
31 ENV DEBIAN_FRONTEND teletype
32
33 COPY chef-solo /root/chef-solo/
34 COPY chef-repo/cookbooks /root/chef-solo/cookbooks/
35
36 # install chef-solo
37 #RUN curl -L http://www.opscode.com/chef/install.sh | bash
38 bash chef-install.sh
39 COPY startup.sh /root/
40
41 RUN chmod 770 /root/startup.sh
42
43 ENTRYPOINT [ "/root/startup.sh" ]
44