Skip to content

Commit

Permalink
feat: update distros and optimize packages for latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
0-vortex committed Dec 8, 2024
1 parent 1abaf97 commit b0a00c0
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 25 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# alpine:3.20.3
FROM alpine@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d AS alpine
# alpine:3.21.0
FROM alpine@sha256:21dc6063fd678b478f57c0e13f47560d0ea4eeba26dfc947b2a4f81f686b9f45 AS alpine

ARG username=vortex
ARG skipExtras=false
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.arch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# archlinux:base-20240929.0.266368
FROM --platform=linux/amd64 archlinux@sha256:c8501ab8b970205491501ba01d9bce9a04d70537fc15596360f1ce1011b08569 AS arch
# archlinux:base-20241201.0.284684
FROM --platform=linux/amd64 archlinux@sha256:ad18112a3888d427b18a004309eff649418b68ddee0e71004c36b87630baac4c AS arch

ARG username=vortex
ARG skipExtras=false
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.debian
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# debian:trixie-20240926-slim
FROM debian@sha256:c63174f799a74411a0290f25086fdc5dc939aa1f8971a16ad6fb1b7658a25126 AS debian
# debian:trixie-20241202-slim
FROM debian@sha256:ea037584ebc42a1144ff5ca16add337920cd4cad175431ea0ee3310a0133c0ba AS debian

ARG username=vortex
ARG skipExtras=false
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.kali
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# kalilinux/kali-last-release:latest
FROM kalilinux/kali-last-release@sha256:d58bc738b023ea499b1191154773d82ed4f7420dcbf7fb292767386809472400 AS kali
FROM kalilinux/kali-last-release@sha256:c91acd9b9022487f780c379a6acbba5123f505d3bd0341ddb2e3feeda1e10e65 AS kali

ARG username=vortex
ARG skipExtras=false
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.ubuntu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ubuntu:noble-20240904.1
FROM ubuntu@sha256:b359f1067efa76f37863778f7b6d0e8d911e3ee8efa807ad01fbf5dc1ef9006b AS ubuntu
# ubuntu:noble-20241118.1
FROM ubuntu@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab AS ubuntu

ARG username=vortex
ARG skipExtras=false
Expand Down
9 changes: 2 additions & 7 deletions run_once_000_install_dependencies.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ sudo /opt/pkg/bin/pkgin -y install \
ripgrep \
sd \
tealdeer \
tokei \
wget

