blob: 774e6f4266e9ee742a56dfede82937b199542716 [file] [log] [blame]
Alexa5e33462021-06-10 19:01:07 -05001FROM ubuntu:20.04
2
3MAINTAINER Alex Savatieiev (a.savex@gmail.com)
4
5WORKDIR /tmp
6RUN apt-get update && \
7 apt-get install -y make gcc g++ git libaio-dev libaio1 zlib1g-dev && \
8 git clone --depth 1 --branch fio-3.26 https://github.com/axboe/fio.git && \
9 cd /tmp/fio && \
10 ./configure && \
11 make && \
12 make install && \
13 cd /tmp && \
14 rm -rf /tmp/fio
15WORKDIR /opt
16RUN apt-get update && \
17 export TZ="America/Chicago" && \
18 ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
19 apt-get install -y python3-pip vim git iperf3 mtr htop iputils-ping traceroute tcpdump wget iproute2 curl && \
20 pip3 install python-openstackclient python-neutronclient python-heatclient pyghmi python-octaviaclient && \
21 git clone https://gerrit.mcp.mirantis.com/mcp/cvp-configuration /opt/res-files && \
22 mkdir /opt/cmp-check && cd /opt/cmp-check && \
23 cp /opt/res-files/scripts/prepare.sh ./ && \
24 cp /opt/res-files/scripts/cmp_check.sh ./ && \
25 cp /opt/res-files/cleanup.sh ./
26
27ADD ./si-tests.tgz /opt/si-tests/
28RUN apt -y install python3-venv && \
29 cd /opt/si-tests/ && \
30 python3 -m venv .venv && \
31 . .venv/bin/activate && \
32 pip3 install -r si_tests/requirements.txt
33
34ENTRYPOINT ["sleep infinite"]
35