<commit_before>FROM rhel7:latest

# get rid of subscript manager (we use our own mirrors)
RUN touch /var/run/rhsm ; rpm -evh subscription-manager

# creature comforts (make it feel like a normal linux environment)
ENV LANG en_US.UTF-8
ENV CONTAINER docker
ENV USER root
ENV HOME /root
ENV TERM xterm
WORKDIR /root
ADD bashrc /root/.bashrc

# Make working in Python nice
ADD pythonrc /root/.pythonrc
ENV PYTHONSTARTUP=/root/.pythonrc

# setup epel repo
RUN rpm -ivh https://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

# setup yum repos
ADD setup-yum.sh /usr/local/bin/setup-yum.sh
RUN /usr/local/bin/setup-yum.sh

RUN yum clean metadata && \
    yum -y install cronie ansible screen vim procps less ack tar psmisc && \
    yum -y update && \
    yum clean all

# Setup Cron
ADD pamd.crond /etc/pam.d/crond

# Setup Screen
RUN chmod 777 /var/run/screen

# Setup Ansible
ADD ansible.cfg /etc/ansible/ansible.cfg
RUN echo -e '[local]\nlocalhost       ansible_connection=local\n' > /etc/ansible/hosts

# Make the container work more consistently in and out of openshift
# BE CAREFUL!!! If you change these, you may bloat the image! Use 'docker history' to see the size!
RUN time chmod -R o+rwX /boot /dev /etc /home /media /mnt /opt /root /run /srv /var
<commit_msg>Adding a password for root<commit_after>FROM rhel7:latest

RUN echo "root:redhat" | chpasswd

# get rid of subscript manager (we use our own mirrors)
RUN touch /var/run/rhsm ; rpm -evh subscription-manager

# creature comforts (make it feel like a normal linux environment)
ENV LANG en_US.UTF-8
ENV CONTAINER docker
ENV USER root
ENV HOME /root
ENV TERM xterm
WORKDIR /root
ADD bashrc /root/.bashrc

# Make working in Python nice
ADD pythonrc /root/.pythonrc
ENV PYTHONSTARTUP=/root/.pythonrc

# setup epel repo
RUN rpm -ivh https://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

# setup yum repos
ADD setup-yum.sh /usr/local/bin/setup-yum.sh
RUN /usr/local/bin/setup-yum.sh

RUN yum clean metadata && \
    yum -y install cronie ansible screen vim procps less ack tar psmisc && \
    yum -y update && \
    yum clean all

# Setup Cron
ADD pamd.crond /etc/pam.d/crond

# Setup Screen
RUN chmod 777 /var/run/screen

# Setup Ansible
ADD ansible.cfg /etc/ansible/ansible.cfg
RUN echo -e '[local]\nlocalhost       ansible_connection=local\n' > /etc/ansible/hosts

{'fraction_non_alphanumeric': 0.09785804283914322, 'fraction_numerical': 0.01007979840403192, 'mean_word_length': 3.452336448598131, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7540486', 'n_tokens_mistral': 892, 'n_tokens_neox': 846, 'n_words': 287}