<commit_before># Dockerfile for building Ansible image for CentOS 7, with as few additional software as possible.
#
# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue,
#        we need to patch /etc/sudoers.
#        @see http://unix.stackexchange.com/questions/122616/why-do-i-need-a-tty-to-run-sudo-if-i-can-sudo-without-a-password
#        @see https://bugzilla.redhat.com/show_bug.cgi?id=1020147
#
# Version  1.0
#
# Based on https://github.com/William-Yeh/docker-ansible/
#

# pull base image
FROM centos:centos6

MAINTAINER <NAME> <<EMAIL>>

ENV ANSIBLE_VERSION 1.9.2

RUN echo "===> Installing EPEL..."        && \
    yum -y install epel-release           && \
    \
    \
    echo "==> Updating packages..." && \
    yum -y update && \
    \
    \
    echo "===> Installing dependencies..." && \
    yum -y install sudo python-pip python-pycrypto python-devel gcc git && \
    pip install -U pip                   && \
    \
    \
    echo "===> Installing ansible..."    && \
    pip install ansible==${ANSIBLE_VERSION}  && \
    \
    \
    echo "===> Disabling sudo 'requiretty' setting..."    && \
    sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/'  /etc/sudoers   && \<commit_msg>Add sudoers defaults to keep proxy environment variables<commit_after># Dockerfile for building Ansible image for CentOS 7, with as few additional software as possible.
#
# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue,
#        we need to patch /etc/sudoers.
#        @see http://unix.stackexchange.com/questions/122616/why-do-i-need-a-tty-to-run-sudo-if-i-can-sudo-without-a-password
#        @see https://bugzilla.redhat.com/show_bug.cgi?id=1020147
#
# Version  1.0
#
# Based on https://github.com/William-Yeh/docker-ansible/
#

# pull base image
FROM centos:centos6

MAINTAINER <NAME> <<EMAIL>>

ENV ANSIBLE_VERSION 1.9.2

RUN echo "===> Installing EPEL..."        && \
    yum -y install epel-release           && \
    \
    \
    echo "==> Updating packages..." && \
    yum -y update && \
    \
    \
    echo "===> Installing dependencies..." && \
    yum -y install sudo python-pip python-pycrypto python-devel gcc git && \
    pip install -U pip                   && \
    \
    \
    echo "===> Installing ansible..."    && \
    pip install ansible==${ANSIBLE_VERSION}  && \
    \
    \
    echo "===> Disabling sudo 'requiretty' setting..."    && \
    sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/'  /etc/sudoers   && \
    echo 'Defaults        env_keep += "http_proxy https_proxy HTTP_PROXY HTTPS_PROXY"' >> /etc/sudoers && \
{'fraction_non_alphanumeric': 0.16029354963306297, 'fraction_numerical': 0.016222479721900347, 'mean_word_length': 2.1818181818181817, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 21, 'https://': 4, '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': '4694601', 'n_tokens_mistral': 962, 'n_tokens_neox': 890, 'n_words': 221}