Ievgeniia Zadorozhna | c230e2e | 2023-09-18 15:18:19 +0300 | [diff] [blame] | 1 | FROM mirantis.azurecr.io/openstack/heat:victoria-focal-20230912131036 |
Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 2 | |
Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 3 | LABEL maintainer="qa-ps@mirantis.com" |
Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 4 | |
Alex | 42355a9 | 2023-02-02 18:13:30 -0600 | [diff] [blame] | 5 | ADD ./src/si-tests.tgz /opt/si-tests/ |
| 6 | ADD ./src/mos-checker.tgz /opt/cfg-checker/ |
Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 7 | WORKDIR /opt |
Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 8 | RUN apt-get update && \ |
| 9 | apt-get install -y make gcc g++ git libaio-dev libaio1 zlib1g-dev && \ |
| 10 | git clone --depth 1 --branch fio-3.26 https://github.com/axboe/fio.git && \ |
Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 11 | cd /opt/fio && \ |
Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 12 | ./configure && \ |
| 13 | make && \ |
| 14 | make install && \ |
Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 15 | rm -rf /opt/fio && \ |
| 16 | mkdir /opt/density && \ |
| 17 | rm -rf /var/lib/apt/lists/* |
Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 18 | |
| 19 | RUN export TZ="America/Chicago" && \ |
Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 20 | ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ |
Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 21 | apt-get update && \ |
| 22 | 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 && \ |
| 23 | rm -rf /var/lib/apt/lists/* |
Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 24 | |
Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 25 | RUN apt-get update && \ |
| 26 | curl https://baltocdn.com/helm/signing.asc | apt-key add - && \ |
Alex | c7f187c | 2022-04-28 10:02:27 -0500 | [diff] [blame] | 27 | apt-get install apt-transport-https --yes && \ |
| 28 | echo "deb https://baltocdn.com/helm/stable/debian/ all main" | tee /etc/apt/sources.list.d/helm-stable-debian.list && \ |
| 29 | apt-get update && \ |
Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 30 | apt-get install -y helm && \ |
| 31 | rm -rf /var/lib/apt/lists/* |
Alex | c7f187c | 2022-04-28 10:02:27 -0500 | [diff] [blame] | 32 | |
Ievgeniia Zadorozhna | c230e2e | 2023-09-18 15:18:19 +0300 | [diff] [blame] | 33 | RUN pip3 install --no-cache-dir pyghmi tempestparser |
Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 34 | |
Ievgeniia Zadorozhna | c230e2e | 2023-09-18 15:18:19 +0300 | [diff] [blame] | 35 | RUN git clone https://gerrit.mcp.mirantis.com/mcp/cvp-configuration -b 23.2-victoria /opt/res-files && \ |
Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 36 | cd /opt/cfg-checker && \ |
| 37 | python3 -m venv .checkervenv && \ |
| 38 | . .checkervenv/bin/activate && \ |
| 39 | pip3 install --no-cache-dir -r requirements.txt && \ |
| 40 | python3 setup.py develop && \ |
| 41 | deactivate && \ |
Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 42 | mkdir /opt/cmp-check && cd /opt/cmp-check && \ |
| 43 | cp /opt/res-files/scripts/prepare.sh ./ && \ |
| 44 | cp /opt/res-files/scripts/cmp_check.sh ./ && \ |
Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 45 | cp /opt/res-files/cleanup.sh ./ && \ |
Alex | 73b792d | 2021-06-11 17:46:14 -0500 | [diff] [blame] | 46 | rm -rf /opt/res-files/.git && \ |
| 47 | rm -rf /opt/cfg-checker/.git |
Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 48 | |
Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 49 | RUN cd /opt/si-tests/ && \ |
| 50 | python3 -m venv .sivenv && \ |
| 51 | . .sivenv/bin/activate && \ |
| 52 | pip3 install --no-cache-dir -r si_tests/requirements.txt && \ |
Ievgeniia Zadorozhna | c230e2e | 2023-09-18 15:18:19 +0300 | [diff] [blame] | 53 | pip3 install urllib3==1.26.16 && \ |
Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 54 | deactivate |
Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 55 | |
| 56 | RUN mkdir /opt/packages/ && \ |
| 57 | cd /opt/packages && \ |
Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 58 | apt-get update && \ |
| 59 | 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 && \ |
| 60 | rm -rf /var/lib/apt/lists/* |
Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame] | 61 | |
Alex | f2f657e | 2021-06-14 19:44:05 -0500 | [diff] [blame] | 62 | RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ |
| 63 | install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \ |
| 64 | rm kubectl |
| 65 | |
Ievgeniia Zadorozhna | 6c41649 | 2022-06-16 16:29:40 +0300 | [diff] [blame] | 66 | RUN git clone "https://gerrit.mcp.mirantis.com/mcp/mos-spt" /opt/mos-spt && \ |
| 67 | cd /opt/mos-spt && \ |
| 68 | python3 -m venv .venv && \ |
| 69 | . .venv/bin/activate && \ |
| 70 | pip3 install --no-cache-dir -r requirements.txt && \ |
Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 71 | deactivate |
| 72 | |
| 73 | ADD ./src/openstack-refapp.tgz /opt/density/openstack-refapp/ |
| 74 | |
| 75 | RUN cd /opt/density/openstack-refapp/ && \ |
| 76 | python3 -m venv .refapp-venv && \ |
| 77 | . .refapp-venv/bin/activate && \ |
| 78 | pip3 install --no-cache-dir -r requirements.txt && \ |
Ievgeniia Zadorozhna | 6c41649 | 2022-06-16 16:29:40 +0300 | [diff] [blame] | 79 | deactivate && \ |
Ievgeniia Zadorozhna | 3a6f9e2 | 2023-05-12 18:31:28 +0300 | [diff] [blame] | 80 | cp /opt/res-files/scripts/prepare-refapp.sh /opt/density/openstack-refapp/ && \ |
| 81 | 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] | 82 | |
Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame] | 83 | ENTRYPOINT ["sleep infinite"] |
| 84 | |