1
0
Fork 0
tuned/tests/unit/Dockerfile
Tomas Korbar 140d982354 Replace python flexmock module with builtin mock
Also replace dependency in specfile and alter dockerfile

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-11-28 07:54:15 +01:00

27 lines
594 B
Docker

ARG OS
FROM $OS
WORKDIR /test_dir
ADD ./ /test_dir
ARG PACKAGE_MANAGER=dnf
ENV PKM=$PACKAGE_MANAGER
ARG OS
RUN if [[ $OS == "centos:7" ]]; then yum install -y epel-release; fi;
RUN ${PKM} install -y virt-what ethtool gawk hdparm util-linux dbus polkit make
ARG PYTHON
RUN ${PKM} install -y python$PYTHON-mock
ARG OS
ARG PYTHON
RUN if [[ $OS == "centos:7" ]]; then export py=python; \
else export py=python$PYTHON; fi; \
${PKM} install -y ${py}-dbus \
${py}-decorator ${py}-pyudev ${py}-configobj ${py}-schedutils \
${py}-linux-procfs ${py}-perf ${py}-unittest2 ${py}-gobject-base;