diff --git a/scripts/Arch/Scripts/deploy.fish b/scripts/Arch/Scripts/deploy.fish index bbd13d560..47e0da7e6 100644 --- a/scripts/Arch/Scripts/deploy.fish +++ b/scripts/Arch/Scripts/deploy.fish @@ -266,6 +266,7 @@ function deploySoftware -d "Deploys a the specified software action" -a action end and source "$dir/../Software/n/main.fish" $argv + and source "$dir/../Software/docker/main.fish" $argv end and if collectionActive python diff --git a/scripts/Arch/Software/docker/main.fish b/scripts/Arch/Software/docker/main.fish new file mode 100755 index 000000000..2e808442a --- /dev/null +++ b/scripts/Arch/Software/docker/main.fish @@ -0,0 +1,19 @@ +#!/bin/env fish +begin + set -l dir (status dirname) + source "$dir/../../Scripts/software.fish" + + function installSW + yayinst \ + docker \ + docker-compose \ + docker-buildx \ + docker-scan + end + + function configureSW -V dir + fish "$dir/../../../Common/Software/docker/main.fish" configure + end + + runInstaller $argv +end diff --git a/scripts/Common/Software/docker/main.fish b/scripts/Common/Software/docker/main.fish new file mode 100755 index 000000000..4afb1212d --- /dev/null +++ b/scripts/Common/Software/docker/main.fish @@ -0,0 +1,15 @@ +#!/bin/env fish +begin + set -l dir (status dirname) + source "$dir/../../Scripts/software.fish" + + function configureSW -V dir + sudo systemctl enable --now docker + end + + function userConfig -a name + sudo usermod -aG docker "$name" + end + + runInstaller $argv +end