diff options
author | David Greenberg <ml636r@att.com> | 2017-02-20 13:29:45 +0200 |
---|---|---|
committer | David Greenberg <ml636r@att.com> | 2017-02-20 13:29:45 +0200 |
commit | 30e7cdaf4621e20ff2a2e2d81ec870c41d1d5e1f (patch) | |
tree | d02ac8b631f59c4221aa7d23899283445db2ee68 /sdc-os-chef/sdc-cassandra/Dockerfile | |
parent | 9dd269dfabddc699cd99e8920e71178ffebc599f (diff) |
Fix Cassandra Dockerfile
Change-Id: Ib747bbaaf16723e58dee3df61afec7f6d8ecd71a
Signed-off-by: David Greenberg <ml636r@att.com>
Diffstat (limited to 'sdc-os-chef/sdc-cassandra/Dockerfile')
-rw-r--r-- | sdc-os-chef/sdc-cassandra/Dockerfile | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/sdc-os-chef/sdc-cassandra/Dockerfile b/sdc-os-chef/sdc-cassandra/Dockerfile index 6d2c55d4c8..2dac882e6e 100644 --- a/sdc-os-chef/sdc-cassandra/Dockerfile +++ b/sdc-os-chef/sdc-cassandra/Dockerfile @@ -1,10 +1,32 @@ FROM cassandra:2.1.16 ENV DEBIAN_FRONTEND noninteractive -RUN apt-get -y update && apt-get -y install --no-install-recommends apt-utils -RUN apt-get -y install curl -RUN apt-get -y install vim -RUN apt-get -y install default-jre && apt-get -y install openjdk-8-jdk +RUN apt-get -y update && apt-get -y install --no-install-recommends \ + apt-utils \ + curl \ + vim \ + default-jre \ + && rm -rf /var/lib/apt/lists/* + + +ENV JAVA_VERSION 8u121 +ENV JAVA_DEBIAN_VERSION 8u121-b13-1~bpo8+1 + +# see https://bugs.debian.org/775775 +# and https://github.com/docker-library/java/issues/19#issuecomment-70546872 +ENV CA_CERTIFICATES_JAVA_VERSION 20161107~bpo8+1 + +RUN set -x \ + && apt-get update \ + && apt-get install -y \ + openjdk-8-jdk="$JAVA_DEBIAN_VERSION" \ + ca-certificates-java="$CA_CERTIFICATES_JAVA_VERSION" \ + && rm -rf /var/lib/apt/lists/* + + +# see CA_CERTIFICATES_JAVA_VERSION notes above +RUN /var/lib/dpkg/info/ca-certificates-java.postinst configure + RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java ENV DEBIAN_FRONTEND teletype |