This is a base script to automagically pull redmine reports down to .csv files and convert them to pdf files. If no entries are found, the project is ignored.
Make sure to mount the reports dir as a volume to see reports. Note: When using pod_run.sh, you can export an env var $REDREP_REPORTS_DIR and the script will mount that dir with the internal app reports dir.
podman build . -t redrep
podman run -v ./reports:/app/reports:Z redrep -m 3 -y 2023
podman run -v ./reports:/app/reports:Z redrep -m 3 -p client1
podman run redrep -l
Define a specific project pattern:
./pod_run.sh -m 3 -y 2023 -p client1
Use the default patterns from config.yaml:
./pod_run.sh -m 1 -y 2024
The API key can be found under 'my account' on the right panel. https://redmine.example.com/my/account
The config is read from the location script is ran. Note that regex is taken as priority and that it will be case insensitive.
API_KEY: "12969b491059cc67b7gf81da25f34g823d4df4ef"
REDMINE_SITE: "https://redmine.example.com"
RE_WHITELIST: "(client1|hourly)"
API_KEY: "12969b491059cc67b7gf81da25f34g823d4df4ef"
REDMINE_SITE: "https://redmine.example.com"
PROJECTS:
- client1
- client2
Current macOS filesystems HFS+ and APFS do not support SELinux labeling. You will see something like this:
Error: preparing container xyz for attach: lsetxattr /a/path: operation not supported
Virtiofs will support this, but it's currently experimental. Meanwhile, just run without relabeling by not using :z or :Z suffixes.
For volume mounting, you might need to re-create the podman machine. Before doing this, check if you have anything worth saving.
-
Close Podman desktop
-
Shutdown podman machine
$ podman machine stop
-
Destroy current podman machine
$ podman machine rm podman-machine-default
-
Create a new podman machine
$ podman machine init --cpus=4 --disk-size=100 --memory=8092 -v $HOME:$HOME
-
Start it
$ podman machine start