Add scripts for installing docker
This commit is contained in:
parent
21fa6708d7
commit
15e725ffaf
3 changed files with 35 additions and 0 deletions
|
@ -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
|
||||
|
|
19
scripts/Arch/Software/docker/main.fish
Executable file
19
scripts/Arch/Software/docker/main.fish
Executable file
|
@ -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
|
15
scripts/Common/Software/docker/main.fish
Executable file
15
scripts/Common/Software/docker/main.fish
Executable file
|
@ -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
|
Loading…
Reference in a new issue