<commit_before>FROM centos:7
MAINTAINER moremagic<<EMAIL>>

# Install
RUN yum -y update
RUN yum -y install wget tar java-1.7.0-*

# ssh
RUN yum install -y passwd openssh-server initscripts \
	&& echo 'root:root' | chpasswd \
	&& /usr/sbin/sshd-keygen

# Elasticsearch install
RUN rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
ADD elasticsearch.repo /etc/yum.repos.d/
RUN yum update && yum install -y elasticsearch

WORKDIR /usr/share/elasticsearch
RUN bin/plugin install analysis-kuromoji
RUN bin/plugin install mobz/elasticsearch-head

RUN echo network.host: 0.0.0.0$'\n'node.name: $'${HOSTNAME}\n' >> /etc/elasticsearch/elasticsearch.yml
RUN echo cluster.name: docker.elasticsearch >> /etc/elasticsearch/elasticsearch.yml

EXPOSE 22 9200
CMD /etc/init.d/elasticsearch start; \<commit_msg>discovery config fix<commit_after>FROM centos:7
MAINTAINER moremagic<<EMAIL>>

# Install
RUN yum -y update
RUN yum -y install wget tar java-1.7.0-*

# ssh
RUN yum install -y passwd openssh-server initscripts \
	&& echo 'root:root' | chpasswd \
	&& /usr/sbin/sshd-keygen

# Elasticsearch install
RUN rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
ADD elasticsearch.repo /etc/yum.repos.d/
RUN yum update && yum install -y elasticsearch

WORKDIR /usr/share/elasticsearch
RUN bin/plugin install analysis-kuromoji
RUN bin/plugin install mobz/elasticsearch-head

RUN echo network.host: 0.0.0.0$'\n'node.name: $'${HOSTNAME}\n' >> /etc/elasticsearch/elasticsearch.yml
RUN echo cluster.name: docker.elasticsearch$'\n' >> /etc/elasticsearch/elasticsearch.yml
RUN echo discovery.zen.ping.multicast.enabled: false >> /etc/elasticsearch/elasticsearch.yml

EXPOSE 22 9200
CMD /etc/init.d/elasticsearch start; \
{'fraction_non_alphanumeric': 0.12507271669575334, 'fraction_numerical': 0.016288539848749273, 'mean_word_length': 4.408805031446541, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5639934', 'n_tokens_mistral': 602, 'n_tokens_neox': 590, 'n_words': 149}