blob: 69e6591d546303e330610e98dbb5b3d8fa748b4d [file] [log] [blame]
Alexb78191f2021-11-02 16:35:46 -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 && \
Alex5cace3b2021-11-10 16:40:37 -060010 apt-get install -y python3-pip iperf3 iputils-ping curl && \
Alexb78191f2021-11-02 16:35:46 -050011 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 git clone "https://gerrit.mcp.mirantis.com/mcp/cfg-checker" && \
19 cd cfg-checker && \
20 pip3 install --no-cache-dir -r requirements.txt && \
21 python3 setup.py install && \
22 cd /opt && \
23 rm -rf /opt/cfg-checker && \
24 apt --yes remove gcc g++ && \
25 apt autoremove --yes && \
26 rm -rf /var/lib/apt/lists/*
27
28ENTRYPOINT ["checker-agent"]