diff --git a/glances/Dockerfile b/glances/Dockerfile new file mode 100644 index 0000000..086a49b --- /dev/null +++ b/glances/Dockerfile @@ -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 + +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" ] diff --git a/glances/README.md b/glances/README.md new file mode 100644 index 0000000..b98793e --- /dev/null +++ b/glances/README.md @@ -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://:61208` in your favorite web browser. + +For the client/server mode, run: +``` +$ glances -s +``` +on the server side and run: +``` +$ glances -c +``` +on the client one.