blob: 5876ad33b46d8d0539464a88f9dd184ac1fcab93 [file] [log] [blame]
Alexa5e33462021-06-10 19:01:07 -05001FROM ubuntu:20.04
2
3MAINTAINER Alex Savatieiev (a.savex@gmail.com)
4
Alex73b792d2021-06-11 17:46:14 -05005ADD ./si-tests.tgz /opt/si-tests/
6WORKDIR /opt
Alexa5e33462021-06-10 19:01:07 -05007RUN apt-get update && \
8 apt-get install -y make gcc g++ git libaio-dev libaio1 zlib1g-dev && \
9 git clone --depth 1 --branch fio-3.26 https://github.com/axboe/fio.git && \
Alex73b792d2021-06-11 17:46:14 -050010 cd /opt/fio && \
Alexa5e33462021-06-10 19:01:07 -050011 ./configure && \
12 make && \
13 make install && \
Alex73b792d2021-06-11 17:46:14 -050014 cd /opt && \
Alex17e4a592021-07-13 15:59:33 -050015 rm -rf /opt/fio
16
17RUN export TZ="America/Chicago" && \
Alexa5e33462021-06-10 19:01:07 -050018 ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
Alexf59c7392022-04-18 19:10:14 -050019 apt-get install -y python3-pip python3-venv vim git iperf3 mtr htop iputils-ping traceroute tcpdump wget iproute2 curl screen qemu-utils
Alex17e4a592021-07-13 15:59:33 -050020
Alexc7f187c2022-04-28 10:02:27 -050021RUN curl https://baltocdn.com/helm/signing.asc | apt-key add - && \
22 apt-get install apt-transport-https --yes && \
23 echo "deb https://baltocdn.com/helm/stable/debian/ all main" | tee /etc/apt/sources.list.d/helm-stable-debian.list && \
24 apt-get update && \
25 apt-get install -y helm
26
Alex83075ac2022-02-16 13:39:50 -060027RUN pip3 install --no-cache-dir python-openstackclient python-neutronclient python-heatclient pyghmi python-octaviaclient tempestparser python-ironicclient aodhclient gnocchiclient python-barbicanclient python-glanceclient
Alex17e4a592021-07-13 15:59:33 -050028
29RUN git clone https://gerrit.mcp.mirantis.com/mcp/cvp-configuration /opt/res-files && \
Alex73b792d2021-06-11 17:46:14 -050030 git clone http://gerrit.mcp.mirantis.com/mcp/cfg-checker /opt/cfg-checker && \
31 cd /opt/cfg-checker && \
32 python3 -m venv .checkervenv && \
33 . .checkervenv/bin/activate && \
34 pip3 install --no-cache-dir -r requirements.txt && \
35 python3 setup.py develop && \
36 deactivate && \
Alexa5e33462021-06-10 19:01:07 -050037 mkdir /opt/cmp-check && cd /opt/cmp-check && \
38 cp /opt/res-files/scripts/prepare.sh ./ && \
39 cp /opt/res-files/scripts/cmp_check.sh ./ && \
Alex73b792d2021-06-11 17:46:14 -050040 cp /opt/res-files/cleanup.sh ./ && \
Alex73b792d2021-06-11 17:46:14 -050041 rm -rf /opt/res-files/.git && \
42 rm -rf /opt/cfg-checker/.git
Alexa5e33462021-06-10 19:01:07 -050043
Alex17e4a592021-07-13 15:59:33 -050044RUN cd /opt/si-tests/ && \
45 python3 -m venv .sivenv && \
46 . .sivenv/bin/activate && \
47 pip3 install --no-cache-dir -r si_tests/requirements.txt && \
48 deactivate && \
49 cd /opt
50
51RUN mkdir /opt/packages/ && \
52 cd /opt/packages && \
Alexc7f187c2022-04-28 10:02:27 -050053 apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances iperf3 fio | grep "^\w" | sort -u) || true
Alex17e4a592021-07-13 15:59:33 -050054
Alexf2f657e2021-06-14 19:44:05 -050055RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
56 install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
57 rm kubectl
58
Ievgeniia Zadorozhna6c416492022-06-16 16:29:40 +030059RUN git clone "https://gerrit.mcp.mirantis.com/mcp/mos-spt" /opt/mos-spt && \
60 cd /opt/mos-spt && \
61 python3 -m venv .venv && \
62 . .venv/bin/activate && \
63 pip3 install --no-cache-dir -r requirements.txt && \
64 deactivate && \
65 cd /opt
66
Alexa5e33462021-06-10 19:01:07 -050067ENTRYPOINT ["sleep infinite"]
68