2 ms·
Nice! I made a similar tool a while back: https://gitlab.com/rhn/cirunn https://gitlab.com/rhn/cirunn It's a pair of really simple Python scripts: cirunn.py f
by rhn_mk1 6y ago
Nice! I made a similar tool a while back:
https://gitlab.com/rhn/cirunn https://gitlab.com/rhn/cirunn
It's a pair of really simple Python scripts: cirunn.py for executing locally, an ciorder.py to execute stuff via ssh on another host (useful for projects that are too big for the laptop).
The main advantage is that podman does not need root access at all, making it both easier to use and more secure.
Also, no installation.
The difficulty I found here is deciding what the user actually means to run: is it more like `make test`, where the current state of the working directory is tested, or more like the CI pipeline, where only committed changes are tested?
For the sake of practicality, the local script tests uncommitted changes, and the remote one checks the last commit.