<commit_before>FROM centos:7

MAINTAINER <EMAIL>

ENV ES_VERSION 2.4.2
ENV ES_JAVA_VERSION 1.8.0

RUN \
  yum install -y java-$ES_JAVA_VERSION && \
  curl -s -L https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.tar.gz  | tar -C / -xz && \
  yum clean all

WORKDIR /elasticsearch-$ES_VERSION

VOLUME /usr/share/elasticsearch/data

EXPOSE 9200<commit_msg>Move elasticsearch location to match single dockerfile<commit_after>FROM centos:7

MAINTAINER <EMAIL>

ENV ES_VERSION 2.4.2
ENV ES_JAVA_VERSION 1.8.0

RUN \
  yum install -y java-$ES_JAVA_VERSION && \
  mkdir -p /opt/mozdef/envs && \
  curl -s -L https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.tar.gz  | tar -C /opt/mozdef -xz && \
  mv /opt/mozdef/elasticsearch-$ES_VERSION /opt/mozdef/envs/elasticsearch && \
  yum clean all

COPY docker/conf/elasticsearch.yml /opt/mozdef/envs/elasticsearch/config/

WORKDIR /opt/mozdef/envs/elasticsearch

VOLUME /var/lib/elasticsearch

EXPOSE 9200
{'fraction_non_alphanumeric': 0.11678115799803729, 'fraction_numerical': 0.021589793915603533, 'mean_word_length': 3.857142857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2874753', 'n_tokens_mistral': 383, 'n_tokens_neox': 374, 'n_words': 77}