Alex | a5e3346 | 2021-06-10 19:01:07 -0500 | [diff] [blame^] | 1 | FROM ubuntu:20.04 |
| 2 | |
| 3 | MAINTAINER Alex Savatieiev (a.savex@gmail.com) |
| 4 | |
| 5 | WORKDIR /tmp |
| 6 | RUN 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 |
| 15 | WORKDIR /opt |
| 16 | RUN 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 | |
| 27 | ADD ./si-tests.tgz /opt/si-tests/ |
| 28 | RUN 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 | |
| 34 | ENTRYPOINT ["sleep infinite"] |
| 35 | |