1
0
Fork 0
tuned/tests/unit/Dockerfile
Jaroslav Škarvada cff78c537c tests: moved tests under directory 'tests'
Also renamed directories to be more consistent.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-11-18 16:34:11 +01:00

27 lines
598 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-flexmock
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;