]> review.fuel-infra Code Review - tools/sustaining.git/commitdiff
Use py3.7 for testrail-reporter 07/41907/1
authorVladimir Khlyunev <vkhlyunev@mirantis.com>
Wed, 4 May 2022 10:23:29 +0000 (14:23 +0400)
committerVladimir Khlyunev <vkhlyunev@mirantis.com>
Wed, 4 May 2022 10:23:29 +0000 (14:23 +0400)
Change-Id: I6d9cd4f1ee07d41dcf8999818b9e96f9c2d9a588

maintenance-ci/mos/reporter-docker/Dockerfile

index 32e7335b4b336eb8eddacd1df6c76c274901d53a..4fe7bb6319f0479dc7fcf30b5f1b4b24f4c4a9ef 100644 (file)
@@ -1,4 +1,4 @@
-FROM ubuntu:16.04
+FROM ubuntu:18.04
 
 LABEL rebuild="build1"
 
@@ -13,23 +13,18 @@ RUN echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/docker-no-languages
     && echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/docker-gzip-indexes \
     && echo 'APT::Get::Install-Recommends "false"; APT::Get::Install-Suggests "false";' > /etc/apt/apt.conf.d/docker-recommends \
     && apt-get update \
-    && apt-get -yy upgrade \
-    && apt-get install -y git python-dev python-virtualenv \
-    && apt-get -y install python-pip && pip install -U "pip<21"
+    && apt-get -yy upgrade
+RUN apt-get install -y git python-dev python-virtualenv software-properties-common build-essential libpq-dev libssl-dev openssl libssl-dev libffi-dev zlib1g-dev
+RUN apt-get install -y python3.7
 
 WORKDIR /root
 
-RUN virtualenv report-venv  \
+RUN virtualenv --python=python3.7 report-venv  \
     && source report-venv/bin/activate \
-    && pip install -U "pip<21" \
-    && pip install -U "setuptools<45.0.0" six "Jinja2==2.11.3" "prettytable==1.0.1" "pytest-runner==5.2"
-
-RUN source report-venv/bin/activate \
     && git clone https://github.com/dis-xcom/testrail_reporter.git  \
-    && cd testrail_reporter  \
-    && git checkout v0.7.3 \
+    && cd testrail_reporter \
     && python setup.py install
-
-COPY run_report.sh /root/run_report.sh
-
-CMD /bin/bash /root/run_report.sh
+#
+#COPY run_report.sh /root/run_report.sh
+#
+#CMD /bin/bash /root/run_report.sh