From 971ba98172682052b512aaa79d8b60d685d31944 Mon Sep 17 00:00:00 2001 From: Uggla Date: Mon, 4 Apr 2016 17:07:46 +0200 Subject: [PATCH] Add Dockerfile for centos --- redfish-client/tests/Dockerfile.centos | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 redfish-client/tests/Dockerfile.centos diff --git a/redfish-client/tests/Dockerfile.centos b/redfish-client/tests/Dockerfile.centos new file mode 100644 index 0000000..1814310 --- /dev/null +++ b/redfish-client/tests/Dockerfile.centos @@ -0,0 +1,12 @@ +FROM centos:7 +RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \ +yum install -y python-pip +COPY python-redfish.src.tar.gz /python-redfish.src.tar.gz +RUN mkdir /var/log/python-redfish +RUN tar xvvf python-redfish.src.tar.gz +RUN pip install --upgrade pip +RUN pip install --upgrade setuptools +RUN cd python-redfish* && \ +pip install -r requirements.txt && \ +python setup.py install +CMD ["/bin/bash"]