mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-02-07 04:29:17 +01:00
Adding glances system monitoring tool
This commit is contained in:
parent
0691fba97f
commit
f6a13eb04e
23
glances/Dockerfile
Normal file
23
glances/Dockerfile
Normal 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
30
glances/README.md
Normal 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.
|
Loading…
Reference in New Issue
Block a user