Oleksii Zhurba | 5910046 | 2018-09-05 11:31:21 -0500 | [diff] [blame] | 1 | FROM docker-dev-virtual.docker.mirantis.net/mirantis/cicd/ci-tempest:pike |
| 2 | |
| 3 | RUN apt-get update && apt-get install --yes sudo python python-pip vim git-core build-essential libssl-dev libffi-dev python-dev |
| 4 | |
| 5 | ARG RALLY_VERSION="0.10.1" |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 6 | |
| 7 | SHELL ["/bin/bash", "-xec"] |
| 8 | |
| 9 | USER root |
| 10 | |
| 11 | WORKDIR /var/lib/ |
| 12 | |
Oleksii Zhurba | 5910046 | 2018-09-05 11:31:21 -0500 | [diff] [blame] | 13 | RUN pip install --constraint /var/lib/openstack_requirements/upper-constraints.txt rally==$RALLY_VERSION |
| 14 | |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 15 | RUN mkdir -p cvp-configuration |
| 16 | |
Oleksii Zhurba | 5910046 | 2018-09-05 11:31:21 -0500 | [diff] [blame] | 17 | COPY . /var/lib/cvp-configuration/ |
| 18 | RUN mkdir /home/rally |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 19 | |
Oleksii Zhurba | 5910046 | 2018-09-05 11:31:21 -0500 | [diff] [blame] | 20 | RUN mkdir .rally && \ |
| 21 | echo "connection = \"sqlite:////home/rally/.rally/rally.db\"" > .rally/rally.conf &&\ |
| 22 | rally db recreate |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 23 | |
Oleksii Zhurba | 0adc6a5 | 2018-07-16 22:18:59 -0500 | [diff] [blame] | 24 | WORKDIR /home/rally |
| 25 | |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 26 | ENTRYPOINT ["/bin/bash"] |