blob: 011e5e67d622c53ee85a25aac62a2bbbe2b31715 [file] [log] [blame]
Ievgeniia Zadorozhna1cb5b102024-01-19 04:31:09 +01001FROM mirantis.azurecr.io/openstack/heat:antelope-jammy-20231204144213
Alexa5e33462021-06-10 19:01:07 -05002
Ievgeniia Zadorozhna3a6f9e22023-05-12 18:31:28 +03003LABEL maintainer="qa-ps@mirantis.com"
Alexa5e33462021-06-10 19:01:07 -05004
Alex42355a92023-02-02 18:13:30 -06005ADD ./src/si-tests.tgz /opt/si-tests/
6ADD ./src/mos-checker.tgz /opt/cfg-checker/
Alex73b792d2021-06-11 17:46:14 -05007WORKDIR /opt
Alexa5e33462021-06-10 19:01:07 -05008RUN apt-get update && \
Ievgeniia Zadorozhna1cb5b102024-01-19 04:31:09 +01009 apt-get install -y make gcc g++ git libaio-dev libaio1 zlib1g-dev fio && \
Ievgeniia Zadorozhna3a6f9e22023-05-12 18:31:28 +030010 mkdir /opt/density && \
11 rm -rf /var/lib/apt/lists/*
Alex17e4a592021-07-13 15:59:33 -050012
13RUN export TZ="America/Chicago" && \
Alexa5e33462021-06-10 19:01:07 -050014 ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
Ievgeniia Zadorozhna3a6f9e22023-05-12 18:31:28 +030015 apt-get update && \
16 apt-get install -y python3-pip python3-venv vim git iperf3 iperf mtr htop iputils-ping traceroute tcpdump wget iproute2 curl screen qemu-utils jq && \
17 rm -rf /var/lib/apt/lists/*
Alex17e4a592021-07-13 15:59:33 -050018
Ievgeniia Zadorozhna3a6f9e22023-05-12 18:31:28 +030019RUN apt-get update && \
20 curl https://baltocdn.com/helm/signing.asc | apt-key add - && \
Alexc7f187c2022-04-28 10:02:27 -050021 apt-get install apt-transport-https --yes && \
22 echo "deb https://baltocdn.com/helm/stable/debian/ all main" | tee /etc/apt/sources.list.d/helm-stable-debian.list && \
23 apt-get update && \
Ievgeniia Zadorozhna3a6f9e22023-05-12 18:31:28 +030024 apt-get install -y helm && \
25 rm -rf /var/lib/apt/lists/*
Alexc7f187c2022-04-28 10:02:27 -050026
Ievgeniia Zadorozhnaa33b29a2023-08-29 18:19:47 +030027RUN pip3 install --no-cache-dir pyghmi tempestparser
Alex17e4a592021-07-13 15:59:33 -050028
Ievgeniia Zadorozhna1cb5b102024-01-19 04:31:09 +010029RUN git clone https://gerrit.mcp.mirantis.com/mcp/cvp-configuration -b 23.3-antelope /opt/res-files && \
Alex73b792d2021-06-11 17:46:14 -050030 cd /opt/cfg-checker && \
31 python3 -m venv .checkervenv && \
32 . .checkervenv/bin/activate && \
33 pip3 install --no-cache-dir -r requirements.txt && \
34 python3 setup.py develop && \
35 deactivate && \
Alexa5e33462021-06-10 19:01:07 -050036 mkdir /opt/cmp-check && cd /opt/cmp-check && \
37 cp /opt/res-files/scripts/prepare.sh ./ && \
38 cp /opt/res-files/scripts/cmp_check.sh ./ && \
Alex73b792d2021-06-11 17:46:14 -050039 cp /opt/res-files/cleanup.sh ./ && \
Alex73b792d2021-06-11 17:46:14 -050040 rm -rf /opt/res-files/.git && \
41 rm -rf /opt/cfg-checker/.git
Alexa5e33462021-06-10 19:01:07 -050042
Alex17e4a592021-07-13 15:59:33 -050043RUN cd /opt/si-tests/ && \
44 python3 -m venv .sivenv && \
45 . .sivenv/bin/activate && \
46 pip3 install --no-cache-dir -r si_tests/requirements.txt && \
Ievgeniia Zadorozhna3a6f9e22023-05-12 18:31:28 +030047 deactivate
Alex17e4a592021-07-13 15:59:33 -050048
49RUN mkdir /opt/packages/ && \
50 cd /opt/packages && \
Ievgeniia Zadorozhna3a6f9e22023-05-12 18:31:28 +030051 apt-get update && \
52 apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances iperf3 iperf fio | grep "^\w" | sort -u) || true && \
53 rm -rf /var/lib/apt/lists/*
Alex17e4a592021-07-13 15:59:33 -050054
Alexf2f657e2021-06-14 19:44:05 -050055RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
56 install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
57 rm kubectl
58
Ievgeniia Zadorozhna6c416492022-06-16 16:29:40 +030059RUN git clone "https://gerrit.mcp.mirantis.com/mcp/mos-spt" /opt/mos-spt && \
60 cd /opt/mos-spt && \
61 python3 -m venv .venv && \
62 . .venv/bin/activate && \
63 pip3 install --no-cache-dir -r requirements.txt && \
Ievgeniia Zadorozhna3a6f9e22023-05-12 18:31:28 +030064 deactivate
65
66ADD ./src/openstack-refapp.tgz /opt/density/openstack-refapp/
67
68RUN cd /opt/density/openstack-refapp/ && \
69 python3 -m venv .refapp-venv && \
70 . .refapp-venv/bin/activate && \
71 pip3 install --no-cache-dir -r requirements.txt && \
Ievgeniia Zadorozhna6c416492022-06-16 16:29:40 +030072 deactivate && \
Ievgeniia Zadorozhna3a6f9e22023-05-12 18:31:28 +030073 cp /opt/res-files/scripts/prepare-refapp.sh /opt/density/openstack-refapp/ && \
74 cp /opt/res-files/scripts/run-refapp-density.sh /opt/density/openstack-refapp/
Ievgeniia Zadorozhna6c416492022-06-16 16:29:40 +030075
Alexa5e33462021-06-10 19:01:07 -050076ENTRYPOINT ["sleep infinite"]
77