rally-openstack/Dockerfile
Andrey Kurilin 60ca31c345 [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
2020-04-23 12:47:26 +03:00

19 lines
829 B
Docker

FROM xrally/xrally:3.0.0
# "rally" user (which is selected by-default) is owner of "/rally" directory,
# so there is no need to call chown or switch the user
COPY . /rally/xrally_opentstack
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 . --no-cache-dir --constraint ./upper-constraints.txt
# switch back to rally user for avoid permission conflicts
USER rally