| FROM python:2 |
| LABEL maintainer="Serhii Turivnyi <sturivnyi@mirantis.com>" |
| |
| RUN apt-get update -qq && \ |
| apt-get install -q -y \ |
| python-dev \ |
| python2.7 python-pip \ |
| git vim \ |
| libvirt-dev && \ |
| pip install pdbpp && \ |
| apt-get clean && \ |
| rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
| |
| WORKDIR /opt/ |
| |
| RUN pip install xunit2testrail |
| RUN git clone --single-branch --branch for_docker https://github.com/Turivniy/upd_testrail_xml.git |
| |
| ENV TESTRAIL_PLAN_NAME="[MCP-Q2]System-proposed-2018-02-05" |
| ENV TEST_GROUP="openstack" |
| ENV TESTRAIL_URL="https://mirantis.testrail.com" |
| ENV TESTRAIL_PROJECT='Mirantis Cloud Platform' |
| ENV TESTRAIL_MILESTONE='MCP1.1' |
| ENV TESTRAIL_SUITE="[MCP1.1_PIKE]Tempest" |
| ENV PASTE_BASE_URL="" |
| ENV REPORT=/srv/report.xml |
| ENV OUTPUT_XUNIT_REPORT=/opt/upd_testrail_xml/output_verification.xml |
| ENV PASS=TESTRAIL_PASSWORD |
| |
| COPY entrypoint.sh /opt/ |
| |
| # Change report filename |
| COPY report_to_upload_to_testrail.xml $REPORT |
| |
| # Change TESTRAIL_PASSWORD and TESTRAIL_USER or use it |
| ENV TESTRAIL_PASSWORD="TestrailBot987^" |
| ENV TESTRAIL_USER="mosqa-eng@mirantis.com" |
| |
| ENTRYPOINT ["/opt/entrypoint.sh"] |