Skip to content

Commit

Permalink
Updated scripts and tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Dec 11, 2023
1 parent df4c9b3 commit 85f7fd3
Show file tree
Hide file tree
Showing 20 changed files with 38 additions and 0 deletions.
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 -}}

0 comments on commit 85f7fd3

Please sign in to comment.