summaryrefslogtreecommitdiffstats
path: root/utils/test/reporting/docker/Dockerfile
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-11-16 18:16:43 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2016-11-17 09:27:08 +0100
commitc850beb64083c730301188ade4cbba0f2a329a92 (patch)
tree19b241b8a85c463744cff8e4e40c8b4e3764475b /utils/test/reporting/docker/Dockerfile
parent483081b7fb0cf5d7dec5ee1d6ff0bddc387a59dc (diff)
Refactor reporting dir
- dockerization - create util function for all the test projects - create a common config files - add unit tests - pep8 JIRA: RELENG-162 Change-Id: Ib209be4233084100ff238a7aeb2843ccc24a6f1e Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'utils/test/reporting/docker/Dockerfile')
-rw-r--r--utils/test/reporting/docker/Dockerfile43
1 files changed, 43 insertions, 0 deletions
diff --git a/utils/test/reporting/docker/Dockerfile b/utils/test/reporting/docker/Dockerfile
new file mode 100644
index 000000000..789df9115
--- /dev/null
+++ b/utils/test/reporting/docker/Dockerfile
@@ -0,0 +1,43 @@
+########################################
+# Docker container for OPNFV-REPORTING
+########################################
+# Purpose: run opnfv-reporting to provide consistent Testing reporting
+#
+# Maintained by Morgan Richomme
+# Build:
+# $ docker build -t opnfv/testreporting:tag .
+##
+# 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
+#
+
+FROM nginx:stable
+
+MAINTAINER Morgan Richomme <morgan.richomme@orange.com>
+LABEL version="danube.1.0" description="OPNFV Test Reporting Docker container"
+
+ARG BRANCH=master
+
+ENV HOME /home/opnfv
+ENV working_dir /home/opnfv/utils/test/reporting
+ENV TERM xterm
+ENV COLORTERM gnome-terminal
+ENV CONFIG_REPORTING_YAML /home/opnfv/utils/test/reporting/reporting.yaml
+
+# Packaged dependencies
+RUN apt-get update && apt-get install -y \
+ssh \
+git-core \
+wkhtmltopdf \
+--no-install-recommends
+
+RUN pip install --upgrade pip
+
+RUN pip install -r ${working_dir}/docker/requirements.txt
+RUN git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng /home/opnfv
+
+WORKDIR ${working_dir}
+CMD ["bash", "./docker/reporting.sh"]
+CMD ["bash", "mv display /usr/share/nginx/html"]