Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | FROM cassandra:2.1.16 |
| 2 | |
| 3 | ENV DEBIAN_FRONTEND noninteractive |
David Greenberg | 30e7cda | 2017-02-20 13:29:45 +0200 | [diff] [blame] | 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 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 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 |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 37 | RUN curl -L https://omnitruck.chef.io/install.sh | bash |
| 38 | |
Grinberg Moti | f79a5d1 | 2017-02-22 15:36:03 +0200 | [diff] [blame] | 39 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 40 | COPY startup.sh /root/ |
| 41 | |
| 42 | RUN chmod 770 /root/startup.sh |
| 43 | |
| 44 | ENTRYPOINT [ "/root/startup.sh" ] |
| 45 | |