2016-04-17 17:21:53 +00:00
|
|
|
FROM java:openjdk-8u72-jdk
|
2015-02-16 14:48:42 +00:00
|
|
|
|
|
|
|
MAINTAINER itzg
|
|
|
|
|
2016-05-10 00:43:44 +00:00
|
|
|
ENV CASSANDRA_VERSION 2.2.6
|
2015-02-16 14:48:42 +00:00
|
|
|
|
2015-07-18 13:46:44 +00:00
|
|
|
RUN wget -qO /tmp/apache-cassandra.tgz http://mirrors.ibiblio.org/apache/cassandra/$CASSANDRA_VERSION/apache-cassandra-$CASSANDRA_VERSION-bin.tar.gz
|
2016-04-17 17:21:53 +00:00
|
|
|
RUN tar -C /opt -zxf /tmp/apache-cassandra.tgz && \
|
2015-02-16 14:48:42 +00:00
|
|
|
rm /tmp/apache-cassandra.tgz
|
|
|
|
|
|
|
|
|
|
|
|
RUN mv /opt/apache-cassandra-$CASSANDRA_VERSION /opt/cassandra
|
|
|
|
ENV CASSANDRA_HOME /opt/cassandra
|
|
|
|
ENV CASSANDRA_CONF /conf
|
|
|
|
ENV CASSANDRA_DATA /data
|
|
|
|
WORKDIR $CASSANDRA_HOME
|
|
|
|
|
|
|
|
RUN ln -s $CASSANDRA_HOME/bin/* /usr/local/bin
|
|
|
|
VOLUME ["/data","/conf"]
|
|
|
|
|
|
|
|
EXPOSE 9042 9160 7000 7001
|
|
|
|
|
|
|
|
ADD cassandra.in.sh $CASSANDRA_HOME/cassandra.in.sh
|
|
|
|
RUN mv $CASSANDRA_HOME/bin/cassandra.in.sh $CASSANDRA_HOME/bin/orig.cassandra.in.sh
|
|
|
|
|
|
|
|
CMD ["/opt/cassandra/bin/cassandra", "-f"]
|