diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-11-17 15:33:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-17 15:33:59 +0000 |
commit | 4713bc32bad1401a131105ea26c97a4b5119c126 (patch) | |
tree | 83541ce11dd6b1ccdb6e033c8c0aec7933b0258d /utils/test/reporting/docker/Dockerfile | |
parent | 387600a6d881bfdc046772b2a3cfbfb59fd2469c (diff) | |
parent | c850beb64083c730301188ade4cbba0f2a329a92 (diff) |
Merge "Refactor reporting dir"
Diffstat (limited to 'utils/test/reporting/docker/Dockerfile')
-rw-r--r-- | utils/test/reporting/docker/Dockerfile | 43 |
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"] |