rally-openstack/Dockerfile
Andrey Kurilin 9ca642e4e0 Update Docker image
Change-Id: Id3ba48db92dc92b9be128a50ee4f560e621d1423
2020-03-24 22:19:54 +02:00

15 lines
529 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
# disabling cache since we do not expect to install other packages
RUN pip3 install -U setuptools --no-cache-dir && pip3 install . --no-cache-dir
# switch back to rally user for avoid permission conflicts
USER rally