Oleksii Zhurba | 9e8938b | 2019-03-21 14:09:51 -0500 | [diff] [blame] | 1 | FROM xrally/xrally-openstack:0.11.2 |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 2 | |
| 3 | SHELL ["/bin/bash", "-xec"] |
| 4 | |
| 5 | USER root |
| 6 | |
Oleksii Zhurba | af3e5e8 | 2018-11-12 12:29:31 -0600 | [diff] [blame] | 7 | RUN apt-get update; apt-get install -y iputils-ping curl wget |
Oleksii Zhurba | 7b95c18 | 2018-07-23 20:50:03 -0500 | [diff] [blame] | 8 | |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 9 | WORKDIR /var/lib/ |
| 10 | |
| 11 | RUN mkdir -p cvp-configuration |
| 12 | |
| 13 | RUN git clone https://github.com/openstack/tempest && \ |
Oleksii Zhurba | 12ff95b | 2019-05-30 17:03:54 -0500 | [diff] [blame] | 14 | 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 Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 17 | popd; |
| 18 | |
| 19 | RUN git clone https://github.com/openstack/heat-tempest-plugin && \ |
Oleksii Zhurba | 9e8938b | 2019-03-21 14:09:51 -0500 | [diff] [blame] | 20 | pushd heat-tempest-plugin; git checkout 0.2.0; pip install -r requirements.txt; \ |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 21 | popd; |
| 22 | |
Oleksii Zhurba | 9e8938b | 2019-03-21 14:09:51 -0500 | [diff] [blame] | 23 | RUN pip install --force-reinstall python-cinderclient==3.2.0 python-glanceclient==2.11 |
Oleksii Zhurba | 8b76f3d | 2018-08-07 12:38:26 -0500 | [diff] [blame] | 24 | |
Oleksii Zhurba | 12ff95b | 2019-05-30 17:03:54 -0500 | [diff] [blame] | 25 | RUN sed -i 's/uuid4())/uuid4()).replace("-","")/g' /usr/local/lib/python2.7/dist-packages/rally/plugins/openstack/scenarios/keystone/utils.py |
| 26 | RUN sed -i 's/uuid4())/uuid4()).replace("-","")/g' /usr/local/lib/python2.7/dist-packages/rally/plugins/openstack/context/keystone/users.py |
| 27 | |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 28 | COPY rally/ /var/lib/cvp-configuration/rally |
| 29 | COPY tempest/ /var/lib/cvp-configuration/tempest |
| 30 | COPY cleanup.sh /var/lib/cvp-configuration/cleanup.sh |
| 31 | COPY configure.sh /var/lib/cvp-configuration/configure.sh |
| 32 | |
Oleksii Zhurba | 0adc6a5 | 2018-07-16 22:18:59 -0500 | [diff] [blame] | 33 | WORKDIR /home/rally |
| 34 | |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 35 | ENTRYPOINT ["/bin/bash"] |