-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df4c9b3
commit 85f7fd3
Showing
20 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 38 additions & 0 deletions
38
root/.chezmoiscripts/linux/run_onchange_before_install-docker.sh.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{ if and (eq .osid "linux-pop" "linux-ubuntu") .docker -}} | ||
|
||
#!/usr/bin/env sh | ||
|
||
# https://docs.docker.com/engine/install/ubuntu/ | ||
|
||
sudo apt-get install \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
lsb-release | ||
|
||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --batch --dearmor --yes -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-get update | ||
|
||
sudo apt-get install -y \ | ||
containerd.io \ | ||
docker-ce \ | ||
docker-ce-cli | ||
|
||
sudo usermod $USER --append --group docker | ||
|
||
{{ else if and (eq .osid "linux-arch") .docker -}} | ||
|
||
#!/usr/bin/env sh | ||
|
||
sudo pacman -S --noconfirm docker | ||
|
||
sudo systemctl enable docker.service | ||
|
||
sudo usermod $USER --append --group docker | ||
|
||
{{ end -}} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.