<commit_before>FROM centos:7
MAINTAINER Ansible Service Broker Community

RUN curl https://copr.fedorainfracloud.org/coprs/g/ansible-service-broker/ansible-service-broker/repo/epel-7/group_ansible-service-broker-ansible-service-broker-epel-7.repo -o /etc/yum.repos.d/asb.repo

ENV USER_NAME=ansibleservicebroker \
    USER_UID=1001 \
    BASE_DIR=/opt/ansibleservicebroker
ENV HOME=${BASE_DIR}

RUN yum -y update \
 && yum -y install epel-release centos-release-openshift-origin \
 && yum -y install origin-clients ansible-service-broker ansible-service-broker-container-scripts \
 && yum clean all

RUN mkdir -p ${BASE_DIR} ${BASE_DIR}/etc \
 && useradd -u ${USER_UID} -r -g 0 -M -d ${BASE_DIR} -b ${BASE_DIR} -s /sbin/nologin -c "ansibleservicebroker user" ${USER_NAME} \
 && chown -R ${USER_NAME}:0 ${BASE_DIR} /var/log/ansible-service-broker /etc/ansible-service-broker \
 && chmod -R g+rw ${BASE_DIR} /etc/passwd /etc/ansible-service-broker /var/log/ansible-service-broker

USER ${USER_UID}
RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > ${BASE_DIR}/etc/passwd.template

ENTRYPOINT ["entrypoint.sh"]<commit_msg>Fix the rpm Dockerfile so it builds and works (#187)<commit_after>FROM centos:7
MAINTAINER Ansible Service Broker Community

RUN curl https://copr.fedorainfracloud.org/coprs/g/ansible-service-broker/ansible-service-broker/repo/epel-7/group_ansible-service-broker-ansible-service-broker-epel-7.repo -o /etc/yum.repos.d/asb.repo

ENV USER_NAME=ansibleservicebroker \
    USER_UID=1001 \
    BASE_DIR=/var/lib/ansibleservicebroker

RUN yum -y update \
 && yum -y install epel-release centos-release-openshift-origin \
 && yum -y install origin-clients ansible-service-broker ansible-service-broker-container-scripts \
 && yum clean all

RUN mkdir -p ${BASE_DIR} ${BASE_DIR}/etc \
 && userdel ansibleservicebroker \
 && useradd -u ${USER_UID} -r -g 0 -M -d ${BASE_DIR} -b ${BASE_DIR} -s /sbin/nologin -c "ansibleservicebroker user" ${USER_NAME} \
 && chown -R ${USER_NAME}:0 ${BASE_DIR} /var/log/ansible-service-broker /etc/ansible-service-broker \
 && chmod -R g+rw ${BASE_DIR} /etc/passwd /etc/ansible-service-broker /var/log/ansible-service-broker

USER ${USER_UID}
RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > ${BASE_DIR}/etc/passwd.template

ENTRYPOINT ["entrypoint.sh"]
{'fraction_non_alphanumeric': 0.15785019043588658, 'fraction_numerical': 0.008887008040626322, 'mean_word_length': 4.43448275862069, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7438717', 'n_tokens_mistral': 933, 'n_tokens_neox': 903, 'n_words': 168}