In a previous job I wrote some simple utilities which were helpful for continuous-integration pipelines. Most of these were very very simple, for example:
- Find all
*.jsonfiles, and validate them.
- Find all
*.yamlfiles, and validate them.
- Run all the tests in a given directory, execute them one by one.
- But stop if any single test failed.
run-partsdoes this on Debian GNU/Linux systems, but on CentOS there is no
- Which is the sole reason I had to re-implement that tool. Sigh.
- Parse PHP-files and look for comments that were bogus.
Each of these simple tools were run of the mill shell-scripts, or simple binaries. I've been putting together a simple deployable tool which lets you run them easily, so here it is:
The idea is that you install the tool, then run the commands by specify the appropriate sub-command:
sysbox validate-yaml [path/to/find/files/beneath]
Of course if you symlink
sysbox you don't need to prefix with the name - so this is just like busybox in this regard.
Might be interesting to some.