9d53318f04
* upgrade Rally dependency to point to require 4.1.0 This brings SQLAlchemy 2 support which is covered by unittests/functional tests now. * dropping testtools test dep. We are dropping it just because standard unittest lib is good enough for our use * deprecatng murani, sahara, senlin plugins as those projects are retired Change-Id: I8ff6f8f8497907091a91c16a2e4a76051827397d
19 lines
811 B
Docker
19 lines
811 B
Docker
FROM xrally/xrally:4.1.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_openstack
|
|
WORKDIR /rally/xrally_openstack
|
|
|
|
# to install package system-wide, we need to temporary switch to root user
|
|
USER root
|
|
# ensure that we have latest ca-certs
|
|
RUN apt update && apt install --reinstall ca-certificates --yes
|
|
# ensure that we have all system dependencies installed
|
|
RUN pip3 install --no-cache-dir -U bindep && DEBIAN_FRONTEND=noninteractive 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
|