FROM fedora:29

ARG src_path

# repo updates-testing temporarily disabled because of metadata fetching error
RUN dnf install -y --disablerepo updates-testing \
        # python
        python3 \
        python3-lxml \
        python3-mock \
        python3-pycurl \
        python3-pyOpenSSL \
        python3-tornado \
        # ruby
        ruby \
        ruby-devel \
        rubygem-bundler \
        rubygem-backports \
        rubygem-ethon \
        rubygem-ffi \
        rubygem-io-console \
        rubygem-json \
        rubygem-open4 \
        rubygem-rack \
        rubygem-rack-protection \
        rubygem-rack-test \
        rubygem-sinatra \
        rubygem-tilt \
        rubygem-test-unit \
        # cluster stack
        corosync \
        pacemaker \
        pacemaker-cli \
        fence-agents-scsi \
        fence-agents-apc \
        fence-agents-ipmilan \
        fence-virt \
        booth-site \
        # find
        findutils

# Specifiec pylint version is required
RUN pip3 install pylint==2.3.1

COPY . $src_path
