lots of fixes, new music stuff
[distro-setup] / disabled / docker
1
2 ### begin docker install ####
3 if isdeb; then
4 # https://docs.docker.com/engine/install/ubuntu/
5
6 sudo mkdir -p /etc/apt/keyrings
7
8 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
9
10 # lsb_release -cs -> debian-codename-compat
11 echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(debian-codename-compat) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
12
13 p update
14
15
16 pi software-properties-common apt-transport-https
17 curl -fsSL https://download.docker.com/linux/$(distro-name-compat)/gpg | sudo apt-key add -
18 url=https://download.docker.com/linux/$(distro-name-compat)
19 l="deb [arch=amd64] $url $codename_compat stable"
20
21 if ! grep -xFq "$l" /etc/apt/sources.list{,.d/*.list}; then
22 sudo add-apt-repository "$l"
23 p update
24 fi
25 # docker eats up a fair amount of cpu when doing nothing, so don't enable it unless
26 # we really need it.
27 pi-nostart docker-ce
28 # and docker is even more crap, it ignores that it shouldnt start
29 ser stop docker
30 ser disable docker
31 case $HOSTNAME in
32 li|lj) sgo docker ;;
33 esac
34 fi
35 ### end docker install ####