{{ else if (and (eq .chezmoi.os "linux") (not .codespaces)) -}}
Expand All @@ -41,7 +40,6 @@ sudo apt-get install -y --no-install-recommends \
ripgrep \
sd \
tealdeer \
tokei \
wget
{{ else if eq .chezmoi.osRelease.id "arch" -}}
sudo pacman -Sy --noconfirm \
Expand All @@ -59,7 +57,6 @@ sudo pacman -Sy --noconfirm \
ripgrep \
sd \
tealdeer \
tokei \
wget
{{ else if eq .chezmoi.osRelease.id "fedora" -}}
sudo dnf install -y \
Expand All @@ -80,7 +77,6 @@ sudo dnf install -y \
ripgrep \
sd \
tealdeer \
tokei \
wget \
which
{{ else if eq .chezmoi.osRelease.id "alpine" -}}
Expand All @@ -95,12 +91,11 @@ sudo apk add --update \
sudo \
zsh \
mc \
neofetch \
ripgrep \
sd \
tealdeer \
tokei \
wget
sudo bash -c "echo \"@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing\" >> /etc/apk/repositories"
sudo apk add --update tealdeer@testing neofetch@testing
# alpine profile is dirty
sudo rm -rf /etc/profile
{{ end -}}
Expand Down
5 changes: 3 additions & 2 deletions run_once_010_install_fonts.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ cp ~/.vendor/font-jetbrains/ttf/*.ttf ~/Library/Fonts

echo "installing fonts for osRelease: {{ .chezmoi.osRelease.id }}"

{{ if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu")) -}}
sudo apt-get install -y --no-install-recommends fonts-powerline fonts-jetbrains-mono
{{ if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu") (eq .chezmoi.osRelease.id "kali")) -}}
~/.vendor/font-powerline/install.sh
sudo apt-get install -y --no-install-recommends fonts-jetbrains-mono
{{ else if eq .chezmoi.osRelease.id "arch" -}}
sudo pacman -Sy --noconfirm powerline-fonts ttf-jetbrains-mono
{{ else if eq .chezmoi.osRelease.id "fedora" -}}
Expand Down
5 changes: 3 additions & 2 deletions run_once_020_install_git_extras.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@ sudo apt-get install -y --no-install-recommends git-extras git-quick-stats
curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/git-extras.tar.gz
tar -xvf git-extras.tar.gz && cd git-extras && makepkg
sudo pacman -U --noconfirm git-extras*.pkg.tar.zst && cd ..
rm -rf git-extras*
# install git-extras from aur
curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/git-quick-stats.tar.gz
tar -xvf git-quick-stats.tar.gz && cd git-quick-stats && makepkg
sudo pacman -U --noconfirm git-quick-stats*.pkg.tar.zst && cd ..
rm -rf git-quick-stats*
{{ else if eq .chezmoi.osRelease.id "fedora" -}}
sudo dnf install -y git-extras
git clone https://github.com/arzzen/git-quick-stats.git && cd git-quick-stats
sudo make install
cd .. && rm -rf git-quick-stats
cd .. && rm -rf git-quick-stats*
{{ else if eq .chezmoi.osRelease.id "alpine" -}}
sudo bash -c "echo \"@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing\" >> /etc/apk/repositories"
sudo apk add --update git-extras@testing git-quick-stats@testing
{{ end -}}

Expand Down
2 changes: 1 addition & 1 deletion run_once_200_python3_packages.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi

{{ if (and (eq .chezmoi.os "linux") (not .codespaces)) -}}

{{ if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu") (eq .chezmoi.osRelease.id "arch") (eq .chezmoi.osRelease.id "alpine")) -}}
{{ if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu") (eq .chezmoi.osRelease.id "kali") (eq .chezmoi.osRelease.id "arch") (eq .chezmoi.osRelease.id "alpine")) -}}
sudo rm /usr/lib/python3.12/EXTERNALLY-MANAGED
{{ end }}

Expand Down
7 changes: 6 additions & 1 deletion run_once_210_node_packages.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ if [[ -n "${DRY_RUN}" && "${DRY_RUN}" == true ]]; then
exit 0
fi

SCRIPTS_FOLDER="$HOME/.dotfiles/scripts"

{{ if (eq .chezmoi.os ".codespaces") -}}
SCRIPTS_FOLDER="/__w/dotfiles/dotfiles/scripts"
{{ end -}}

# set global prefix
npm config set prefix "$HOME/.npm-global"

# install Node global packages
~/.dotfiles/scripts/npm.sh \
$SCRIPTS_FOLDER/npm.sh \
commitizen \
depcheck \
dree \
Expand Down
7 changes: 6 additions & 1 deletion run_once_220_go_packages.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ if [[ -n "${DRY_RUN}" && "${DRY_RUN}" == true ]]; then
exit 0
fi

SCRIPTS_FOLDER="$HOME/.dotfiles/scripts"

{{ if (eq .chezmoi.os ".codespaces") -}}
SCRIPTS_FOLDER="/__w/dotfiles/dotfiles/scripts"
{{ end -}}

# install Go global packages
~/.dotfiles/scripts/go.sh \
$SCRIPTS_FOLDER/go.sh \
schollz/croc/v9 \
muesli/duf \
charmbracelet/glow \
Expand Down
3 changes: 1 addition & 2 deletions run_once_230_rust_packages.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ if [[ -n "${DRY_RUN}" && "${DRY_RUN}" == true ]]; then
exit 0
fi


# install Rust global packages
~/.cargo/bin/cargo install \
"$HOME"/.cargo/bin/cargo install \
dotenv-linter \
hexyl \
petname

0 comments on commit b0a00c0

Please sign in to comment.