| Ievgeniia Zadorozhna | b57876a | 2024-03-02 01:14:27 +0100 | [diff] [blame] | 1 | FROM ubuntu:20.04 AS download-packages | 
|  | 2 | RUN mkdir /opt/packages && cd /opt/packages && \ | 
|  | 3 | apt-get update && \ | 
| Ievgeniia Zadorozhna | 7800859 | 2025-02-23 00:49:21 +0100 | [diff] [blame] | 4 | apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances iperf3 iperf fio nfs-utils | grep "^\w" | sort -u) || true && \ | 
| Ievgeniia Zadorozhna | b57876a | 2024-03-02 01:14:27 +0100 | [diff] [blame] | 5 | rm -rf /var/lib/apt/lists/* | 
|  | 6 |  | 
| Ievgeniia Zadorozhna | 421b1d0 | 2024-11-05 21:34:04 +0100 | [diff] [blame] | 7 | FROM mirantis.azurecr.io/openstack/heat:antelope-jammy-20240927160001 | 
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 8 |  | 
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 9 | LABEL maintainer="qa-ps@mirantis.com" | 
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 10 |  | 
| Ievgeniia Zadorozhna | 6c85f0c | 2024-07-31 19:03:02 +0200 | [diff] [blame] | 11 | ADD k8s/src/si-tests.tgz /opt/si-tests/ | 
|  | 12 | ADD k8s/src/mos-checker.tgz /opt/cfg-checker/ | 
| Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 13 | WORKDIR /opt | 
| Ievgeniia Zadorozhna | b57876a | 2024-03-02 01:14:27 +0100 | [diff] [blame] | 14 |  | 
|  | 15 | COPY --from=download-packages /opt/packages /opt/packages | 
|  | 16 |  | 
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 17 | RUN apt-get update && \ | 
| Ievgeniia Zadorozhna | 1cb5b10 | 2024-01-19 04:31:09 +0100 | [diff] [blame] | 18 | apt-get install -y make gcc g++ git libaio-dev libaio1 zlib1g-dev fio && \ | 
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 19 | mkdir /opt/density && \ | 
|  | 20 | rm -rf /var/lib/apt/lists/* | 
| Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 21 |  | 
|  | 22 | RUN export TZ="America/Chicago" && \ | 
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 23 | ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ | 
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 24 | apt-get update && \ | 
|  | 25 | 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 && \ | 
|  | 26 | rm -rf /var/lib/apt/lists/* | 
| Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 27 |  | 
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 28 | RUN apt-get update && \ | 
|  | 29 | curl https://baltocdn.com/helm/signing.asc | apt-key add - && \ | 
| Alex | c7f187c | 2022-04-28 10:02:27 -0500 | [diff] [blame] | 30 | apt-get install apt-transport-https --yes && \ | 
|  | 31 | echo "deb https://baltocdn.com/helm/stable/debian/ all main" | tee /etc/apt/sources.list.d/helm-stable-debian.list && \ | 
|  | 32 | apt-get update && \ | 
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 33 | apt-get install -y helm && \ | 
|  | 34 | rm -rf /var/lib/apt/lists/* | 
| Alex | c7f187c | 2022-04-28 10:02:27 -0500 | [diff] [blame] | 35 |  | 
| Ievgeniia Zadorozhna | a33b29a | 2023-08-29 18:19:47 +0300 | [diff] [blame] | 36 | RUN pip3 install --no-cache-dir pyghmi tempestparser | 
| Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 37 |  | 
| Ievgeniia Zadorozhna | 421b1d0 | 2024-11-05 21:34:04 +0100 | [diff] [blame] | 38 | RUN git clone https://gerrit.mcp.mirantis.com/mcp/cvp-configuration -b 24.3-antelope /opt/res-files && \ | 
| Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 39 | cd /opt/cfg-checker && \ | 
|  | 40 | python3 -m venv .checkervenv && \ | 
|  | 41 | . .checkervenv/bin/activate && \ | 
|  | 42 | pip3 install --no-cache-dir -r requirements.txt && \ | 
|  | 43 | python3 setup.py develop && \ | 
|  | 44 | deactivate && \ | 
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 45 | mkdir /opt/cmp-check && cd /opt/cmp-check && \ | 
|  | 46 | cp /opt/res-files/scripts/prepare.sh ./ && \ | 
|  | 47 | cp /opt/res-files/scripts/cmp_check.sh ./ && \ | 
| Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 48 | cp /opt/res-files/cleanup.sh ./ && \ | 
| Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 49 | rm -rf /opt/res-files/.git && \ | 
|  | 50 | rm -rf /opt/cfg-checker/.git | 
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 51 |  | 
| Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 52 | RUN cd /opt/si-tests/ && \ | 
|  | 53 | python3 -m venv .sivenv && \ | 
|  | 54 | . .sivenv/bin/activate && \ | 
|  | 55 | pip3 install --no-cache-dir -r si_tests/requirements.txt && \ | 
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 56 | deactivate | 
| Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 57 |  | 
| Alex | f2f657e | 2021-06-14 19:44:05 -0500 | [diff] [blame] | 58 | RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ | 
|  | 59 | install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \ | 
|  | 60 | rm kubectl | 
|  | 61 |  | 
| Ievgeniia Zadorozhna | 6c41649 | 2022-06-16 16:29:40 +0300 | [diff] [blame] | 62 | RUN git clone "https://gerrit.mcp.mirantis.com/mcp/mos-spt" /opt/mos-spt && \ | 
|  | 63 | cd /opt/mos-spt && \ | 
|  | 64 | python3 -m venv .venv && \ | 
|  | 65 | . .venv/bin/activate && \ | 
|  | 66 | pip3 install --no-cache-dir -r requirements.txt && \ | 
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 67 | deactivate | 
|  | 68 |  | 
| Ievgeniia Zadorozhna | 6c85f0c | 2024-07-31 19:03:02 +0200 | [diff] [blame] | 69 | ADD k8s/src/openstack-refapp.tgz /opt/density/openstack-refapp/ | 
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 70 |  | 
|  | 71 | RUN cd /opt/density/openstack-refapp/ && \ | 
|  | 72 | python3 -m venv .refapp-venv && \ | 
|  | 73 | . .refapp-venv/bin/activate && \ | 
|  | 74 | pip3 install --no-cache-dir -r requirements.txt && \ | 
| Ievgeniia Zadorozhna | 6c41649 | 2022-06-16 16:29:40 +0300 | [diff] [blame] | 75 | deactivate && \ | 
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 76 | cp /opt/res-files/scripts/prepare-refapp.sh /opt/density/openstack-refapp/ && \ | 
|  | 77 | cp /opt/res-files/scripts/run-refapp-density.sh /opt/density/openstack-refapp/ | 
| Ievgeniia Zadorozhna | 6c41649 | 2022-06-16 16:29:40 +0300 | [diff] [blame] | 78 |  | 
| Ievgeniia Zadorozhna | 421b1d0 | 2024-11-05 21:34:04 +0100 | [diff] [blame] | 79 | RUN printf "LABELS:\n  IMAGE_TAG: 24.3-antelope" > /dockerimage_metadata | 
| Ievgeniia Zadorozhna | c21d552 | 2024-07-26 18:42:49 +0200 | [diff] [blame] | 80 |  | 
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 81 | ENTRYPOINT ["sleep infinite"] | 
|  | 82 |  |