FROM fedora:24

# so we don't have to compile those when fetched from PyPI
RUN dnf install -y \
        fedmsg-relay \
        gcc \
        git \
        koji \
        krb5-workstation \
        python-devel \
        python-flask \
        python-m2ext \
        python-mock \
        python-pip \
        python-qpid \
        python-futures \
        python2-cffi \
        python2-cryptography \
        python2-pdc-client \
        python2-setuptools \
        python2-zmq \
        redhat-rpm-config \
        rpm-build \
        systemd-devel \
        # Troubleshooting tools
        findutils \
        nc \
        procps \
        telnet \
    && dnf autoremove -y \
    && dnf clean all \
    && mkdir /tmp/module_build_service/ \
    && mkdir /etc/module-build-service/
COPY . /tmp/module_build_service/
WORKDIR /tmp/module_build_service/
ENV MODULE_BUILD_SERVICE_DEVELOPER_ENV=1
RUN python setup.py develop
RUN python setup.py egg_info
RUN pip install -r test-requirements.txt
