|  | FROM ubuntu:20.04 | 
|  |  | 
|  | MAINTAINER Alex Savatieiev (a.savex@gmail.com) | 
|  |  | 
|  | ADD ./si-tests.tgz /opt/si-tests/ | 
|  | WORKDIR /opt | 
|  | RUN apt-get update && \ | 
|  | apt-get install -y make gcc g++ git libaio-dev libaio1 zlib1g-dev && \ | 
|  | git clone --depth 1 --branch fio-3.26 https://github.com/axboe/fio.git && \ | 
|  | cd /opt/fio && \ | 
|  | ./configure && \ | 
|  | make && \ | 
|  | make install && \ | 
|  | cd /opt && \ | 
|  | rm -rf /opt/fio | 
|  |  | 
|  | RUN export TZ="America/Chicago" && \ | 
|  | ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ | 
|  | apt-get install -y python3-pip python3-venv vim git iperf3 mtr htop iputils-ping traceroute tcpdump wget iproute2 curl screen | 
|  |  | 
|  | RUN pip3 install --no-cache-dir python-openstackclient python-neutronclient python-heatclient pyghmi python-octaviaclient tempestparser python-ironicclient aodhclient gnocchiclient python-barbicanclient python-glanceclient | 
|  |  | 
|  | RUN git clone https://gerrit.mcp.mirantis.com/mcp/cvp-configuration /opt/res-files && \ | 
|  | git clone http://gerrit.mcp.mirantis.com/mcp/cfg-checker /opt/cfg-checker && \ | 
|  | cd /opt/cfg-checker && \ | 
|  | python3 -m venv .checkervenv && \ | 
|  | . .checkervenv/bin/activate && \ | 
|  | pip3 install --no-cache-dir -r requirements.txt && \ | 
|  | python3 setup.py develop && \ | 
|  | deactivate && \ | 
|  | mkdir /opt/cmp-check && cd /opt/cmp-check && \ | 
|  | cp /opt/res-files/scripts/prepare.sh ./ && \ | 
|  | cp /opt/res-files/scripts/cmp_check.sh ./ && \ | 
|  | cp /opt/res-files/cleanup.sh ./ && \ | 
|  | rm -rf /opt/res-files/.git && \ | 
|  | rm -rf /opt/cfg-checker/.git | 
|  |  | 
|  | RUN cd /opt/si-tests/ && \ | 
|  | python3 -m venv .sivenv && \ | 
|  | . .sivenv/bin/activate && \ | 
|  | pip3 install --no-cache-dir -r si_tests/requirements.txt && \ | 
|  | deactivate && \ | 
|  | cd /opt | 
|  |  | 
|  | RUN mkdir /opt/packages/ && \ | 
|  | cd /opt/packages && \ | 
|  | apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances iperf3 | grep "^\w" | sort -u) || true | 
|  |  | 
|  | RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ | 
|  | install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \ | 
|  | rm kubectl | 
|  |  | 
|  | ENTRYPOINT ["sleep infinite"] | 
|  |  |