<commit_before>#
# Docker configuration to set up a Ubuntu 16.04 image with Media Cloud
# dependencies preinstalled for Travis to pull and use later.
#
# To build and publish, run:
#
#     cd ansible/
#     docker build -t mediacloud-travis .
#     docker tag mediacloud-travis:latest dockermediacloud/mediacloud-travis:<YYYYMMDD>
#     docker push dockermediacloud/mediacloud-travis:<YYYYMMDD>
#     # Update Docker image tag in .travis.yml
#

FROM ubuntu:16.04

ENV DEBIAN_FRONTEND noninteractive

COPY . /mediacloud-ansible/

RUN \
    apt-get -y update && \
    apt-get -y --no-install-recommends install apt-utils && \
    apt-get -y --no-install-recommends install apt-transport-https && \
    apt-get -y --no-install-recommends install sudo && \
    apt-get -y --no-install-recommends install build-essential file python python-dev python-pip python-setuptools && \
    apt-get -y --no-install-recommends install apache2 apache2-fcgi && \
    apt-get -y clean && \
    \
    pip install --upgrade pip && \
    pip install --upgrade ansible && \
    rm -rf /root/.cache/ && \
    \
    useradd -ms /bin/bash mediacloud && \
    echo 'mediacloud ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/99_mediacloud && \
    \
    mkdir /home/mediacloud/mediacloud/ && \
    mv /mediacloud-ansible /home/mediacloud/mediacloud/ansible/ && \
    chown -R mediacloud:mediacloud /home/mediacloud/mediacloud/

USER mediacloud
WORKDIR /home/mediacloud/mediacloud/ansible/<commit_msg>Fix package name<commit_after>#
# Docker configuration to set up a Ubuntu 16.04 image with Media Cloud
# dependencies preinstalled for Travis to pull and use later.
#
# To build and publish, run:
#
#     cd ansible/
#     docker build -t mediacloud-travis .
#     docker tag mediacloud-travis:latest dockermediacloud/mediacloud-travis:<YYYYMMDD>
#     docker push dockermediacloud/mediacloud-travis:<YYYYMMDD>
#     # Update Docker image tag in .travis.yml
#

FROM ubuntu:16.04

ENV DEBIAN_FRONTEND noninteractive

COPY . /mediacloud-ansible/

RUN \
    apt-get -y update && \
    apt-get -y --no-install-recommends install apt-utils && \
    apt-get -y --no-install-recommends install apt-transport-https && \
    apt-get -y --no-install-recommends install sudo && \
    apt-get -y --no-install-recommends install build-essential file python python-dev python-pip python-setuptools && \
    apt-get -y --no-install-recommends install apache2 libapache2-mod-fcgid && \
    apt-get -y clean && \
    \
    pip install --upgrade pip && \
    pip install --upgrade ansible && \
    rm -rf /root/.cache/ && \
    \
    useradd -ms /bin/bash mediacloud && \
    echo 'mediacloud ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/99_mediacloud && \
    \
    mkdir /home/mediacloud/mediacloud/ && \
    mv /mediacloud-ansible /home/mediacloud/mediacloud/ansible/ && \
    chown -R mediacloud:mediacloud /home/mediacloud/mediacloud/

USER mediacloud
WORKDIR /home/mediacloud/mediacloud/ansible/
{'fraction_non_alphanumeric': 0.12054329371816638, 'fraction_numerical': 0.008149405772495755, 'mean_word_length': 2.8359375, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '3663942', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1025, 'n_words': 249}