Skip to content

Commit

Permalink
Specify exact Cassandra package version to install in Dockerfile(s)
Browse files Browse the repository at this point in the history
Now for 3.0 and 3.x as well.
Fix #135.
  • Loading branch information
a1exsh committed May 24, 2017
1 parent e5da58a commit fcd2332
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Dockerfiles/Cassandra-3.0.x/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ MAINTAINER Zalando SE
# SSL Storage Port, Jolokia Agent, CQL Native
EXPOSE 7001 8778 9042

ENV CASSIE_VERSION=30x
ENV CASSIE_VERSION=3.0.13
ENV DEBIAN_FRONTEND=noninteractive

RUN echo "deb http://www.apache.org/dist/cassandra/debian ${CASSIE_VERSION} main" | tee -a /etc/apt/sources.list.d/apache.cassandra.list
RUN echo "deb http://www.apache.org/dist/cassandra/debian 30x main" | tee -a /etc/apt/sources.list.d/apache.cassandra.list
RUN curl https://www.apache.org/dist/cassandra/KEYS | apt-key add -

RUN apt-get -y update && apt-get -y -o Dpkg::Options::='--force-confold' --fix-missing dist-upgrade
RUN apt-get -y install vim less sysstat cassandra && \
RUN apt-get -y install vim less sysstat \
cassandra=$CASSIE_VERSION \
cassandra-tools=$CASSIE_VERSION && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Expand Down
8 changes: 5 additions & 3 deletions Dockerfiles/Cassandra-3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ MAINTAINER Zalando SE
# SSL Storage Port, Jolokia Agent, JMX, CQL Native
EXPOSE 7001 7199 8778 9042

ENV CASSIE_VERSION=39x
ENV CASSIE_VERSION=3.10
ENV DEBIAN_FRONTEND=noninteractive

RUN echo "deb http://www.apache.org/dist/cassandra/debian ${CASSIE_VERSION} main" | tee -a /etc/apt/sources.list.d/apache.cassandra.list
RUN echo "deb http://www.apache.org/dist/cassandra/debian 310x main" | tee -a /etc/apt/sources.list.d/apache.cassandra.list
RUN curl https://www.apache.org/dist/cassandra/KEYS | apt-key add -

RUN apt-get -y update && apt-get -y -o Dpkg::Options::='--force-confold' --fix-missing dist-upgrade
RUN apt-get -y install vim less sysstat cassandra && \
RUN apt-get -y install vim less sysstat \
cassandra=$CASSIE_VERSION \
cassandra-tools=$CASSIE_VERSION && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Expand Down

0 comments on commit fcd2332

Please sign in to comment.