1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

add glances

This commit is contained in:
kev 2017-05-21 09:01:03 +08:00
parent 3ca8936563
commit 7b0b7c5d59
6 changed files with 83 additions and 0 deletions

@ -131,6 +131,7 @@ A collection of delicious docker recipes.
- [x] django-cms
- [x] dokuwiki :+1:
- [x] dokuwiki-arm :+1:
- [x] glances
- [x] gogs-arm :cn:
- [x] grafana
- [x] hugo

29
glances/Dockerfile Normal file

@ -0,0 +1,29 @@
#
# Dockerfile for glances-arm
#
FROM debian:jessie
MAINTAINER kev <noreply@easypi.pro>
RUN set -xe \
&& apt-get update \
&& apt-get -y install build-essential \
curl \
lm-sensors \
python \
python-dev \
wireless-tools \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
&& pip install "glances[action,batinfo,browser,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi]" \
&& apt-get remove -y build-essential \
curl \
python-dev \
&& rm -rf /var/lib/apt/lists/*
VOLUME /glances
WORKDIR /glances
EXPOSE 61208
EXPOSE 61209
CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT

6
glances/README.md Normal file

@ -0,0 +1,6 @@
glances
=======
[Glances][1] an Eye on your system. A top/htop alternative.
[1]: http://nicolargo.github.io/glances/

29
glances/arm/Dockerfile Normal file

@ -0,0 +1,29 @@
#
# Dockerfile for glances-arm
#
FROM armhf/debian:jessie
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apt-get update \
&& apt-get -y install build-essential \
curl \
lm-sensors \
python \
python-dev \
wireless-tools \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
&& pip install "glances[action,batinfo,browser,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi]" \
&& apt-get remove -y build-essential \
curl \
python-dev \
&& rm -rf /var/lib/apt/lists/*
VOLUME /glances
WORKDIR /glances
EXPOSE 61208
EXPOSE 61209
CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT

@ -0,0 +1,9 @@
glances:
image: easypi/glances-arm
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- GLANCES_OPT=-w
net: host
pid: host
restart: always

@ -0,0 +1,9 @@
glances:
image: vimagick/glances
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- GLANCES_OPT=-w
net: host
pid: host
restart: always