blob: 5425ddcaea002bf05a46db479cee24c9d11bbe2a [file] [log] [blame]
Ievgeniia Zadorozhnab57876a2024-03-02 01:14:27 +01001FROM ubuntu:20.04 AS download-packages
2RUN 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 Zadorozhna1cb5b102024-01-19 04:31:09 +01007FROM mirantis.azurecr.io/openstack/heat:antelope-jammy-20231204144213
Alex08d4cad2021-08-25 14:26:03 -05008
Ievgeniia Zadorozhnaa33b29a2023-08-29 18:19:47 +03009LABEL maintainer="qa-ps@mirantis.com"
Alex08d4cad2021-08-25 14:26:03 -050010
Ievgeniia Zadorozhna22e7f2a2024-08-01 18:01:29 +020011ADD k8s/src/mos-spt.tgz /opt/mos-spt/
Alex08d4cad2021-08-25 14:26:03 -050012WORKDIR /opt
Ievgeniia Zadorozhnab57876a2024-03-02 01:14:27 +010013
14COPY --from=download-packages /opt/packages /opt/packages
15
Alex08d4cad2021-08-25 14:26:03 -050016RUN export TZ="America/Chicago" && \
17 ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
18 apt-get update && \
19 apt-get install -y make gcc g++ git libaio-dev libaio1 zlib1g-dev && \
Ievgeniia Zadorozhna1cb5b102024-01-19 04:31:09 +010020 apt-get install -y python3-pip python3-venv vim iperf3 iperf mtr htop iputils-ping traceroute tcpdump wget iproute2 curl screen qemu-utils jq && \
Alex08d4cad2021-08-25 14:26:03 -050021 rm -rf /var/lib/apt/lists/*
22
Ievgeniia Zadorozhnaa33b29a2023-08-29 18:19:47 +030023RUN pip3 install --no-cache-dir tempestparser
Alex08d4cad2021-08-25 14:26:03 -050024
Alex08d4cad2021-08-25 14:26:03 -050025RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
26 install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
27 rm kubectl
28
Alex42355a92023-02-02 18:13:30 -060029RUN cd /opt/mos-spt && \
Ievgeniia Zadorozhna6c416492022-06-16 16:29:40 +030030 python3 -m venv .venv && \
31 . .venv/bin/activate && \
32 pip3 install --no-cache-dir -r requirements.txt && \
33 deactivate && \
34 cd /opt
35
Alex08d4cad2021-08-25 14:26:03 -050036ENTRYPOINT ["sleep infinite"]
37