Alex | f2f657e | 2021-06-14 19:44:05 -0500 | [diff] [blame] | 1 | FROM xrally/xrally-openstack:2.1.0 |
| 2 | |
| 3 | MAINTAINER Alex Savatieiev (a.savex@gmail.com) |
| 4 | |
Alex | 1a89dfb | 2021-06-18 11:35:25 -0500 | [diff] [blame^] | 5 | WORKDIR /rally |
| 6 | RUN sudo apt update && \ |
| 7 | sudo apt -y install curl wget vim |
| 8 | |
| 9 | RUN git clone https://gerrit.mcp.mirantis.com/mcp/cvp-configuration /rally/res-files && \ |
Alex | f2f657e | 2021-06-14 19:44:05 -0500 | [diff] [blame] | 10 | rally db recreate && \ |
Alex | 1a89dfb | 2021-06-18 11:35:25 -0500 | [diff] [blame^] | 11 | git clone https://github.com/Mirantis/rally-plugins.git /rally/rally-plugins && \ |
| 12 | cd /rally/rally-plugins/ && \ |
Alex | f2f657e | 2021-06-14 19:44:05 -0500 | [diff] [blame] | 13 | pip3 install . && \ |
| 14 | rally plugin list | grep kubernetes && \ |
Alex | 1a89dfb | 2021-06-18 11:35:25 -0500 | [diff] [blame^] | 15 | rm -rf /rally/res-files/.git |
Alex | f2f657e | 2021-06-14 19:44:05 -0500 | [diff] [blame] | 16 | |
| 17 | RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ |
Alex | 1a89dfb | 2021-06-18 11:35:25 -0500 | [diff] [blame^] | 18 | sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \ |
Alex | f2f657e | 2021-06-14 19:44:05 -0500 | [diff] [blame] | 19 | rm kubectl |
| 20 | |
| 21 | ENTRYPOINT ["sleep infinite"] |
| 22 | |