2015-11-27 12:53:32 +03:00
|
|
|
#
|
2018-09-15 23:47:08 +03:00
|
|
|
# Glances Dockerfile (based on Ubuntu)
|
2015-11-27 12:53:32 +03:00
|
|
|
#
|
|
|
|
# https://github.com/nicolargo/glances
|
|
|
|
#
|
|
|
|
|
|
|
|
# Pull base image.
|
2020-05-17 11:56:09 +03:00
|
|
|
FROM ubuntu:20.04
|
2015-11-27 12:53:32 +03:00
|
|
|
|
2016-09-19 17:24:32 +03:00
|
|
|
|
2020-05-17 11:56:09 +03:00
|
|
|
# Install package
|
|
|
|
# Must used calibre package to be able to run external module
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y \
|
|
|
|
curl \
|
|
|
|
gcc \
|
|
|
|
lm-sensors \
|
|
|
|
wireless-tools \
|
|
|
|
iputils-ping \
|
|
|
|
python3-pip \
|
|
|
|
python3-dev && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
## Instal glances
|
|
|
|
RUN \
|
|
|
|
pip3 install --upgrade pip && \
|
|
|
|
pip3 install setuptools \
|
|
|
|
glances[action,batinfo,browser,cpuinfo,docker,export,folders,gpu,graph,ip,raid,snmp,web,wifi] \
|
|
|
|
glances
|
2015-11-27 12:53:32 +03:00
|
|
|
|
|
|
|
# Define working directory.
|
|
|
|
WORKDIR /glances
|
|
|
|
|
2015-11-27 13:06:31 +03:00
|
|
|
# EXPOSE PORT (For XMLRPC)
|
|
|
|
EXPOSE 61209
|
|
|
|
|
|
|
|
# EXPOSE PORT (For Web UI)
|
|
|
|
EXPOSE 61208
|
|
|
|
|
2015-11-27 12:53:32 +03:00
|
|
|
# Define default command.
|
2020-05-17 11:56:09 +03:00
|
|
|
CMD python3 -m glances -C /glances/conf/glances.conf $GLANCES_OPT
|