feat(install): Make install ditro-agnostic

- Auto detect and use apt, dnf & yum
This commit is contained in:
Pratik Tripathy
2024-09-11 15:49:00 +05:30
parent 391f3757ba
commit b52a3f1863
11 changed files with 176 additions and 51 deletions

11
scripts/test/run-test.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
# Prune, build and run docker
main() {
cd .. # change docker build context to 1 directory up
docker container prune -f && echo "Removed old Docker containers"
docker build -t dotfile-install-test:latest -f test/Dockerfile . && echo "Docker build success"
docker run -it dotfile-install-test:latest
}
main "$@"