<commit_before>FROM anapsix/alpine-java

ARG user=elasticsearch
ARG group=elasticsearch
ARG uid=1005
ARG gid=1005

RUN addgroup -g ${gid} ${group} \
    && adduser -u ${uid} -G ${group} -s /bin/bash -D ${user}

ENV VERSION 2.3.3
RUN apk add --no-cache --virtual .fetch-deps curl && \
    curl -Ls https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 > /usr/local/bin/dumb-init && \
    chmod +x /usr/local/bin/dumb-init && \
    mkdir -p /opt && \
    curl -Ls https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/${VERSION}/elasticsearch-${VERSION}.tar.gz | tar xz && \
    mv /elasticsearch-$VERSION /opt/elasticsearch && \
    rm -rf $(find /opt/elasticsearch | egrep "(\.(exe|bat)$|sigar/.*(dll|winnt|x86-linux|solaris|ia64|freebsd|macosx))") && \
    apk del .fetch-deps && \
    rm -rf /var/cache/apk && \
    chown -R ${user} /opt/elasticsearch

COPY run.sh /opt/elasticsearch/bin/run.sh

EXPOSE 9200
EXPOSE 9300
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
ENV PATH=$PATH:/opt/elasticsearch/bin
CMD ["run.sh", "elasticsearch", "-Dnetwork.host=_global_"]<commit_msg>add default es head size 256m<commit_after>FROM anapsix/alpine-java

ARG user=elasticsearch
ARG group=elasticsearch
ARG uid=1005
ARG gid=1005

RUN addgroup -g ${gid} ${group} \
    && adduser -u ${uid} -G ${group} -s /bin/bash -D ${user}

ENV VERSION 2.3.3
RUN apk add --no-cache --virtual .fetch-deps curl && \
    curl -Ls https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 > /usr/local/bin/dumb-init && \
    chmod +x /usr/local/bin/dumb-init && \
    mkdir -p /opt && \
    curl -Ls https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/${VERSION}/elasticsearch-${VERSION}.tar.gz | tar xz && \
    mv /elasticsearch-$VERSION /opt/elasticsearch && \
    rm -rf $(find /opt/elasticsearch | egrep "(\.(exe|bat)$|sigar/.*(dll|winnt|x86-linux|solaris|ia64|freebsd|macosx))") && \
    apk del .fetch-deps && \
    rm -rf /var/cache/apk && \
    chown -R ${user} /opt/elasticsearch

COPY run.sh /opt/elasticsearch/bin/run.sh

EXPOSE 9200
EXPOSE 9300
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
ENV PATH=$PATH:/opt/elasticsearch/bin
ENV ES_HEAP_SIZE=256m
CMD ["run.sh", "elasticsearch", "-Dnetwork.host=0.0.0.0", "-Dbootstrap.mlockall=true"]
{'fraction_non_alphanumeric': 0.18458933107535985, 'fraction_numerical': 0.03048264182895851, 'mean_word_length': 3.359778597785978, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3331470', 'n_tokens_mistral': 940, 'n_tokens_neox': 895, 'n_words': 173}