nicolargo
ca2d729211
Add bandit in Makefile
2025-11-22 19:07:45 +01:00
nicolargo
50818213b1
What a sexy pre-commit config file !
2025-11-22 18:48:13 +01:00
nicolargo
45bdcc92c7
Add a first and simple Jupyter notebook
2025-11-21 18:32:23 +01:00
nicolargo
e660520eb2
Correct typo in Makefile
2025-11-16 10:03:19 +01:00
nicolargo
ccb00ec252
Make WebUI and Restful API SSL compliant #3340
2025-11-11 18:34:51 +01:00
nicolargo
e2d37ee482
Change the way uv is installed #3338
2025-11-08 16:18:22 +01:00
nicolargo
930745b5f3
Package generation issue on Pypi because of README.rst #3337
2025-11-08 09:38:01 +01:00
nicolargo
e3b016e6f3
Update dep and change Fetch screenshot for documentation
2025-10-18 08:59:21 +02:00
Nicolas Hennion
52c5042e37
Add --no-emit-workspace in the Makefile
2025-10-13 09:25:31 +00:00
nicolargo
d02aed76a6
Remove hashes from requirements file because it causes some issue in Gitlab pipeline (with pip)
2025-10-12 17:24:04 +02:00
nicolargo
0c2b9e5e8e
Requirements files are now generated dynamically with the make requirements or requirements-upgrade target
2025-10-12 17:00:46 +02:00
nicolargo
f1328a84e9
Use uv instead of venv in Makefile #3304
2025-10-12 15:19:32 +02:00
nicolargo
0bf79775b6
Remove duplicate line at the end of files
2025-09-28 16:28:05 +02:00
nicolargo
be29f069d6
First release ok, need to add some tests
2025-09-21 10:03:33 +02:00
nicolargo
8c8120fb90
Put WebUI conf generator in a dedicated script
2025-09-14 15:30:45 +02:00
nicolargo
54216c6580
Rafactor the Makefile to generate WebUI config file for all webui targets
2025-09-14 14:59:51 +02:00
nicolargo
3d263bc7d4
Create a Glances API in order to use Glances as a Python lib #3237
2025-07-12 18:16:43 +02:00
nicolargo
65393b0771
First version of the API
2025-07-09 17:40:08 +02:00
nicolargo
15a94f04da
Improve Restful API documentation embeded in FastAPI #2632
2025-07-05 10:32:11 +02:00
nicolargo
1365d600a3
(postgre)SQL export support / TimeScaleDB #2814
2025-07-05 10:32:11 +02:00
nicolargo
f45900b450
Add test for JSON export
2025-07-05 10:32:11 +02:00
nicolargo
7c0dee3a63
Add support for InfluxDB 3 Core #3182
2025-07-05 10:32:11 +02:00
nicolargo
941baba5b4
Improve unittest for CSV export #3150
2025-07-05 10:32:11 +02:00
nicolargo
ec8365817f
Improve unittest for InfluxDB plugin #3149
2025-07-05 10:32:11 +02:00
nicolargo
0d2f5e4ba3
Commit before lint
2025-07-05 10:32:10 +02:00
nicolargo
7de582fdb0
Update precommit hook
2025-07-05 10:32:10 +02:00
nicolargo
2c9beccea5
Improve WebUI display on low screen
2025-01-04 10:14:34 +01:00
nicolargo
372380bdb9
version 4.3.0.7
2025-01-03 10:20:15 +01:00
nicolargo
797b0d06b1
Add memory leak unitary test
2024-12-29 13:07:54 +01:00
nicolargo
1624e66f48
Improve unittest #2757
2024-12-28 18:08:52 +01:00
nicolargo
ec0d5695a9
First test with Selenium
2024-12-28 09:00:50 +01:00
nicolargo
4bb39232fe
Merge branch 'develop' into issue2757
2024-12-27 22:09:20 +01:00
nicolargo
e14934a197
Update profiling file
2024-12-27 11:53:34 +01:00
nicolargo
c828f21753
Updata min-test
2024-12-26 10:54:50 +01:00
nicolargo
b491cbe42b
Make main.py comliant with PyTest (concerning args)
2024-12-26 10:48:50 +01:00
nicolargo
b6865d8cff
Remove now plugin in the left menu of the WebUI (in the make webui task)
2024-12-25 09:35:08 +01:00
nicolargo
0ed44f2c13
Make the glances/outputs/static/js/uiconfig.json generated automaticaly from the make webui task
2024-12-25 09:31:29 +01:00
nicolargo
318a61da6c
Add a target to start Glances with Htop features
2024-11-11 17:09:24 +01:00
nicolargo
42b87acb55
Update profiling
2024-11-10 13:59:42 +01:00
nicolargo
7ac7171a3f
Improve theme and refactor getDecoration for stats
2024-11-08 09:17:51 +01:00
Ariel Otilibili
dec419f443
Refactored webui* rules
...
* part of #2906
* output is unchanged.
```
$ git log --oneline -n1 --pretty=short
commit f2f97e2f (HEAD -> makefile)
Author: Ariel Otilibili <otilibil@eurecom.fr >
Refactored `webui*` rules
$ make webui -n >> /tmp/makefile; echo $?
0
$ make webui-audit -n >> /tmp/makefile; echo $?
0
$ make webui-audit-fix -n >> /tmp/makefile; echo $?
0
$ git switch develop
Switched to branch 'develop'
Your branch is up to date with 'origin/develop'.
$ git log --oneline -n1 --pretty=short
commit 24c87253 (HEAD -> develop, origin/develop, origin/HEAD)
Merge: 42af55b3 fa7fc5bd
Author: Nicolas Hennion <nicolashennion@gmail.com >
Merge pull request #2941 from ariel-anieli/refactor-alert
$ make webui -n >> /tmp/develop; echo $?
0
$ make webui-audit -n >> /tmp/develop; echo $?
0
$ make webui-audit-fix -n >> /tmp/develop; echo $?
0
$ diff /tmp/develop /tmp/makefile; echo $?
0
```
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr >
2024-09-23 22:47:56 +02:00
nicolargo
76478959cc
Correct issue in Makefile
2024-08-24 09:32:01 +02:00
Ariel Otilibili
962ea850ed
Refactorized rules targetting profiling-* & memory-profiling
...
Part of #2906 :
* `profiling-*` share the same start banner
* used `OUT_DIR` for static outputs
* `TIMES` controls the number of iterations.
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr >
2024-08-18 15:26:21 +02:00
Ariel Otilibili
13079a606b
Used patterns rules in venv, venv-python, & venv-python
...
* `venv-*-python` relies on the pattern `venv-%-python`
* `venv-(full|min|dev)` & `venv-*-upgrade` on `venv-%`
* macros `UPGRADE`, `PRE_COMMIT`, `VIRTUAL_ENV`, & `REQS` are rule switches
* `VIRTUAL_ENV` being evaluated at runtime from `DEFINE_VARS_FOR_TYPE`
* `make help` is unchanged.
```
$ make venv -n
virtualenv -p /usr/bin/python3 venv
virtualenv -p /usr/bin/python3 venv-min
virtualenv -p /usr/bin/python3 venv-dev
venv/bin/pip install -r requirements.txt; venv/bin/pip install -r optional-requirements.txt;
venv-min/bin/pip install -r requirements.txt;
venv-dev/bin/pip install -r dev-requirements.txt; venv-dev/bin/pip install -r doc-requirements.txt;
venv-dev/bin/pre-commit install --hook-type pre-commit
$ make venv-python -n
virtualenv -p /usr/bin/python3 venv
virtualenv -p /usr/bin/python3 venv-min
virtualenv -p /usr/bin/python3 venv-dev
$ make venv-upgrade -n
venv/bin/install install --upgrade pip
venv/bin/pip install --upgrade -r requirements.txt; venv/bin/pip install --upgrade -r optional-requirements.txt;
venv-min/bin/install install --upgrade pip
venv-min/bin/pip install --upgrade -r requirements.txt;
venv-dev/bin/install install --upgrade pip
venv-dev/bin/pip install --upgrade -r dev-requirements.txt; venv-dev/bin/pip install --upgrade -r doc-requirements.txt;
```
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr >
2024-08-11 17:45:21 +02:00
Ariel Otilibili
feac10a84d
Renamed macros in Makefile
...
* `s/VENV/venv_full/; s/VENV_MIN/venv_min/; s/VENV_DEV/venv_dev/;`
* useful in subsequent changes
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr >
2024-08-11 17:40:27 +02:00
Ariel Otilibili
a37010929d
Rules targetting docker-* are now built at runtime
...
* removed the macros `DOCKERFILE`, `TARGET`, & `DOCKER_TAG`
* introduced the macro `MAKE_DOCKER_BUILD_RULES`
* at runtime, `docker-*` are built from the `DISTROS` list: done using `eval` [1]
* `make help` is unchanged:
```
$ make | grep '\sdocker-'
make docker-alpine Generate local docker images (Alpine)
make docker-alpine-dev Generate local docker image (Alpine dev)
make docker-alpine-full Generate local docker image (Alpine full)
make docker-alpine-minimal Generate local docker image (Alpine minimal)
make docker-ubuntu Generate local docker images (Ubuntu)
make docker-ubuntu-dev Generate local docker image (Ubuntu dev)
make docker-ubuntu-full Generate local docker image (Ubuntu full)
make docker-ubuntu-minimal Generate local docker image (Ubuntu minimal)
$ make docker -n
docker buildx build --target full -f docker-files/alpine.Dockerfile -t glances:local-alpine-full .
docker buildx build --target minimal -f docker-files/alpine.Dockerfile -t glances:local-alpine-minimal .
docker buildx build --target dev -f docker-files/alpine.Dockerfile -t glances:local-alpine-dev .
docker buildx build --target full -f docker-files/ubuntu.Dockerfile -t glances:local-ubuntu-full .
docker buildx build --target minimal -f docker-files/ubuntu.Dockerfile -t glances:local-ubuntu-minimal .
docker buildx build --target dev -f docker-files/ubuntu.Dockerfile -t glances:local-ubuntu-dev .
```
[1] https://www.gnu.org/software/make/manual/html_node/Eval-Function.html
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr >
2024-08-10 09:23:37 +02:00
Ariel Otilibili
ddfcf46dee
Renamed variables in Makefile; introduced the variable DISTROS
...
* needed for subsequent changes in `Makefile`
* `s/ALPINE_IMAGES/alpine_images/; s/UBUNTU_IMAGES/ubuntu_images/`
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr >
2024-08-10 09:17:30 +02:00
Ariel Otilibili
f5c2d8ce36
Used pattern for rules targetting run-docker-*
...
`make help` & `make run-docker-*` are unchanged:
```
$ make | grep run-docker
make run-docker-alpine-dev Start Glances Alpine Docker dev in console mode
make run-docker-alpine-full Start Glances Alpine Docker full in console mode
make run-docker-alpine-minimal Start Glances Alpine Docker minimal in console mode
make run-docker-ubuntu-dev Start Glances Ubuntu Docker dev in console mode
make run-docker-ubuntu-full Start Glances Ubuntu Docker full in console mode
make run-docker-ubuntu-minimal Start Glances Ubuntu Docker minimal in console mode
$ make run-docker-alpine-minimal -n
docker run --rm -e TZ="" -e GLANCES_OPT="" --pid host --network host -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro -v /var/run/docker.sock:/var/run/docker.sock:ro -it glances:local-alpine-minimal
$ make run-docker-alpine-full -n
docker run --rm -e TZ="" -e GLANCES_OPT="" --pid host --network host -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro -v /var/run/docker.sock:/var/run/docker.sock:ro -it glances:local-alpine-full
$ make run-docker-alpine-dev -n
docker run --rm -e TZ="" -e GLANCES_OPT="" --pid host --network host -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro -v /var/run/docker.sock:/var/run/docker.sock:ro -it glances:local-alpine-dev
$ make run-docker-ubuntu-dev -n
docker run --rm -e TZ="" -e GLANCES_OPT="" --pid host --network host -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro -v /var/run/docker.sock:/var/run/docker.sock:ro -it glances:local-ubuntu-dev
$ make run-docker-ubuntu-full -n
docker run --rm -e TZ="" -e GLANCES_OPT="" --pid host --network host -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro -v /var/run/docker.sock:/var/run/docker.sock:ro -it glances:local-ubuntu-full
$ make run-docker-ubuntu-minimal -n
docker run --rm -e TZ="" -e GLANCES_OPT="" --pid host --network host -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro -v /var/run/docker.sock:/var/run/docker.sock:ro -it glances:local-ubuntu-minimal
```
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr >
2024-08-08 12:28:58 +02:00
Ariel Otilibili
516c99e496
Used pattern for rules targetting docker-*
...
`make help` & `make docker-*` are unchanged:
```
$ make | grep -P '\sdocker-'
make docker-alpine Generate local docker images (Alpine)
make docker-alpine-dev Generate local docker image (Alpine dev)
make docker-alpine-full Generate local docker image (Alpine full)
make docker-alpine-minimal Generate local docker image (Alpine minimal)
make docker-ubuntu Generate local docker images (Ubuntu)
make docker-ubuntu-dev Generate local docker image (Ubuntu dev)
make docker-ubuntu-full Generate local docker image (Ubuntu full)
make docker-ubuntu-minimal Generate local docker image (Ubuntu minimal)
$ make docker-alpine -n
docker buildx build --target full -f docker-files/alpine.Dockerfile -t glances:local-alpine-full .
docker buildx build --target minimal -f docker-files/alpine.Dockerfile -t glances:local-alpine-minimal .
docker buildx build --target dev -f docker-files/alpine.Dockerfile -t glances:local-alpine-dev .
$ make docker-ubuntu -n
docker buildx build --target full -f docker-files/ubuntu.Dockerfile -t glances:local-ubuntu-full .
docker buildx build --target minimal -f docker-files/ubuntu.Dockerfile -t glances:local-ubuntu-minimal .
docker buildx build --target dev -f docker-files/ubuntu.Dockerfile -t glances:local-ubuntu-dev .
```
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr >
2024-08-08 12:28:58 +02:00
Ariel Otilibili
1fef2594d2
Used pattern for rules targetting test-*
...
`make help` & `make test-*` are unchanged:
```
$ make | grep test
make test Run unit tests
make test-core Run core unit tests
make test-min Run core unit tests in minimal environment
make test-min-with-upgrade Upgrade deps and run unit tests in minimal environment
make test-restful Run Restful unit tests
make test-with-upgrade Upgrade deps and run unit tests
make test-xmlrpc Run XMLRPC unit tests
$ make test -n
venv/bin/python unittest-core.py
venv/bin/python unittest-restful.py
venv/bin/python unittest-xmlrpc.py
```
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr >
2024-08-08 12:28:51 +02:00