anchor.diff:      python3-dnf \
       python3-hawkey
   RUN ln -s /usr/local/bin/dnf-3 /usr/bin/dnf
  -
  -# Copy in the source trees
  -COPY libdnf /libdnf
  -COPY dnf /dnf
  -
  -# Prepare build environment
  -RUN mkdir -p /build/{libdnf,dnf}
  -WORKDIR /build/libdnf
  -RUN cmake /libdnf -DCMAKE_INSTALL_PREFIX=/ -DPYTHON_DESIRED=3
  -WORKDIR /build/dnf
  -RUN cmake /dnf -DPYTHON_DESIRED=3
  -WORKDIR /test
  -RUN echo "cmake /build/libdnf && cmake /build/dnf" \
  -    > /usr/local/bin/prep && chmod +x /usr/local/bin/prep
  -RUN echo "make -C /build/libdnf install && \
  -          make -C /build/dnf doc && \
  -          make -C /build/dnf install" \
  -    > /usr/local/bin/build && chmod +x /usr/local/bin/build
  -
  -# Fake rpmdb records
  -ENV VLIB 0.35.1
  -ENV VDNF 4.2.8
   RUN python3 -c "import rpmfluff; \
  -                b = rpmfluff.SimpleRpmBuild('libdnf', '${VLIB}', '1'); \
  +                b = rpmfluff.SimpleRpmBuild('libdnf', '${LIBDNF_VERSION}', '1'); \
                   b.make(); print(b.get_built_rpm('x86_64')); \
  -                b = rpmfluff.SimpleRpmBuild('dnf', '${VDNF}', '1', \
  -                                            buildArchs=['noarch']); \
  +                b = rpmfluff.SimpleRpmBuild('dnf', '${DNF_VERSION}', '1', buildArchs=['noarch']); \
                   b.make(); print(b.get_built_rpm('noarch'))" \
       | xargs rpm -i --nodeps --justdb
   
  -VOLUME ["/libdnf", "/dnf", "/test"]
  -ENTRYPOINT ["/bin/bash"]
  +CMD /bin/sh
  
positive.code: # DNF stack development image
  
  FROM fedora:rawhide
  
  RUN sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf
  
  # Install build deps
  RUN dnf install -y \
  
negative.code:         python3-sphinx \
          rpm-devel \
          sqlite-devel \
          swig
  
  # Install development tools
  RUN dnf install -y \
          python3-pip \
          python3-ipdb \
          tito \
          vim
  RUN pip3 install --upgrade pip && pip3 install pudb
  
  RUN dnf clean all
  
  # Replace system installations with fake rpmdb entries
  RUN rpm -e --nodeps \
      libdnf \
      python3-libdnf \
  