| Ievgeniia Zadorozhna | 29f79ac | 2025-07-17 14:55:00 +0200 | [diff] [blame] | 1 | FROM ubuntu:18.04 AS download-packages-1804 |
| 2 | RUN mkdir /opt/packages-1804 && cd /opt/packages-1804 && \ |
| 3 | apt-get update && \ |
| 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 && \ |
| 5 | rm -rf /var/lib/apt/lists/* |
| 6 | |
| 7 | FROM ubuntu:20.04 AS download-packages-2004 |
| Ievgeniia Zadorozhna | b57876a | 2024-03-02 01:14:27 +0100 | [diff] [blame] | 8 | RUN mkdir /opt/packages && cd /opt/packages && \ |
| 9 | apt-get update && \ |
| Ievgeniia Zadorozhna | 7800859 | 2025-02-23 00:49:21 +0100 | [diff] [blame] | 10 | 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] | 11 | rm -rf /var/lib/apt/lists/* |
| 12 | |
| Ievgeniia Zadorozhna | a4ba3e8 | 2025-12-12 16:34:05 +0100 | [diff] [blame] | 13 | # TODO: in future change to tag epoxy-noble-20251017061956 |
| 14 | # but this will lead to possible dependencies issues in some test repos (e.g. cfg-checker, mos-spt) |
| 15 | # some need some time to test this and move to Noble inside the toolset docker container and k8s pod |
| 16 | FROM mirantis.azurecr.io/openstack/heat:caracal-jammy-20250314195424 |
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 17 | |
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 18 | LABEL maintainer="qa-ps@mirantis.com" |
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 19 | |
| Ievgeniia Zadorozhna | 6c85f0c | 2024-07-31 19:03:02 +0200 | [diff] [blame] | 20 | ADD k8s/src/si-tests.tgz /opt/si-tests/ |
| 21 | ADD k8s/src/mos-checker.tgz /opt/cfg-checker/ |
| Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 22 | WORKDIR /opt |
| Ievgeniia Zadorozhna | b57876a | 2024-03-02 01:14:27 +0100 | [diff] [blame] | 23 | |
| Ievgeniia Zadorozhna | 29f79ac | 2025-07-17 14:55:00 +0200 | [diff] [blame] | 24 | COPY --from=download-packages-2004 /opt/packages /opt/packages |
| 25 | COPY --from=download-packages-1804 /opt/packages-1804 /opt/packages-1804 |
| Ievgeniia Zadorozhna | b57876a | 2024-03-02 01:14:27 +0100 | [diff] [blame] | 26 | |
| Ievgeniia Zadorozhna | 9f03ca3 | 2025-03-21 18:44:21 +0100 | [diff] [blame] | 27 | RUN apt-get clean && apt-get update && \ |
| Ievgeniia Zadorozhna | a4ba3e8 | 2025-12-12 16:34:05 +0100 | [diff] [blame] | 28 | apt-get install -y make gcc g++ git libaio-dev zlib1g-dev fio && \ |
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 29 | mkdir /opt/density && \ |
| 30 | rm -rf /var/lib/apt/lists/* |
| Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 31 | |
| 32 | RUN export TZ="America/Chicago" && \ |
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 33 | ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ |
| Ievgeniia Zadorozhna | 9f03ca3 | 2025-03-21 18:44:21 +0100 | [diff] [blame] | 34 | apt-get clean && apt-get update && \ |
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 35 | 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 && \ |
| 36 | rm -rf /var/lib/apt/lists/* |
| Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 37 | |
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 38 | RUN apt-get update && \ |
| Alex | c7f187c | 2022-04-28 10:02:27 -0500 | [diff] [blame] | 39 | apt-get install apt-transport-https --yes && \ |
| Ievgeniia Zadorozhna | a4ba3e8 | 2025-12-12 16:34:05 +0100 | [diff] [blame] | 40 | curl -fsSL https://packages.buildkite.com/helm-linux/helm-debian/gpgkey | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null && \ |
| 41 | echo "deb [signed-by=/usr/share/keyrings/helm.gpg] https://packages.buildkite.com/helm-linux/helm-debian/any/ any main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list && \ |
| 42 | sudo apt-get update && \ |
| 43 | sudo apt-get install -y helm && \ |
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 44 | rm -rf /var/lib/apt/lists/* |
| Alex | c7f187c | 2022-04-28 10:02:27 -0500 | [diff] [blame] | 45 | |
| Ievgeniia Zadorozhna | a33b29a | 2023-08-29 18:19:47 +0300 | [diff] [blame] | 46 | RUN pip3 install --no-cache-dir pyghmi tempestparser |
| Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 47 | |
| Ievgeniia Zadorozhna | b9b2afa | 2025-12-02 18:32:29 +0100 | [diff] [blame] | 48 | RUN git clone https://gerrit.mcp.mirantis.com/mcp/cvp-configuration -b 25.2-epoxy /opt/res-files && \ |
| Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 49 | cd /opt/cfg-checker && \ |
| 50 | python3 -m venv .checkervenv && \ |
| 51 | . .checkervenv/bin/activate && \ |
| 52 | pip3 install --no-cache-dir -r requirements.txt && \ |
| 53 | python3 setup.py develop && \ |
| 54 | deactivate && \ |
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 55 | mkdir /opt/cmp-check && cd /opt/cmp-check && \ |
| 56 | cp /opt/res-files/scripts/prepare.sh ./ && \ |
| 57 | cp /opt/res-files/scripts/cmp_check.sh ./ && \ |
| Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 58 | cp /opt/res-files/cleanup.sh ./ && \ |
| Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 59 | rm -rf /opt/res-files/.git && \ |
| 60 | rm -rf /opt/cfg-checker/.git |
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 61 | |
| Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 62 | RUN cd /opt/si-tests/ && \ |
| 63 | python3 -m venv .sivenv && \ |
| 64 | . .sivenv/bin/activate && \ |
| 65 | pip3 install --no-cache-dir -r si_tests/requirements.txt && \ |
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 66 | deactivate |
| Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 67 | |
| Alex | f2f657e | 2021-06-14 19:44:05 -0500 | [diff] [blame] | 68 | RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ |
| 69 | install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \ |
| 70 | rm kubectl |
| 71 | |
| Ievgeniia Zadorozhna | 6c41649 | 2022-06-16 16:29:40 +0300 | [diff] [blame] | 72 | RUN git clone "https://gerrit.mcp.mirantis.com/mcp/mos-spt" /opt/mos-spt && \ |
| 73 | cd /opt/mos-spt && \ |
| 74 | python3 -m venv .venv && \ |
| 75 | . .venv/bin/activate && \ |
| 76 | pip3 install --no-cache-dir -r requirements.txt && \ |
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 77 | deactivate |
| 78 | |
| Ievgeniia Zadorozhna | 6c85f0c | 2024-07-31 19:03:02 +0200 | [diff] [blame] | 79 | ADD k8s/src/openstack-refapp.tgz /opt/density/openstack-refapp/ |
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 80 | |
| 81 | RUN cd /opt/density/openstack-refapp/ && \ |
| 82 | python3 -m venv .refapp-venv && \ |
| 83 | . .refapp-venv/bin/activate && \ |
| 84 | pip3 install --no-cache-dir -r requirements.txt && \ |
| Ievgeniia Zadorozhna | 6c41649 | 2022-06-16 16:29:40 +0300 | [diff] [blame] | 85 | deactivate && \ |
| Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 86 | cp /opt/res-files/scripts/prepare-refapp.sh /opt/density/openstack-refapp/ && \ |
| 87 | 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] | 88 | |
| Ievgeniia Zadorozhna | b9b2afa | 2025-12-02 18:32:29 +0100 | [diff] [blame] | 89 | RUN printf "LABELS:\n IMAGE_TAG: 25.2-epoxy" > /dockerimage_metadata |
| Ievgeniia Zadorozhna | c21d552 | 2024-07-26 18:42:49 +0200 | [diff] [blame] | 90 | |
| Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 91 | ENTRYPOINT ["sleep infinite"] |
| 92 | |