Ievgeniia Zadorozhna | a33b29a | 2023-08-29 18:19:47 +0300 | [diff] [blame] | 1 | FROM mirantis.azurecr.io/openstack/heat:yoga-focal-20230821170130 |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 2 | |
Ievgeniia Zadorozhna | a33b29a | 2023-08-29 18:19:47 +0300 | [diff] [blame] | 3 | LABEL maintainer="qa-ps@mirantis.com" |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 4 | |
Alex | 42355a9 | 2023-02-02 18:13:30 -0600 | [diff] [blame] | 5 | ADD ./src/mos-spt.tgz /opt/mos-spt/ |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 6 | WORKDIR /opt |
| 7 | RUN export TZ="America/Chicago" && \ |
| 8 | ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ |
| 9 | apt-get update && \ |
| 10 | apt-get install -y make gcc g++ git libaio-dev libaio1 zlib1g-dev && \ |
Ievgeniia Zadorozhna | 101c5f6 | 2022-07-26 17:12:53 +0300 | [diff] [blame] | 11 | apt-get install -y python3-pip python3-venv vim iperf3 iperf mtr htop iputils-ping traceroute tcpdump wget iproute2 curl screen && \ |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 12 | git clone --depth 1 --branch fio-3.26 https://github.com/axboe/fio.git && \ |
| 13 | cd /opt/fio && \ |
| 14 | ./configure && \ |
| 15 | make && \ |
| 16 | make install && \ |
| 17 | cd /opt && \ |
| 18 | rm -rf /opt/fio && \ |
| 19 | apt --yes remove gcc g++ && \ |
| 20 | apt autoremove --yes && \ |
| 21 | rm -rf /var/lib/apt/lists/* |
| 22 | |
Ievgeniia Zadorozhna | a33b29a | 2023-08-29 18:19:47 +0300 | [diff] [blame] | 23 | RUN pip3 install --no-cache-dir tempestparser |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 24 | |
| 25 | RUN mkdir /opt/packages/ && \ |
| 26 | cd /opt/packages && \ |
Ievgeniia Zadorozhna | f2befa6 | 2024-03-06 17:33:09 +0100 | [diff] [blame^] | 27 | apt-get update && \ |
Ievgeniia Zadorozhna | 101c5f6 | 2022-07-26 17:12:53 +0300 | [diff] [blame] | 28 | 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 |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 29 | |
| 30 | RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ |
| 31 | install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \ |
| 32 | rm kubectl |
| 33 | |
Alex | 42355a9 | 2023-02-02 18:13:30 -0600 | [diff] [blame] | 34 | RUN cd /opt/mos-spt && \ |
Ievgeniia Zadorozhna | 6c41649 | 2022-06-16 16:29:40 +0300 | [diff] [blame] | 35 | python3 -m venv .venv && \ |
| 36 | . .venv/bin/activate && \ |
| 37 | pip3 install --no-cache-dir -r requirements.txt && \ |
| 38 | deactivate && \ |
| 39 | cd /opt |
| 40 | |
Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 41 | ENTRYPOINT ["sleep infinite"] |
| 42 | |