Update sh workflow
This commit is contained in:
parent
ca47562f27
commit
7b915ee41d
@ -51,7 +51,7 @@ Display stats
|
|||||||
This step permits to generate an html interactive render from the sqlite stats file.
|
This step permits to generate an html interactive render from the sqlite stats file.
|
||||||
It is simple, just run:
|
It is simple, just run:
|
||||||
```bash
|
```bash
|
||||||
venv/bin/python generate_html.py
|
./generate_html.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
The report is now accessible in `stats.html`.
|
The report is now accessible in `stats.html`.
|
||||||
|
@ -1 +0,0 @@
|
|||||||
/home/caracals/outils/docker-stats-histo/venv/bin/python /home/caracals/outils/docker-stats-histo/generate_html.py /home/caracals/outils/docker-stats-histo/stats.sqlite /home/caracals/services/org-caracals-files/files/stats.html
|
|
14
generate_html.sh
Executable file
14
generate_html.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
# Move in repo folder
|
||||||
|
SCRIPT_PATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||||
|
pushd "${SCRIPT_PATH}" > /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
venv/bin/python generate_html.py stats.sqlite /home/caracals/services/org-caracals-files/files/stats.html
|
||||||
|
|
||||||
|
|
||||||
|
# Back to original path
|
||||||
|
popd > /dev/null
|
@ -4,7 +4,7 @@ set -eu
|
|||||||
|
|
||||||
# Move in repo folder
|
# Move in repo folder
|
||||||
SCRIPT_PATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
SCRIPT_PATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||||
pushd ${SCRIPT_PATH} > /dev/null
|
pushd "${SCRIPT_PATH}" > /dev/null
|
||||||
|
|
||||||
|
|
||||||
venv/bin/python save_docker_stats.py
|
venv/bin/python save_docker_stats.py
|
||||||
|
Loading…
Reference in New Issue
Block a user