Adding glances system monitoring tool

This commit is contained in:
Daniel Romero 2015-08-06 01:16:31 -03:00 committed by Jessica Frazelle
parent 0691fba97f
commit f6a13eb04e
2 changed files with 53 additions and 0 deletions

23
glances/Dockerfile Normal file
View File

@ -0,0 +1,23 @@
# Run glances in a container
# https://github.com/nicolargo/glances
#
# docker run --rm -it \
# --pid host \
# --ipc host \
# --net host \
# --privileged \
# --name glances \
# infoslack/glances
FROM python:latest
MAINTAINER Daniel Romero <infoslack@gmail.com>
ENV VERSION 2.4.2
RUN curl -L "https://github.com/nicolargo/glances/archive/v${VERSION}.tar.gz" \
-o glances.tar.gz \
&& tar -zxvf glances.tar.gz
WORKDIR glances-$VERSION
RUN python setup.py install
CMD [ "glances" ]

30
glances/README.md Normal file
View File

@ -0,0 +1,30 @@
Glances - An eye on your system
================================
[Glances](https://github.com/nicolargo/glances) is a cross-platform
curses-based system monitoring tool written in Python.
### Run in a container
For the standalone mode, just run:
```
$ docker run --rm -it --pid=host --ipc=host --net=host --privileged infoslack/glances
```
### Using
For the Web server mode, run:
```
$ glances -w
```
and enter the URL `http://<ip>:61208` in your favorite web browser.
For the client/server mode, run:
```
$ glances -s
```
on the server side and run:
```
$ glances -c <ip>
```
on the client one.