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 && \ |
| 4 | 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 && \ |
| 5 | rm -rf /var/lib/apt/lists/* |
| 6 | |
Ievgeniia Zadorozhna | da21f01 | 2024-03-06 17:33:09 +0100 | [diff] [blame] | 7 | <<<<<<< HEAD (826e6f Do not run tempest run if the custom params are placeholders) |
Ievgeniia Zadorozhna | 1cb5b10 | 2024-01-19 04:31:09 +0100 | [diff] [blame] | 8 | FROM mirantis.azurecr.io/openstack/heat:antelope-jammy-20231204144213 |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 9 | |
Ievgeniia Zadorozhna | da21f01 | 2024-03-06 17:33:09 +0100 | [diff] [blame] | 10 | ======= |
| 11 | >>>>>>> CHANGE (814323 Updated the src folder with new repositories archives) |
Ievgeniia Zadorozhna | a33b29a | 2023-08-29 18:19:47 +0300 | [diff] [blame] | 12 | LABEL maintainer="qa-ps@mirantis.com" |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 13 | |
Alex | 42355a9 | 2023-02-02 18:13:30 -0600 | [diff] [blame] | 14 | ADD ./src/mos-spt.tgz /opt/mos-spt/ |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 15 | WORKDIR /opt |
Ievgeniia Zadorozhna | b57876a | 2024-03-02 01:14:27 +0100 | [diff] [blame] | 16 | |
| 17 | COPY --from=download-packages /opt/packages /opt/packages |
| 18 | |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 19 | RUN export TZ="America/Chicago" && \ |
| 20 | ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ |
| 21 | apt-get update && \ |
| 22 | apt-get install -y make gcc g++ git libaio-dev libaio1 zlib1g-dev && \ |
Ievgeniia Zadorozhna | 1cb5b10 | 2024-01-19 04:31:09 +0100 | [diff] [blame] | 23 | apt-get install -y python3-pip python3-venv vim iperf3 iperf mtr htop iputils-ping traceroute tcpdump wget iproute2 curl screen qemu-utils jq && \ |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 24 | rm -rf /var/lib/apt/lists/* |
| 25 | |
Ievgeniia Zadorozhna | da21f01 | 2024-03-06 17:33:09 +0100 | [diff] [blame] | 26 | <<<<<<< HEAD (826e6f Do not run tempest run if the custom params are placeholders) |
Ievgeniia Zadorozhna | a33b29a | 2023-08-29 18:19:47 +0300 | [diff] [blame] | 27 | RUN pip3 install --no-cache-dir tempestparser |
Ievgeniia Zadorozhna | da21f01 | 2024-03-06 17:33:09 +0100 | [diff] [blame] | 28 | ======= |
| 29 | RUN pip3 install --no-cache-dir python-openstackclient python-neutronclient python-heatclient pyghmi python-octaviaclient tempestparser python-ironicclient aodhclient gnocchiclient python-barbicanclient python-glanceclient |
| 30 | |
| 31 | RUN mkdir /opt/packages/ && \ |
| 32 | cd /opt/packages && \ |
| 33 | apt-get update && \ |
| 34 | apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances iperf3 iperf | grep "^\w" | sort -u) || true |
| 35 | >>>>>>> CHANGE (814323 Updated the src folder with new repositories archives) |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 36 | |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 37 | RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ |
| 38 | install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \ |
| 39 | rm kubectl |
| 40 | |
Alex | 42355a9 | 2023-02-02 18:13:30 -0600 | [diff] [blame] | 41 | RUN cd /opt/mos-spt && \ |
Ievgeniia Zadorozhna | 6c41649 | 2022-06-16 16:29:40 +0300 | [diff] [blame] | 42 | python3 -m venv .venv && \ |
| 43 | . .venv/bin/activate && \ |
| 44 | pip3 install --no-cache-dir -r requirements.txt && \ |
| 45 | deactivate && \ |
| 46 | cd /opt |
| 47 | |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 48 | ENTRYPOINT ["sleep infinite"] |
| 49 | |