[Clean Up] - Removed Docker

This commit is contained in:
Blake Ridgway 2022-09-15 21:50:28 -05:00
parent 5ad59a2170
commit 2fc454e52c
9 changed files with 0 additions and 185 deletions

View file

View file

@ -1,24 +0,0 @@
#!/bin/bash
###########################################
# Setup Docker in Alpine with this Script #
###########################################
# Adds the community repo
sh -c 'echo "http://dl-cdn.alpinelinux.org/alpine/latest-stable/community/" >> /etc/apk/repositories'
# Updates apk to include the new repo we just add
echo "Time to Update"
apk -qq update
# Just as it says, it installs Docker to the Machine
echo "Currently installing Docker"
apk add -qq docker
# This section adds Docker dameon to boot
echo "Enabling Docker at Boot"
rc-update add docker boot
# This starts the Docker daemon
echo "Starting Docker"
service docker start

View file

@ -1,20 +0,0 @@
#########################################
# Set up Docker on CentOS based Distros #
#########################################
# Removes older installs of Docker
echo 'Removing older Docker versions'
sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
# Set ups the needed repos and deps
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# Installs DockerCE
sudo yum install docker docker-ce docker-ce-cli containerd.io
# Starts Docker
sudo systemctl start docker
# Tests to make sure Docker is running correctly
sudo docker run hello-world

View file

@ -1,34 +0,0 @@
#!/bin/bash
###################################################
# Setup Docker on Debian based installs with this #
###################################################
# Updates apt
echo "Updating Operating System"
apt update -y -qq
# Installs some pre-reqs
echo "Installing needed components for Docker"
apt install -y -qq apt-transport-https ca-certificates curl software-properties-common
# Adds GPG key for the Docker repo
echo "Adding GPGP Key for Docker"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
#Add the Docker repository to APT source
echo "Adding Docker repositories"
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
# Updates apt once more
echo "Updating After adding the Dependices"
apt update -y -qq
# Installs Docker
echo "Installing Docker"
apt install -y -qq docker-ce
# Makes sure that docker is started and made to run at boot
echo "Enable Docker at boot and starting Docker"
systemctl enable docker
systemctl start docker

View file

@ -1,9 +0,0 @@
MIT License
Copyright 2019 Blake Ridgway
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View file

@ -1,27 +0,0 @@
## Disclaimer
I am still currently learning BASH scripting and this is a new thing to me, I will end up making this script better and more user friendly as time comes.
The option-script.sh works on some of the Operating Systems but not all. I am faulting Dialog on this. I am starting work on getting the script to pull the type of uname the machine has and pull installers that way.
I might have to add a seperate script for AWS Linux machines if my CentOS script doesn't install for the machine
# Set up Docker on Linux Distros & macOS
The main purpose of this script is to be able to quickly install Docker on multiple Linux distros and there is an option to have it install for macOS.
# How to Use Script
How the script is supposed to be ran is to either download the subfolder you wish to install Docker on. The easiest way I suggest to have this ran is to download/clone the repo and run the option-script, this script has options of what you want to install on.
# Improvements
I am currently trying to figure out how to make it so it can auto-detect what OS architecture you are running, which would take out the entire need for user input.
But, that is to come in later revisions of this script.
# Extra
If you have a specific operating system you want added to this, please inform me and I will get it created and added to the script.

View file

@ -1,13 +0,0 @@
#!/bin/bash
echo "Installing Homebrew"
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Install Cask"
# Install Cask
brew install caskroom/cask/brew-cask
echo "Utilizing Cask to install Docker"
# Install docker toolbox
brew cask install docker-toolbox

View file

@ -1,13 +0,0 @@
#############################
# Set up Docker on openSUSE #
#############################
# Utilizes Zypper to install Docker and Docker Compose
echo "Installing Docker and Docker Compose!"
zypper install docker docker-compose
# Enables Docker to start on system boot
echo "Enabling Docker at boot!"
sudo systemctl enable docker

View file

@ -1,45 +0,0 @@
#!/bin/bash
#####################################################
# Option Based Script to Pick what OS to install on #
#####################################################
HEIGHT=15
WIDTH=40
CHOICE_HEIGHT=4
BACKTITLE="Docker Installation"
TITLE="Chose your Operating System"
MENU="Choose one of the following options:"
OPTIONS=(1 "Alpine Linux"
2 "Debian"
3 "CentOS"
4 "macOS"
5 "openSUSE")
CHOICE=$(dialog --clear \
--backtitle "$BACKTITLE" \
--title "$TITLE" \
--menu "$MENU" \
$HEIGHT $WIDTH $CHOICE_HEIGHT \
"${OPTIONS[@]}" \
2>&1 >/dev/tty)
clear
case $CHOICE in
1)
sh ./Alpine/alpine-docker.sh
;;
2)
sh ./Debian/debian-docker.sh
;;
3)
sh ./CentOS/centos-docker.sh
;;
4)
sh ./macOS/macos-docker.sh
;;
5)
sh ./openSUSE/opensuse-docker.sh
;;
esac