mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
31 lines
867 B
Docker
31 lines
867 B
Docker
|
FROM itzg/ubuntu-openjdk-7
|
||
|
|
||
|
MAINTAINER itzg
|
||
|
|
||
|
RUN apt-get update && \
|
||
|
DEBIAN_FRONTEND=noninteractive apt-get install -y wget && \
|
||
|
apt-get clean
|
||
|
|
||
|
ENV CASSANDRA_VERSION 2.0.12
|
||
|
|
||
|
RUN wget -qO /tmp/apache-cassandra.tgz http://mirrors.ibiblio.org/apache/cassandra/$CASSANDRA_VERSION/apache-cassandra-$CASSANDRA_VERSION-bin.tar.gz
|
||
|
RUN tar -C /opt -zxvf /tmp/apache-cassandra.tgz && \
|
||
|
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"]
|