Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(common): add containers.pruneDockerResources utility method
This method attempts (in a very resilient way) to free up docker resources by pruning first the containers, then the volumes, then the images and finally even the networks. It is NOT designed to be used on a local development machine since there it's usually preferred for the contributors to control how these things are done manually to ensure they do not prune anything that they don't wish to. What is this for then? It's been added specifically to be executed by integration tests that run in the CI environment where recently issues started popping up regarding the GitHub CI Action/Workflow VM having its disk full due to our usage of docker images (the AIO images are quite fat). So the idea is that tests can call this function before their own execution in an attempt to free up enough disk space for the upcoming tests to continue passing without having to bail out due to the disk being full. Signed-off-by: Peter Somogyvari <[email protected]>
- Loading branch information