mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
feat(install): Make install ditro-agnostic
- Auto detect and use apt, dnf & yum
This commit is contained in:
108
scripts/test/.dockerignore
Normal file
108
scripts/test/.dockerignore
Normal file
@@ -0,0 +1,108 @@
|
||||
# ---- KDE Neon ----
|
||||
# KDE directory preferences
|
||||
.directory
|
||||
|
||||
# temporary files which can be created if a process still has a handle open of a deleted file
|
||||
.fuse_hidden*
|
||||
|
||||
# Linux trash folder which might appear on any partition or disk
|
||||
.Trash-*
|
||||
|
||||
# .nfs files are created when an open file is removed but is still being accessed
|
||||
.nfs*
|
||||
|
||||
# Binaries for programs and plugins
|
||||
*.exe
|
||||
*.exe~
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
|
||||
# ---- macOS ----
|
||||
# General
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Icon must end with two \r
|
||||
Icon
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear in the root of a volume
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
.com.apple.timemachine.donotpresent
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
# ---- IDE ----
|
||||
# Vim Artifacts
|
||||
**.swp
|
||||
lazy-lock.json
|
||||
.luarc.json
|
||||
|
||||
# VS Code Artifacts
|
||||
/.vscode/
|
||||
**state.vscdb
|
||||
**state.vscdb.backup
|
||||
.vscode/extensions/** # Ignore all Files under .vscode/extensions/
|
||||
!.vscode/extensions/**/*.json # Only json files inside the .vscode/extensions/ folder
|
||||
|
||||
# Intellij IDE Artifacts
|
||||
.idea/
|
||||
*.imi
|
||||
*.jar
|
||||
*.tar
|
||||
resharper-host/
|
||||
tasks/
|
||||
|
||||
# ---- Programming Languages ----
|
||||
# Ignore all downloaded node modules
|
||||
node_modules/*
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
# Ignore all minified js files
|
||||
*.min.js
|
||||
|
||||
# Log files
|
||||
..logs/
|
||||
*.log
|
||||
|
||||
# Other Files to ignore
|
||||
**app_stat_v2.db
|
||||
.ssh/*.pub
|
||||
**/Package Control.cache
|
||||
**Cache
|
||||
*.db
|
||||
*.qmlc
|
||||
*.qml
|
||||
*.jsc
|
||||
**/contents/images
|
||||
**/contents/fonts
|
||||
*kpluginindex.json
|
||||
|
||||
*backup
|
||||
*undo
|
||||
*sessions
|
||||
*.bak
|
||||
nvim_switch/
|
||||
*kitty/*.py
|
||||
|
||||
README.md
|
||||
.gitignore
|
||||
.prettierrc
|
||||
LICENSE
|
||||
|
||||
test/
|
||||
14
scripts/test/Dockerfile
Normal file
14
scripts/test/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
#FROM kdeneon/plasma
|
||||
#FROM debian:11-slim
|
||||
#FROM debian:12-slim
|
||||
#FROM ubuntu:20.04
|
||||
#FROM ubuntu:22.04
|
||||
#FROM ubuntu:22.10
|
||||
#FROM ubuntu:23.04
|
||||
FROM fedora:40
|
||||
#TODO: Arch
|
||||
WORKDIR /scripts
|
||||
#RUN apt-get update -y && apt-get install sudo -y # for debian distros
|
||||
RUN dnf install sudo -y # for fedora and its derivatives
|
||||
COPY . .
|
||||
CMD [ "sh", "install.sh" ]
|
||||
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