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

This commit is contained in:
Zuul 2020-04-23 13:16:14 +00:00 committed by Gerrit Code Review
commit dc2f8f5a8b
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]