<commit_before># Copyright Hybrid Logic Ltd. See LICENSE file for details.
#
# A Docker image for building RPMs in a clean Centos 7 build environment.
#

FROM centos
MAINTAINER ClusterHQ <<EMAIL>>
RUN ["yum", "groupinstall", "--assumeyes", "Development Tools"]
RUN ["yum", "install", "--assumeyes", "git", "ruby-devel", "python-devel"]
# Despite being a packaging tool, fpm isn't yet packaged for Fedora.
# See https://github.com/jordansissel/fpm/issues/611
RUN ["gem", "install", "fpm"]
WORKDIR /tmp
RUN ["curl", "--output", "get-pip.py", "https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py"]
RUN ["python", "get-pip.py"]
# The Centos7 packaged virtualenv --relocatable seems to remove the `flocker-*` scripts.
# Install it from PyPI instead.
RUN ["pip", "install", "twisted", "characteristic", "virtualenv"]
VOLUME /flocker
WORKDIR /
ENTRYPOINT ["/flocker/admin/build-package-entrypoint", "--destination-path=/output"]
<commit_msg>Force the use of centos 7 image.<commit_after># Copyright Hybrid Logic Ltd. See LICENSE file for details.
#
# A Docker image for building RPMs in a clean Centos 7 build environment.
#

FROM centos:centos7
MAINTAINER ClusterHQ <<EMAIL>>
RUN ["yum", "groupinstall", "--assumeyes", "Development Tools"]
RUN ["yum", "install", "--assumeyes", "git", "ruby-devel", "python-devel"]
# Despite being a packaging tool, fpm isn't yet packaged for Fedora.
# See https://github.com/jordansissel/fpm/issues/611
RUN ["gem", "install", "fpm"]
WORKDIR /tmp
RUN ["curl", "--output", "get-pip.py", "https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py"]
RUN ["python", "get-pip.py"]
# The Centos7 packaged virtualenv --relocatable seems to remove the `flocker-*` scripts.
# Install it from PyPI instead.
RUN ["pip", "install", "twisted", "characteristic", "virtualenv"]
VOLUME /flocker
WORKDIR /
ENTRYPOINT ["/flocker/admin/build-package-entrypoint", "--destination-path=/output"]

{'fraction_non_alphanumeric': 0.16588906168999482, 'fraction_numerical': 0.006220839813374806, 'mean_word_length': 5.03125, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '2874487', 'n_tokens_mistral': 675, 'n_tokens_neox': 617, 'n_words': 198}