Public Repository

Last pushed: 2 years ago
Short Description
Test Cassandra image running on min-jessie-jre8 (size: 529.7 MG)
Full Description

This is a work in progress, current Dockerfile:

FROM philcryer/min-jessie-jre8
MAINTAINER philcryer <phil@philcryer.com>

#RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 514A2AD631A57A16DD0047EC749D6EEC0353B12C

# workaround since apt-key is failing
COPY keys/* /etc/apt/

RUN echo 'deb http://www.apache.org/dist/cassandra/debian 21x main' >> /etc/apt/sources.list.d/cassandra.list

# this failed on the official docker-build, so I'm pulling it for now
#ENV CASSANDRA_VERSION 2.1.5

RUN apt-get update \
    && apt-get install -y cassandra \
    && apt-get install -y vim-nox \
    && rm -rf /var/lib/apt/lists/*

ENV CASSANDRA_CONFIG /etc/cassandra

# listen to all rpc
RUN sed -ri ' \
    s/^(rpc_address:).*/\1 0.0.0.0/; \
    ' "$CASSANDRA_CONFIG/cassandra.yaml"

COPY docker-entrypoint.sh /docker-entrypoint.sh

RUN chmod 755 /docker-entrypoint.sh

ENTRYPOINT ["/docker-entrypoint.sh"]

VOLUME /var/lib/cassandra/data

# 7000: intra-node communication
# 7001: TLS intra-node communication
# 7199: JMX
# 9042: CQL
# 9160: thrift service
EXPOSE 7000 7001 7199 9042 9160
CMD ["cassandra", "-f"]
Docker Pull Command
Owner
philcryer

Comments (0)