Skip to content

Commit

Permalink
feat(oci): add podman recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
borjapazr committed Jun 13, 2024
1 parent c7f211b commit f036e1a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 15 deletions.
3 changes: 1 addition & 2 deletions os/linux/apt/packages-desktop.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ rofi
tilix
font-manager
synaptic
tlp tlp-rdw
visualvm
arc-theme
chrome-gnome-shell
gnome-tweaks
gnome-tweaks
2 changes: 1 addition & 1 deletion scripts/self/recipes/_main.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if ! ${DOT_RECIPES_SOURCED:-false}; then
for file in $DOTFILES_PATH/scripts/self/recipes/{brew,docker,tlp}.sh; do
for file in $DOTFILES_PATH/scripts/self/recipes/{brew,docker,podman}.sh; do
source "$file"
done
unset file
Expand Down
19 changes: 19 additions & 0 deletions scripts/self/recipes/podman.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# shellcheck disable=SC2260
podman::install() {
if platform::is_linux; then
if platform::command_exists apt-mark; then
sudo apt-get remove -y podman 2>&1 | log::file "🆑 Removing old podman packages"
sudo apt-get install -y software-properties-common 2>&1 | log::file "📥 Installing podman dependencies"
sudo apt-get update -y 2>&1 | log::file "🔃 Updating system"
sudo apt-get install -y podman 2>&1 | log::file "📥 Installing podman"
fi
fi
}

podman::post_install() {
:
}

podman::is_installed() {
platform::command_exists podman
}
12 changes: 0 additions & 12 deletions scripts/self/recipes/tlp.sh

This file was deleted.

1 change: 1 addition & 0 deletions scripts/self/utils/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ install_ohmyzsh_themes() {
_install_common_requirements() {
recipes::install brew
recipes::install docker
recipes::install podman
}

_install_macos_requirements() {
Expand Down

0 comments on commit f036e1a

Please sign in to comment.