HA Cassandra Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM cassandra:2.1 | |
ENV ETCD_VERSION v3.0.15 | |
RUN DOWNLOAD_URL=https://github.com/coreos/etcd/releases/download \ | |
&& apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \ | |
&& curl -L ${DOWNLOAD_URL}/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz \ | |
&& mkdir -p /tmp/etcd-${ETCD_VERSION} \ | |
&& tar xzvf /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -C /tmp/etcd-${ETCD_VERSION} --strip-components=1 \ | |
&& cp /tmp/etcd-${ETCD_VERSION}/etcdctl /bin \ | |
&& rm -rf /tmp/etcd-${ETCD_VERSION} \ | |
&& mkdir -p /arhea/scripts | |
COPY ./config/cassandra.yaml /etc/cassandra/cassandra.yaml | |
COPY ./config/cassandra-env.sh /etc/cassandra/cassandra-env.sh | |
COPY ./scripts /arhea/scripts | |
RUN chmod +x /arhea/scripts/*.sh | |
ENTRYPOINT ["/arhea/scripts/docker-entrypoint.sh"] | |
CMD ["cassandra", "-f"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment