blob: a95b7bff03b23bdd5522f14851a91efafac25adf [file] [log] [blame]
Alex08d4cad2021-08-25 14:26:03 -05001FROM ubuntu:20.04
2
3MAINTAINER Alex Savatieiev (a.savex@gmail.com)
4
5WORKDIR /opt
6RUN export TZ="America/Chicago" && \
7 ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
8 apt-get update && \
9 apt-get install -y make gcc g++ git libaio-dev libaio1 zlib1g-dev && \
10 apt-get install -y python3-pip python3-venv vim iperf3 mtr htop iputils-ping traceroute tcpdump wget iproute2 curl screen && \
11 git clone --depth 1 --branch fio-3.26 https://github.com/axboe/fio.git && \
12 cd /opt/fio && \
13 ./configure && \
14 make && \
15 make install && \
16 cd /opt && \
17 rm -rf /opt/fio && \
18 apt --yes remove gcc g++ && \
19 apt autoremove --yes && \
20 rm -rf /var/lib/apt/lists/*
21
Alex371db582022-04-04 15:47:00 -050022RUN pip3 install --no-cache-dir python-openstackclient python-neutronclient python-heatclient pyghmi python-octaviaclient tempestparser python-ironicclient aodhclient gnocchiclient python-barbicanclient python-glanceclient
Alex08d4cad2021-08-25 14:26:03 -050023
24RUN mkdir /opt/packages/ && \
25 cd /opt/packages && \
26 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
27
28RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
29 install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
30 rm kubectl
31
Ievgeniia Zadorozhna6c416492022-06-16 16:29:40 +030032RUN git clone "https://gerrit.mcp.mirantis.com/mcp/mos-spt" /opt/mos-spt && \
33 cd /opt/mos-spt && \
34 python3 -m venv .venv && \
35 . .venv/bin/activate && \
36 pip3 install --no-cache-dir -r requirements.txt && \
37 deactivate && \
38 cd /opt
39
Alex08d4cad2021-08-25 14:26:03 -050040ENTRYPOINT ["sleep infinite"]
41