Alex | b78191f | 2021-11-02 16:35:46 -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 | 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 | |
| 28 | ENTRYPOINT ["checker-agent"] |