python-redfish/dmtf/mockup_1.1.0/Dockerfile
Uggla 6840cc878f Add a new mechanism to create a container running simulator 1.1.0
- Move previous simulator files into mockup_0.99.0a directory.
- Cleanup, adapt mockup_0.99.0a files.
- Add mockup_1.1.0 directory to host the new simulator files.

Note :
- First redfish-client tests against this new mockup work well.
- Of course, this is a first commit so it could be refined.

Change-Id: I88ac480e5b303922be5ec37e1a14a91f68d0bd92
2017-03-08 01:50:50 +00:00

16 lines
632 B
Docker

FROM httpd:2.4
MAINTAINER bruno.cornec@hpe.com
ENV DEBIAN_FRONTEND noninterative
# Install deps for Redfish mockup
RUN apt-get update
RUN apt-get -y install unzip sed vim lsof curl
EXPOSE 8001 8002 8003 8004 8005 8006
COPY redfish-setup.sh /tmp/redfish-setup.sh
COPY DSP2043_1.1.0.zip /usr/local/apache2/htdocs/DSP2043_1.1.0.zip
RUN chmod 755 /tmp/redfish-setup.sh
RUN cd /usr/local/apache2/htdocs && unzip DSP2043_1.1.0.zip
RUN chmod -R og+rx /usr/local/apache2/htdocs/DSP2043_1.1.0
COPY httpd.conf /usr/local/apache2/conf/httpd.conf
COPY httpd-vhosts.conf /usr/local/apache2/conf/extra/httpd-vhosts.conf
CMD /tmp/redfish-setup.sh