<commit_before>FROM fedora

WORKDIR /build
COPY . .

RUN echo -e "deltarpm=0\ninstall_weak_deps=0\ntsflags=nodocs" >> /etc/dnf/dnf.conf

# Temporary workaround until fedora:rawhide image is updated with up-to-date
# fedora-repos package.
RUN curl -O https://pagure.io/fedora-repos/raw/master/f/RPM-GPG-KEY-fedora-28-primary
RUN mv RPM-GPG-KEY-fedora-28-primary /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-28-x86_64
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-28-x86_64

RUN dnf -y update
RUN dnf -y install \
  # -- RPM packages required for installing --
  rpm-libs \
  redhat-rpm-config \
  gcc \
  python3-devel \
  # python2-devel is not available on f25.
  python-devel \
  /usr/bin/python3.6 \
  /usr/bin/python3.5 \
  /usr/bin/python2.7 \
  # -- RPM packages required for a specified case --
  # Used to get the rpm-python by git commmand,
  # if a target rpm archive URL is not found on the server.
  /usr/bin/git \
  # rpm-build-libs or DNF download plugin is required for building.
  # rpm-build-libs might be always installed.
  rpm-build-libs \
  'dnf-command(download)' \
  # Used if downloading and extracting build dependency packages in installing.
  /usr/bin/cpio \
  # -- RPM packages for testing --
  # Used in scripts/lint_bash.sh
  which \<commit_msg>Remove fedora:rawhide workaround from Dockerfile. (#90)<commit_after>FROM fedora

WORKDIR /build
COPY . .

RUN echo -e "deltarpm=0\ninstall_weak_deps=0\ntsflags=nodocs" >> /etc/dnf/dnf.conf

RUN dnf -y update
RUN dnf -y install \
  # -- RPM packages required for installing --
  rpm-libs \
  redhat-rpm-config \
  gcc \
  python3-devel \
  # python2-devel is not available on f25.
  python-devel \
  /usr/bin/python3.6 \
  /usr/bin/python3.5 \
  /usr/bin/python2.7 \
  # -- RPM packages required for a specified case --
  # Used to get the rpm-python by git commmand,
  # if a target rpm archive URL is not found on the server.
  /usr/bin/git \
  # rpm-build-libs or DNF download plugin is required for building.
  # rpm-build-libs might be always installed.
  rpm-build-libs \
  'dnf-command(download)' \
  # Used if downloading and extracting build dependency packages in installing.
  /usr/bin/cpio \
  # -- RPM packages for testing --
  # Used in scripts/lint_bash.sh
  which \
{'fraction_non_alphanumeric': 0.11490683229813664, 'fraction_numerical': 0.018633540372670808, 'mean_word_length': 2.7899159663865545, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3696003', 'n_tokens_mistral': 875, 'n_tokens_neox': 804, 'n_words': 228}