<commit_before># vim:set ft=dockerfile:
FROM debian:jessie-backports

# https://github.com/docker-library/cassandra/pull/98#issuecomment-280761137
RUN { \
      echo 'Package: openjdk-* ca-certificates-java'; \
      echo 'Pin: release n=*-backports'; \
      echo 'Pin-Priority: 990'; \
    } > /etc/apt/preferences.d/java-backports

# https://wiki.apache.org/cassandra/DebianPackaging#Adding_Repository_Keys
ENV GPG_KEYS \
# gpg: key 0353B12C: public key "<NAME> <<EMAIL>>" imported
	514A2AD631A57A16DD0047EC749D6EEC0353B12C \
# gpg: key FE4B2BDA: public key "<NAME> <<EMAIL>>" imported
	A26E528B271F19B9E5D8E19EA278B781FE4B2BDA
RUN set -ex; \
	export GNUPGHOME="$(mktemp -d)"; \
	for key in $GPG_KEYS; do \
		gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
	done; \
	gpg --export $GPG_KEYS > /etc/apt/trusted.gpg.d/cassandra.gpg; \
	rm -r "$GNUPGHOME"; \
	apt-key list

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

ENV CASSANDRA_VERSION 3.11.0

RUN apt-get update \
	&& apt-get install -y \
    curl \
    dnsutils \
    cassandra="$CASSANDRA_VERSION" \
    cassandra-tools="$CASSANDRA_VERSION" \
	&& rm -rf /var/lib/apt/lists/*

# https://issues.apache.org/jira/browse/CASSANDRA-11661
RUN sed -ri 's/^(JVM_PATCH_VERSION)=.*/\1=25/' /etc/cassandra/cassandra-env.sh

COPY waitdns.sh /
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]<commit_msg>fix cassandra init task build<commit_after># vim:set ft=dockerfile:
FROM debian:jessie-backports

# https://github.com/docker-library/cassandra/pull/98#issuecomment-280761137
RUN { \
      echo 'Package: openjdk-* ca-certificates-java'; \
      echo 'Pin: release n=*-backports'; \
      echo 'Pin-Priority: 990'; \
    } > /etc/apt/preferences.d/java-backports

# https://wiki.apache.org/cassandra/DebianPackaging#Adding_Repository_Keys
ENV GPG_KEYS \
# gpg: key 0353B12C: public key "<NAME> <<EMAIL>>" imported
	514A2AD631A57A16DD0047EC749D6EEC0353B12C \
# gpg: key FE4B2BDA: public key "<NAME> <<EMAIL>>" imported
	A26E528B271F19B9E5D8E19EA278B781FE4B2BDA
RUN set -ex; \
	export GNUPGHOME="$(mktemp -d)"; \
	for key in $GPG_KEYS; do \
		gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
	done; \
	gpg --export $GPG_KEYS > /etc/apt/trusted.gpg.d/cassandra.gpg; \
	rm -r "$GNUPGHOME"; \
	apt-key list

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

ENV CASSANDRA_VERSION 3.11.1

RUN apt-get update \
	&& apt-get install -y \
    curl \
    dnsutils \
    cassandra="$CASSANDRA_VERSION" \
    cassandra-tools="$CASSANDRA_VERSION" \
	&& rm -rf /var/lib/apt/lists/*

# https://issues.apache.org/jira/browse/CASSANDRA-11661
RUN sed -ri 's/^(JVM_PATCH_VERSION)=.*/\1=25/' /etc/cassandra/cassandra-env.sh

COPY waitdns.sh /
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
{'fraction_non_alphanumeric': 0.15738831615120275, 'fraction_numerical': 0.058419243986254296, 'mean_word_length': 3.64274322169059, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 23, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4819316', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1205, 'n_words': 205}