blob: 845a3c3b3a20caa8f293d1410ecbfd8a50276533 [file] [log] [blame]
Alexf2f657e2021-06-14 19:44:05 -05001FROM xrally/xrally-openstack:2.1.0
2
3MAINTAINER Alex Savatieiev (a.savex@gmail.com)
4
5WORKDIR /opt
6RUN 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
18RUN 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
22ENTRYPOINT ["sleep infinite"]
23