From 2c7bac4eddfb43ca4e87589af3ea972c9bd3ae40 Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 11 May 2025 14:21:13 +0200 Subject: [PATCH] wip --- debian/.src/setupDebian.sh | 6 ++++++ debian/Dockerfile | 15 ++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/debian/.src/setupDebian.sh b/debian/.src/setupDebian.sh index 115f35f..e2f92ef 100755 --- a/debian/.src/setupDebian.sh +++ b/debian/.src/setupDebian.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash cd $HOME/dotfiles/ +{ + echo "${CYAN}Updating submodules..${NC}" && + git submodule update --init --recursive && + echo "${CYAN}Pulling down submodules..${NC}" && + git pull --recurse-submodule +} stow dotfiles/ stow zsh/ diff --git a/debian/Dockerfile b/debian/Dockerfile index a429688..977ba0e 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -2,19 +2,24 @@ FROM debian:trixie-slim RUN apt update && apt install --assume-yes curl zsh fzf zoxide unzip sudo git make stow +COPY ./.src/colorscript.sh . +COPY ./.src/neovim.sh . COPY ./.src/omp.sh . +COPY ./.src/zellij.sh . + RUN bash ./omp.sh -d /bin && rm ./omp.sh +RUN bash neovim.sh && rm neovim.sh +RUN bash zellij.sh && rm zellij.sh +RUN bash colorscript.sh && rm colorscript.sh + RUN useradd -m -G sudo -r -s /usr/bin/zsh debian RUN echo "debian ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers USER debian WORKDIR /home/debian -COPY ./.src/* . -RUN bash neovim.sh && rm neovim.sh -RUN bash zellij.sh && rm zellij.sh -RUN bash colorscript.sh && rm colorscript.sh +COPY ./.src/setupDebian.sh . -RUN git clone --recursive --depth=1 https://git.k4li.de/dotfiles/minimal.git /home/pika/dotfiles +RUN git clone --recursive --depth=1 https://git.k4li.de/dotfiles/minimal.git /home/debian/dotfiles ENTRYPOINT /usr/bin/zsh