-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
R. S. Doiel
committed
Oct 30, 2024
1 parent
13f5a6c
commit 8cd52ba
Showing
29 changed files
with
146 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
%cold_reports(1) user manual | 0.0.10 2024-10-30 13f5a6c | ||
% R. S.Doiel | ||
% 2024-10-30 13f5a6c | ||
|
||
# NAME | ||
|
||
cold_reports | ||
|
||
# SYNOPSIS | ||
|
||
cold_reports [OPTIONS] [REPORTS_YAML] | ||
|
||
# DESCRIPTION | ||
|
||
cold_reports processes the report request queue. cold_reports is expected to validate | ||
the report request, launch the report. The report is responsible to writing it's output | ||
to standard out which is read by the cold_reports. cold_reports then renders the report | ||
to a known location and updates the link data in the report request record. | ||
|
||
REPORTS_YAML is the filename to read for configuring which reports are allowed to run and | ||
what programs are executed as a result. If it is not provided then "cold_reports.yaml" is looked | ||
for in the current working directory. | ||
|
||
cold_reports requires access to the COLD JSON API to manage report requests. | ||
|
||
Two example reports are provided in the COLD repository. Both are written in Bash and | ||
require that dataset's dsquery program are available. The provided report examples | ||
are "run_people_csv.bash" and "run_groups_csv.bash". | ||
|
||
Reports can be written in any langauge supported by the host system or can be | ||
compiled programs. The primary requirement is that they write their results to standard | ||
out so that the report runner can manage making the reports available via the COLD web app. | ||
|
||
cold_reports is designed as daemon suitable to run under systemd or other service management | ||
system. Logging is written to standard output. Included in the COLD repository is an example | ||
service file to use when deploying cold_reports. | ||
|
||
# OPTIONS | ||
|
||
help | ||
: display help | ||
|
||
license | ||
: display license | ||
|
||
version | ||
: display version | ||
|
||
debug | ||
: turn on debug logging | ||
|
||
|
||
# EXAMPLE | ||
|
||
Shown is starting cold_reports with an explicit configuration file, "my_cold_reports.yaml" file, then | ||
run with the default configuration file, "cold_reports.yaml" in the same working directory. | ||
|
||
~~~shell | ||
cold_reports my_cold_reports.yaml | ||
cold_reports | ||
~~~ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=COLD reports service | ||
Documentation=man:cold_reports(1) | ||
After=network.target | ||
ConditionPathExists=!/Sites/cold/cold_not_to_be_run | ||
|
||
[Service] | ||
WorkingDirectory=/Sites/cold | ||
ExecStart=/Sites/cold/bin/cold_reports | ||
Type=simple | ||
Restart=always | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
Alias=cold_reports.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"1.1.1","languages":{"en-US":{"hash":"en-US_93c527e8577f4","wasm":"en-US","page_count":13}}} | ||
{"version":"1.1.1","languages":{"en-US":{"hash":"en-US_76e012f0e4b37","wasm":"en-US","page_count":13}}} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Generate a new draft release using Make and gh | ||
# Generate a new draft release jq and gh | ||
# | ||
make | ||
make website | ||
make release | ||
RELEASE_TAG="v$(jq -r .version codemeta.json)" | ||
RELEASE_NOTES="$(jq .releaseNotes codemeta.json)" | ||
RELEASE_NOTES="$(jq -r .releaseNotes codemeta.json)" | ||
make save msg="prep for ${RELEASE_TAG}, ${RELEASE_NOTES}" | ||
# Now generate a draft releas | ||
gh release create "${RELEASE_TAG}" \ | ||
--verify-tag --draft \ | ||
--draft \ | ||
--notes="${RELEASE_NOTES}" \ | ||
dist/*.zip | ||
echo "Now goto repo release and finalize draft" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.