Refactor reporting dir
[releng.git] / utils / test / reporting / docker / Dockerfile
1 ########################################
2 #   Docker container for OPNFV-REPORTING
3 ########################################
4 # Purpose: run opnfv-reporting to provide consistent Testing reporting
5 #
6 # Maintained by Morgan Richomme
7 # Build:
8 #    $ docker build -t opnfv/testreporting:tag .
9 ##
10 # All rights reserved. This program and the accompanying materials
11 # are made available under the terms of the Apache License, Version 2.0
12 # which accompanies this distribution, and is available at
13 # http://www.apache.org/licenses/LICENSE-2.0
14 #
15
16 FROM nginx:stable
17
18 MAINTAINER Morgan Richomme <morgan.richomme@orange.com>
19 LABEL version="danube.1.0" description="OPNFV Test Reporting Docker container"
20
21 ARG BRANCH=master
22
23 ENV HOME /home/opnfv
24 ENV working_dir /home/opnfv/utils/test/reporting
25 ENV TERM xterm
26 ENV COLORTERM gnome-terminal
27 ENV CONFIG_REPORTING_YAML /home/opnfv/utils/test/reporting/reporting.yaml
28
29 # Packaged dependencies
30 RUN apt-get update && apt-get install -y \
31 ssh \
32 git-core \
33 wkhtmltopdf \
34 --no-install-recommends
35
36 RUN pip install --upgrade pip
37
38 RUN pip install -r ${working_dir}/docker/requirements.txt
39 RUN git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng /home/opnfv
40
41 WORKDIR ${working_dir}
42 CMD ["bash", "./docker/reporting.sh"]
43 CMD ["bash", "mv display /usr/share/nginx/html"]