| Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 1 | FROM ubuntu:20.04 | 
|  | 2 |  | 
|  | 3 | MAINTAINER Alex Savatieiev (a.savex@gmail.com) | 
|  | 4 |  | 
|  | 5 | WORKDIR /opt | 
|  | 6 | RUN 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 |  | 
| Alex | 371db58 | 2022-04-04 15:47:00 -0500 | [diff] [blame] | 22 | RUN pip3 install --no-cache-dir python-openstackclient python-neutronclient python-heatclient pyghmi python-octaviaclient tempestparser python-ironicclient aodhclient gnocchiclient python-barbicanclient python-glanceclient | 
| Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 23 |  | 
|  | 24 | RUN 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 |  | 
|  | 28 | RUN 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 Zadorozhna | 6c41649 | 2022-06-16 16:29:40 +0300 | [diff] [blame^] | 32 | RUN 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 |  | 
| Alex | 08d4cad | 2021-08-25 14:26:03 -0500 | [diff] [blame] | 40 | ENTRYPOINT ["sleep infinite"] | 
|  | 41 |  |