f5168d1ae2f8509afdc8ec3dd940807caeb55b0d
[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="1.0" description="OPNFV Test Reporting Docker container"
20
21 ARG BRANCH=master
22
23 ENV HOME /home/opnfv
24 ENV working_dir ${HOME}/releng/utils/test/reporting
25 ENV CONFIG_REPORTING_YAML ${working_dir}/reporting.yaml
26
27 WORKDIR ${HOME}
28 # Packaged dependencies
29 RUN apt-get update && apt-get install -y \
30 ssh \
31 python-pip \
32 git-core \
33 nodejs \
34 npm \
35 supervisor \
36 --no-install-recommends
37
38 RUN pip install --upgrade pip
39
40 RUN git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng ${HOME}/releng
41 RUN pip install -r ${working_dir}/requirements.txt
42
43 WORKDIR ${working_dir}
44 RUN python setup.py install
45 RUN docker/reporting.sh
46 RUN docker/web_server.sh
47
48 expose 8000
49
50 CMD ["/usr/bin/supervisord"]