2017-02-05 23:26:14 +01:00
|
|
|
FROM debian:8
|
2016-03-04 11:59:08 +01:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y apt-utils && \
|
|
|
|
apt-get 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
|
2016-03-05 18:54:34 +01:00
|
|
|
# Need a really recent version of setuptools to support
|
|
|
|
# configparser>=3.3.0; python_version < '3' in requirements.txt
|
|
|
|
RUN pip install --upgrade setuptools
|
2016-03-04 11:59:08 +01:00
|
|
|
RUN cd python-redfish* && \
|
|
|
|
pip install -r requirements.txt && \
|
|
|
|
python setup.py install
|
|
|
|
CMD ["/bin/bash"]
|
|
|
|
|