Adds file to have a container with a Redfish mockup for testing
This commit is contained in:
parent
7fd7894c0c
commit
e556fb0ac6
13
dmtf/Dockerfile
Normal file
13
dmtf/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
# Invoke with docker run -p 8000:80 <dockerimageid>
|
||||
# Then use by browsing http://localhost:8000
|
||||
FROM ubuntu:15.04
|
||||
MAINTAINER bruno.cornec@hp.com
|
||||
ENV DEBIAN_FRONTEND noninterative
|
||||
# Install deps for Redfish mockup
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install apache2 unzip sed
|
||||
EXPOSE 80
|
||||
COPY redfish-setup.sh /tmp/redfish-setup.sh
|
||||
COPY DSP2043_0.96.0a.zip /tmp/DSP2043_0.96.0a.zip
|
||||
RUN chmod 755 /tmp/redfish-setup.sh
|
||||
CMD /tmp/redfish-setup.sh
|
11
dmtf/redfish-setup.sh
Normal file
11
dmtf/redfish-setup.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
cd /var/www/html
|
||||
unzip -q -o /tmp/DSP2043_0.96.0a.zip
|
||||
mkdir -p redfish
|
||||
cd redfish
|
||||
ln -sf .. v1
|
||||
cd ..
|
||||
ip a
|
||||
#sed -i -e 's/Listen 80/Listen 8000/' /etc/apache2/ports.conf
|
||||
echo "Launching apache2 in foreground with /usr/sbin/apache2ctl -DFOREGROUND -k start"
|
||||
/usr/sbin/apache2ctl -DFOREGROUND -k start
|
4
dmtf/run-redfish-ctn.sh
Executable file
4
dmtf/run-redfish-ctn.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Th -p option needs to be after the run command. No warning is given if before but doesn't work
|
||||
docker run -p 8000:80 localhost:5000/pb:docker-redfish
|
Loading…
x
Reference in New Issue
Block a user