[docker] Ensure that we have all required system packages installed

+ update bindep requirements of python package
+ use upper-constraints file while installing requirements at docker

Change-Id: Ifbda0bd2c03d4009dbc12828ee8a8215cff3a3d1
This commit is contained in:
Andrey Kurilin 2020-04-23 11:44:44 +03:00
parent 3605bc7e99
commit 60ca31c345
3 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,5 @@
rally-jobs
tests
contrib
test-requirements.txt
tox.ini
.tox
cover

View File

@ -7,8 +7,12 @@ WORKDIR /rally/xrally_opentstack
# to install package system-wide, we need to temporary switch to root user
USER root
# ensure that we have all system packages installed
# NOTE(andreykurilin): we need to update setuptools, since xrally/xrally:3.0.0
# has incompatible setuptools version for google-auth library
RUN pip3 install -U setuptools bindep && apt update && apt install --yes $(bindep -b | tr '\n' ' ') && apt clean
# disabling cache since we do not expect to install other packages
RUN pip3 install -U setuptools --no-cache-dir && pip3 install . --no-cache-dir
RUN pip3 install . --no-cache-dir --constraint ./upper-constraints.txt
# switch back to rally user for avoid permission conflicts
USER rally

View File

@ -16,8 +16,8 @@ libxslt-devel [platform:rpm]
openssl-devel [platform:rpm]
postgresql-devel [platform:rpm !platform:opensuse]
postgresql93-devel [platform:opensuse]
python-dev [platform:dpkg]
python-devel [platform:rpm]
python3-dev [platform:dpkg]
python3-devel [platform:rpm]
redhat-rpm-config [platform:rpm]
iputils-ping [platform:dpkg]
iputils [platform:rpm]