From 9efa75fa08dad32b95ada37bb8e22371c51626c3 Mon Sep 17 00:00:00 2001 From: mbeierl Date: Wed, 12 Jul 2017 21:41:01 -0400 Subject: Creation of Local Docker for Daily Job Moves the dockerfiles for the different submodules/containers into their respective directories. Adds a docker compose file that can build the containers from the local filesystem, and mounts the local filesystem as a volume, making it easier for developer testing as local changes are automatically reflected in the final container. Change-Id: I2376034258cab2a3dc3a0d1ac3f01bbf5d1f59e7 JIRA: STORPERF-189 Signed-off-by: mbeierl --- docker/storperf-reporting/Dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 docker/storperf-reporting/Dockerfile (limited to 'docker/storperf-reporting/Dockerfile') diff --git a/docker/storperf-reporting/Dockerfile b/docker/storperf-reporting/Dockerfile new file mode 100644 index 0000000..606bac0 --- /dev/null +++ b/docker/storperf-reporting/Dockerfile @@ -0,0 +1,30 @@ +############################################################################## +# 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 +LABEL version="0.1" description="OPNFV Storperf Reporting Container" + +RUN apk add --update python py-pip + +COPY . /home/opnfv/storperf-reporting +WORKDIR /home/opnfv/storperf-reporting +RUN pip install -r /home/opnfv/storperf-reporting/requirements.txt + +CMD ["python", "app.py"] + +EXPOSE 5000 \ No newline at end of file -- cgit 1.2.3-korg