<commit_before>FROM viki_data/base-storm
MAINTAINER viki-data <EMAIL>

# Install dnsmasq for resolving hostnames for other storm-supervisor
RUN apt-get install -y dnsmasq
# Add configuration for dnsmasq
RUN echo 'user=root' | tee -a /etc/dnsmasq.conf
RUN echo 'domain-needed' | tee -a /etc/dnsmasq.conf
RUN echo 'bogus-priv' | tee -a /etc/dnsmasq.conf
RUN echo 'addn-hosts=/etc/dnsmasq-extra-hosts' | tee -a /etc/dnsmasq.conf
# Add supervisord config for dnsmasq
ADD dnsmasq.supervisord.conf /etc/supervisor/conf.d/dnsmasq.conf

RUN mkdir /var/run/sshd
RUN apt-get install -y openssh-server
RUN echo 'root:root' | chpasswd
RUN sed -i 's/^\(PermitRootLogin\).*$/\1 yes/' /etc/ssh/sshd_config
RUN sed -i 's/^\(.*pam_loginuid\.so.*\)$/#\1/' /etc/pam.d/sshd

ADD ssh.supervisord.conf /etc/supervisor/conf.d/ssh.conf

EXPOSE 6700
EXPOSE 6701
EXPOSE 6702
EXPOSE 6703
EXPOSE 8000
EXPOSE 22

RUN /usr/bin/config-supervisord.sh supervisor<commit_msg>storm-supervisor/Dockerfile - Dont expose Storm related ports<commit_after>FROM viki_data/base-storm
MAINTAINER viki-data <EMAIL>

# Install dnsmasq for resolving hostnames for other storm-supervisor
RUN apt-get install -y dnsmasq
# Add configuration for dnsmasq
RUN echo 'user=root' | tee -a /etc/dnsmasq.conf
RUN echo 'domain-needed' | tee -a /etc/dnsmasq.conf
RUN echo 'bogus-priv' | tee -a /etc/dnsmasq.conf
RUN echo 'addn-hosts=/etc/dnsmasq-extra-hosts' | tee -a /etc/dnsmasq.conf
# Add supervisord config for dnsmasq
ADD dnsmasq.supervisord.conf /etc/supervisor/conf.d/dnsmasq.conf

RUN mkdir /var/run/sshd
RUN apt-get install -y openssh-server
RUN echo 'root:root' | chpasswd
RUN sed -i 's/^\(PermitRootLogin\).*$/\1 yes/' /etc/ssh/sshd_config
RUN sed -i 's/^\(.*pam_loginuid\.so.*\)$/#\1/' /etc/pam.d/sshd

ADD ssh.supervisord.conf /etc/supervisor/conf.d/ssh.conf

EXPOSE 22

RUN /usr/bin/config-supervisord.sh supervisor
{'fraction_non_alphanumeric': 0.13422459893048128, 'fraction_numerical': 0.014973262032085561, 'mean_word_length': 3.9497354497354498, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1048137', 'n_tokens_mistral': 809, 'n_tokens_neox': 742, 'n_words': 184}