blob: 6ea3b464c6adb18486a8e722d3e43c55a98a5a4f [file] [log] [blame]
Oleksii Zhurba9e8938b2019-03-21 14:09:51 -05001FROM xrally/xrally-openstack:0.11.2
Oleksii Zhurbac8058d62018-06-21 17:46:11 -05002
3SHELL ["/bin/bash", "-xec"]
4
5USER root
6
Oleksii Zhurbaaf3e5e82018-11-12 12:29:31 -06007RUN apt-get update; apt-get install -y iputils-ping curl wget
Oleksii Zhurba7b95c182018-07-23 20:50:03 -05008
Oleksii Zhurbac8058d62018-06-21 17:46:11 -05009WORKDIR /var/lib/
10
11RUN mkdir -p cvp-configuration
12
13RUN git clone https://github.com/openstack/tempest && \
Oleksii Zhurba12ff95b2019-05-30 17:03:54 -050014 pushd tempest; git checkout 18.0.0; \
15 sed -i 's/length=15/length=32/g' /var/lib/tempest/tempest/lib/common/utils/data_utils.py; \
16 pip install -r requirements.txt; \
Oleksii Zhurbac8058d62018-06-21 17:46:11 -050017 popd;
18
19RUN git clone https://github.com/openstack/heat-tempest-plugin && \
Oleksii Zhurba9e8938b2019-03-21 14:09:51 -050020 pushd heat-tempest-plugin; git checkout 0.2.0; pip install -r requirements.txt; \
Oleksii Zhurbac8058d62018-06-21 17:46:11 -050021 popd;
22
Oleksii Zhurba9e8938b2019-03-21 14:09:51 -050023RUN pip install --force-reinstall python-cinderclient==3.2.0 python-glanceclient==2.11
Oleksii Zhurba8b76f3d2018-08-07 12:38:26 -050024
Oleksii Zhurba12ff95b2019-05-30 17:03:54 -050025RUN sed -i 's/uuid4())/uuid4()).replace("-","")/g' /usr/local/lib/python2.7/dist-packages/rally/plugins/openstack/scenarios/keystone/utils.py
26RUN sed -i 's/uuid4())/uuid4()).replace("-","")/g' /usr/local/lib/python2.7/dist-packages/rally/plugins/openstack/context/keystone/users.py
27
Oleksii Zhurbac8058d62018-06-21 17:46:11 -050028COPY rally/ /var/lib/cvp-configuration/rally
29COPY tempest/ /var/lib/cvp-configuration/tempest
30COPY cleanup.sh /var/lib/cvp-configuration/cleanup.sh
31COPY configure.sh /var/lib/cvp-configuration/configure.sh
32
Oleksii Zhurba0adc6a52018-07-16 22:18:59 -050033WORKDIR /home/rally
34
Oleksii Zhurbac8058d62018-06-21 17:46:11 -050035ENTRYPOINT ["/bin/bash"]