Add Dockerfile for centos

This commit is contained in:
Uggla 2016-04-04 17:07:46 +02:00
parent 846952810a
commit 971ba98172

View File

@ -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"]