blob: e2219c533d5f9157a65129ec784447450cdd7451 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001FROM cassandra:2.1.16
2
3ENV DEBIAN_FRONTEND noninteractive
David Greenberg30e7cda2017-02-20 13:29:45 +02004RUN 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
12ENV JAVA_VERSION 8u121
13ENV 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
17ENV CA_CERTIFICATES_JAVA_VERSION 20161107~bpo8+1
18
19RUN 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
28RUN /var/lib/dpkg/info/ca-certificates-java.postinst configure
29
Michael Lando451a3402017-02-19 10:28:42 +020030RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
31ENV DEBIAN_FRONTEND teletype
32
33COPY chef-solo /root/chef-solo/
34COPY chef-repo/cookbooks /root/chef-solo/cookbooks/
35
36# install chef-solo
Grinberg Motic3bda482017-02-23 11:24:34 +020037RUN curl -L https://omnitruck.chef.io/install.sh | bash
38
Grinberg Motif79a5d12017-02-22 15:36:03 +020039
Michael Lando451a3402017-02-19 10:28:42 +020040COPY startup.sh /root/
41
42RUN chmod 770 /root/startup.sh
43
44ENTRYPOINT [ "/root/startup.sh" ]
45