| |
@@ -1,15 +1,18 @@
|
| |
Check FAS user status.
|
| |
|
| |
## Configuration:
|
| |
+
|
| |
rename `myconfig.cfg.example` to `myconfig.cfg` and edit it accordingly (it contains your FAS credentials).
|
| |
|
| |
## Syntax:
|
| |
+
|
| |
`python3 check.py username days`
|
| |
|
| |
Where `username` is the FAS user to check and `days` is the number of days to check on datagrepper in order to
|
| |
get a list of activities logged from the fedmsg bus.
|
| |
|
| |
## Results
|
| |
+
|
| |
The script output is as follow:
|
| |
|
| |
* Username
|
| |
@@ -21,3 +24,47 @@
|
| |
* Activities in the last X days:
|
| |
* a list of activity topics grabbed from datagrepper
|
| |
* total number of activities
|
| |
+
|
| |
+ ## Using Container
|
| |
+
|
| |
+ Install the following packed:
|
| |
+
|
| |
+ `
|
| |
+ sudo dnf install podman podman-compose
|
| |
+ `
|
| |
+
|
| |
+ Edit the following file:
|
| |
+
|
| |
+ `
|
| |
+ docker-compose.yml
|
| |
+ `
|
| |
+
|
| |
+ - FOWN=${USER} # your _FAS_ User, in the case you Linux user math with your _FAS_
|
| |
+ - FPSWD=password # your _FAS_ password
|
| |
+ - FSEARCH=search # User to search
|
| |
+ - DAYS=nn # Number of Days
|
| |
+
|
| |
+ then build and execute the images:
|
| |
+
|
| |
+ `
|
| |
+ podman-compose up -d
|
| |
+ podman logs image
|
| |
+ `
|
| |
+
|
| |
+ then copy the result from your images to your box.
|
| |
+
|
| |
+ `
|
| |
+ podman cp image:/code/search.txt search.txt
|
| |
+ podman-compose down
|
| |
+ `
|
| |
+
|
| |
+ NOTE: images see podman pod create --name to see the image filename
|
| |
+
|
| |
+
|
| |
+ find another user:
|
| |
+
|
| |
+ * Edit `docker-compose-file.yml` as explain it before
|
| |
+ * Execute `podman-compose build`
|
| |
+ * Execute `podman-compose down`
|
| |
+ * Execute `podman-compose up -d`
|
| |
+ * Copy the file
|
| |