mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
feat(install): Make install ditro-agnostic
- Auto detect and use apt, dnf & yum
This commit is contained in:
11
scripts/test/run-test.sh
Executable file
11
scripts/test/run-test.sh
Executable 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 "$@"
|
||||
Reference in New Issue
Block a user