1
0
Fork 0
tuned/tests/Dockerfile
Tomas Korbar 2b990ac8ac Add Travis and Docker file
- Dockerfile supports builds for both fedora and centos
- This commit will allow us to run tests after each new commit
2018-10-15 13:20:14 +02: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;