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 | |
| 5 | WORKDIR /opt |
| 6 | RUN git clone https://gerrit.mcp.mirantis.com/mcp/cvp-configuration /opt/res-files && \ |
| 7 | rally db recreate && \ |
| 8 | rally env create --from-sysenv --name openstack && \ |
| 9 | rally env check && \ |
| 10 | git clone https://github.com/Mirantis/rally-plugins.git /opt/rally-plugins && \ |
| 11 | cd /opt/rally-plugins/ && \ |
| 12 | pip3 install . && \ |
| 13 | rally plugin list | grep kubernetes && \ |
| 14 | rm -rf /var/lib/apt/lists/* && \ |
| 15 | rm -rf /opt/res-files/.git && \ |
| 16 | rm -rf /opt/cfg-checker/.git |
| 17 | |
| 18 | RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ |
| 19 | install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \ |
| 20 | rm kubectl |
| 21 | |
| 22 | ENTRYPOINT ["sleep infinite"] |
| 23 | |