python-redfish/redfish-client/tests/Dockerfile.debian
Uggla 096d58f25e Introduce client testing
This is a first implementation probably a bit raw.
So it needs improvement.

Tests require:
- docker available on host.
- docker credentials to the user who is running the tests.

Current tests:
- Check docker socket
- Check docker can be used by api.
- Check source installation on Ubuntu, Debian, Fedora.
- Check pip installation in Fedora.
- Check if client can show an empty configuration.
- Check client version format (basic).
2016-03-04 12:02:13 +01:00

14 lines
381 B
Docker

FROM debian:jessie
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
RUN cd python-redfish* && \
pip install -r requirements.txt && \
python setup.py install
CMD ["/bin/bash"]