summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile-reporting
diff options
context:
space:
mode:
authormbeierl <mark.beierl@dell.com>2017-07-11 15:12:35 -0400
committermbeierl <mark.beierl@dell.com>2017-07-11 15:47:46 -0400
commit7602a54309adbe5c5346ee6befecc2e596976504 (patch)
tree60f15026780db30b0b8842ba1a1e2cc021e22625 /docker/Dockerfile-reporting
parentfc09b37e95c19f820ec60db19d98c0dc3d670829 (diff)
Change all paths
Changes the paths of all source code so that it exists under the dockerfile location for each container. This way we can use COPY instead of git clone, as well as use the existing JJB. Change-Id: I883b2957d89659c164fff0a1ebc4d677c534796d JIRA: STORPERF-188 Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'docker/Dockerfile-reporting')
-rw-r--r--docker/Dockerfile-reporting33
1 files changed, 33 insertions, 0 deletions
diff --git a/docker/Dockerfile-reporting b/docker/Dockerfile-reporting
new file mode 100644
index 0000000..ad00019
--- /dev/null
+++ b/docker/Dockerfile-reporting
@@ -0,0 +1,33 @@
+##############################################################################
+# Copyright (c) 2017 Dell EMC and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+# Docker container for StorPerf Graphing and Reporting module
+#
+# Purpose: self-contained image that can create reports and graphs of data
+#
+# Build:
+# $ docker build -t opnfv/storperf-reporting:tag .
+##
+
+
+FROM alpine:3.1
+MAINTAINER Mark Beierl <mark.beierl@dell.com>
+LABEL version="0.1" description="OPNFV Storperf Reporting Container"
+
+ARG BRANCH=master
+
+RUN apk add --update python py-pip
+
+COPY storperf-reporting /home/opnfv/storperf-reporting
+WORKDIR /home/opnfv/storperf-reporting
+
+RUN pip install -r /home/opnfv/storperf-reporting/requirements.txt
+ENTRYPOINT ["python"]
+CMD ["/home/opnfv/storperf-reporting/src/app.py"]
+
+EXPOSE 5000 \ No newline at end of file