blob: 69e6591d546303e330610e98dbb5b3d8fa748b4d [file] [log] [blame]
FROM ubuntu:20.04
MAINTAINER Alex Savatieiev (a.savex@gmail.com)
WORKDIR /opt
RUN export TZ="America/Chicago" && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt-get update && \
apt-get install -y make gcc g++ git libaio-dev libaio1 zlib1g-dev && \
apt-get install -y python3-pip iperf3 iputils-ping curl && \
git clone --depth 1 --branch fio-3.26 https://github.com/axboe/fio.git && \
cd /opt/fio && \
./configure && \
make && \
make install && \
cd /opt && \
rm -rf /opt/fio && \
git clone "https://gerrit.mcp.mirantis.com/mcp/cfg-checker" && \
cd cfg-checker && \
pip3 install --no-cache-dir -r requirements.txt && \
python3 setup.py install && \
cd /opt && \
rm -rf /opt/cfg-checker && \
apt --yes remove gcc g++ && \
apt autoremove --yes && \
rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["checker-agent"]