mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
feat(install): Do distro specific setup before installing os-packages
This commit is contained in:
@@ -100,6 +100,7 @@ dist-ssr
|
||||
nvim_switch/
|
||||
*kitty/*.py
|
||||
|
||||
.git/
|
||||
README.md
|
||||
.gitignore
|
||||
.prettierrc
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
#FROM kdeneon/plasma
|
||||
#FROM debian:11-slim
|
||||
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
|
||||
#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
|
||||
WORKDIR /dotfiles
|
||||
RUN apt-get update && apt-get install sudo -y # for debian distros
|
||||
#RUN dnf install sudo -y # for fedora and its derivatives
|
||||
COPY . .
|
||||
CMD [ "sh", "install.sh" ]
|
||||
CMD [ "sh", "setup.sh", "-i" ]
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
# Prune, build and run docker
|
||||
main() {
|
||||
cd .. # change docker build context to 1 directory up
|
||||
cd ../.. # change docker context to dotfile repo
|
||||
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
|
||||
docker build -t dotfile-setup:latest -f scripts/test/Dockerfile . && echo "Docker build success"
|
||||
docker run -it dotfile-setup:latest
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
||||
Reference in New Issue
Block a user