Refactored installation scripts

This commit is contained in:
Michele Cereda
2022-04-18 01:12:37 +02:00
parent a202013a33
commit ec5e83b62f
12 changed files with 82 additions and 22 deletions

7
scripts/apt/ansible.install.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env sh
export \
DEBIAN_FRONTEND='noninteractive' \
LC_ALL='C'
sudo apt update && sudo apt --assume-yes install ansible ansible-lint

16
scripts/apt/docker.install.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env sh
# source: https://docs.docker.com/engine/install/ubuntu/
export \
DEBIAN_FRONTEND='noninteractive' \
LC_ALL='C'
sudo apt --assume-yes purge docker docker-engine docker.io containerd runc
curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
| sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
| sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update && sudo apt --assume-yes install docker-ce

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env sh
export \
DEBIAN_FRONTEND='noninteractive' \
LC_ALL='C'
if [[ "$APT_KEYS" != "" ]]
then
sudo apt-key adv --recv-keys $APT_KEYS
fi

13
scripts/apt/keybase.install.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env sh
# https://keybase.io/docs/the_app/install_linux
export \
DEBIAN_FRONTEND='noninteractive' \
LC_ALL='C'
curl https://prerelease.keybase.io/keybase_amd64.deb \
--output /tmp/keybase_amd64.deb \
--silent
sudo apt update && sudo apt install --assume-yes /tmp/keybase_amd64.deb
rm keybase_amd64.deb

14
scripts/apt/vscodium.install.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env sh
export \
DEBIAN_FRONTEND='noninteractive' \
LC_ALL='C'
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \
| gpg --dearmor \
| sudo dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium main' \
| sudo tee /etc/apt/sources.list.d/vscodium.list
sudo apt update && sudo apt --assume-yes install codium

7
scripts/apt/zsh.install.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env sh
export \
DEBIAN_FRONTEND='noninteractive' \
LC_ALL='C'
sudo apt --assume-yes install fzf zsh