Create Catalogue page
[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 python-pip \
33 git-core \
34 wkhtmltopdf \
35 nodejs \
36 npm \
37 supervisor \
38 --no-install-recommends
39
40 RUN pip install --upgrade pip
41
42 RUN git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng /home/opnfv
43 RUN pip install -r ${working_dir}/docker/requirements.pip
44
45 WORKDIR ${working_dir}/api
46 RUN pip install -r requirements.txt
47 RUN python setup.py install
48
49 WORKDIR ${working_dir}
50 RUN docker/reporting.sh
51
52 expose 8000
53
54 CMD ["/usr/bin/supervisord"]