<commit_before>FROM lab41/dendrite-elasticsearch
MAINTAINER <NAME> <<EMAIL>>

# graphlab
RUN echo '127.0.0.1' >> /usr/share/tomcat7/graphlab_machine.txt;
    mv /usr/share/tomcat7/graphlab_machine.txt /graphlab_machine.txt
RUN git clone https://github.com/graphlab-code/graphlab.git
RUN cd graphlab; ./configure
RUN cd graphlab/release/toolkits/graph_analytics; make -j1
RUN mkdir -p /usr/share/tomcat7/graphlab/release/toolkits; \
    cp /graphlab/release/toolkits/graph_analytics /usr/share/tomcat7/graphlab/release/toolkits/
ENV HADOOP_CONF_DIR /etc/hadoop/conf
RUN echo 'HADOOP_CONF_DIR=/etc/hadoop/conf' >> /etc/profile

# ssh for graphlab
ADD sshd.conf /etc/supervisor/conf.d/sshd.conf
RUN mkdir /var/run/sshd; mkdir /var/log/ssh; \
    ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa; \
    cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
ADD config /root/.ssh/config
RUN chown -R root:root /root/.ssh; chmod 600 /root/.ssh/config<commit_msg>recursively copy<commit_after>FROM lab41/dendrite-elasticsearch
MAINTAINER <NAME> <<EMAIL>>

# graphlab
RUN echo '127.0.0.1' >> /usr/share/tomcat7/graphlab_machine.txt;
    mv /usr/share/tomcat7/graphlab_machine.txt /graphlab_machine.txt
RUN git clone https://github.com/graphlab-code/graphlab.git
RUN cd graphlab; ./configure
RUN cd graphlab/release/toolkits/graph_analytics; make -j1
RUN mkdir -p /usr/share/tomcat7/graphlab/release/toolkits; \
    cp -R /graphlab/release/toolkits/graph_analytics /usr/share/tomcat7/graphlab/release/toolkits/
ENV HADOOP_CONF_DIR /etc/hadoop/conf
RUN echo 'HADOOP_CONF_DIR=/etc/hadoop/conf' >> /etc/profile

# ssh for graphlab
ADD sshd.conf /etc/supervisor/conf.d/sshd.conf
RUN mkdir /var/run/sshd; mkdir /var/log/ssh; \
    ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa; \
    cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
ADD config /root/.ssh/config
RUN chown -R root:root /root/.ssh; chmod 600 /root/.ssh/config
{'fraction_non_alphanumeric': 0.14158829676071055, 'fraction_numerical': 0.01671891327063741, 'mean_word_length': 3.7875, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 21, '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': '6713321', 'n_tokens_mistral': 778, 'n_tokens_neox': 734, 'n_words': 143}