Files
dotfiles/scripts/test/run-test.sh
Pratik Tripathy b52a3f1863 feat(install): Make install ditro-agnostic
- Auto detect and use apt, dnf & yum
2024-09-11 15:49:00 +05:30

12 lines
338 B
Bash
Executable File

#!/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 "$@"