python-redfish/redfish-client/tests/Dockerfile.fedora
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

12 lines
331 B
Docker

FROM fedora:23
RUN dnf install -y python-pip && \
dnf install -y git && \
dnf install -y tar
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"]