Skip to content

Commit

Permalink
Setup's scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ber committed Aug 31, 2022
1 parent 88ca069 commit 31b7fef
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions 01_setup/02_macos_homebrew_install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
1 change: 1 addition & 0 deletions 01_setup/03_macos_default_platform
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export DOCKER_DEFAULT_PLATFORM=linux/amd64
2 changes: 2 additions & 0 deletions 01_setup/04_debian_docker_install1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
1 change: 1 addition & 0 deletions 01_setup/05_debian_docker_install2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
2 changes: 2 additions & 0 deletions 01_setup/06_debian_docker_install3
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo "deb [arch=amd64 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
Empty file.
2 changes: 2 additions & 0 deletions 01_setup/08_fedora_install1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
1 change: 1 addition & 0 deletions 01_setup/09_fedora_install2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo dnf install docker-ce docker-ce-cli containerd.io
2 changes: 2 additions & 0 deletions 01_setup/10_centos_install1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo yum -y install yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
1 change: 1 addition & 0 deletions 01_setup/11_centos_install2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo yum install docker-ce docker-ce-cli containerd.io
1 change: 1 addition & 0 deletions 01_setup/12_amazon_linux21
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh ec2-user@ec2-ip-address-dns-name-here
1 change: 1 addition & 0 deletions 01_setup/13_amazon_linux22
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo yum install docker
1 change: 1 addition & 0 deletions 01_setup/14_amazon_linux23
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo usermod -a -G docker ec2-user
1 change: 1 addition & 0 deletions 01_setup/15_amazon_linux24
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id ec2-user
2 changes: 2 additions & 0 deletions 01_setup/16_amazon_linux25
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Reload a Linux user's group assignments to docker w/o logout
newgrp docker
1 change: 1 addition & 0 deletions 01_setup/17_docker_without_sudo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo usermod -aG docker $USER
1 change: 1 addition & 0 deletions 01_setup/18_sanity1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker --version
2 changes: 2 additions & 0 deletions 01_setup/19_sanity2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo systemctl status docker.service
sudo systemctl status containerd.service
2 changes: 2 additions & 0 deletions 01_setup/20_sanity3
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo systemctl start docker.service
sudo systemctl start containerd.service
1 change: 1 addition & 0 deletions 01_setup/21_sanity4
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker run hello-world:latest

0 comments on commit 31b7fef

Please sign in to comment.