@@ -2,10 +2,11 @@ FROM phusion/baseimage
22MAINTAINER Daniel Covello
33ENV DEBIAN_FRONTEND noninteractive
44
5+ ENV CASSANDRA_VERSION 3.5
6+
57# Use baseimage-docker's init system
68CMD ["/sbin/my_init" ]
79
8- # Add PPA for the necessary JDK
910RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee /etc/apt/sources.list.d/webupd8team-java.list
1011RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
1112RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
@@ -15,19 +16,17 @@ RUN apt-get update
1516RUN apt-get install -y curl
1617
1718# Preemptively accept the Oracle License
18- RUN echo "oracle-java7 -installer shared/accepted-oracle-license-v1-1 boolean true" > /tmp/oracle-license-debconf
19+ RUN echo "oracle-java8 -installer shared/accepted-oracle-license-v1-1 boolean true" > /tmp/oracle-license-debconf
1920RUN /usr/bin/debconf-set-selections /tmp/oracle-license-debconf
2021RUN rm /tmp/oracle-license-debconf
2122
2223# Install the JDK
2324RUN apt-get install -y oracle-java8-installer oracle-java8-set-default
2425RUN apt-get update
2526
26- # Define Cassandra version
27- RUN echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/datastax.sources.list
28- RUN curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add -
29- RUN apt-get update
30- RUN apt-get install -y dsc22=2.2.3-1 cassandra=2.2.3 datastax-agent
27+ RUN echo "deb http://debian.datastax.com/datastax-ddc $CASSANDRA_VERSION main" | sudo tee -a etc/apt/sources.list.d/cassandra.sources.list
28+ RUN curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add -
29+ RUN apt-get update && apt-get -y install datastax-ddc
3130
3231# Copy Cassandra Startup Scripts
3332RUN mkdir /etc/service/cassandra
0 commit comments