Skip to content

Commit

Permalink
Merge pull request #49 from Heshdude/update-docker-description
Browse files Browse the repository at this point in the history
Update docker description
  • Loading branch information
Heshdude committed Aug 16, 2020
2 parents 0d8b8f2 + c43a246 commit 067feaa
Show file tree
Hide file tree
Showing 10 changed files with 136 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ This will install Git on your machine!
|Pip3 |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/pip3 |
|gCloud |No |No |No |No |No |Yes |https://installer.to/gcloud |
|Nginx |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/nginx |
|Helm |No |No |No |No |No |Yes |https://installer.to/helm |
|Fabric |No |No |No |No |No |Yes |https://installer.to/hlf |
|Docker |Yes|Yes|No |No |No |No |https://installer.to/docker |
|eksctl |No |No |No |No |No |Yes |https://installer.to/eksctl |
Expand Down
5 changes: 5 additions & 0 deletions installers.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ installers = "dnf,pacman,apt,apk,yum"
name = "Nginx"
description = "Nginx server"

[helm]
installers = "curl"
name = "Helm"
description = "The package manager for Kubernetes"

[hlf]
installers = "curl"
name = "Fabric"
Expand Down
2 changes: 2 additions & 0 deletions installers/atom/installer.min.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
;YUM_CMD=$(which yum) # yum package manager for RHEL & CentOS;DNF_CMD=$(which dnf) # dnf package manager for new RHEL & CentOS;APT_GET_CMD=$(which apt-get) # apt package manager for Ubuntu & other Debian based distributions;PACMAN_CMD=$(which pacman) # pacman package manager for ArchLinux;APK_CMD=$(which apk) # apk package manager for Alpine;;if [ ! -z $APT_GET_CMD ]; then;wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -;sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list';sudo apt-get update;sudo apt-get install atom;elif [ ! -z $DNF_CMD ]; then;sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey;sudo sh -c 'echo -e "[Atom]; name=Atom Editor; baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch; enabled=1; gpgcheck=0; repo_gpgcheck=1; gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo';sudo dnf install atom;elif [ ! -z $YUM_CMD ]; then;sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey;sudo sh -c 'echo -e "[Atom]; name=Atom Editor; baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch; enabled=1; gpgcheck=0; repo_gpgcheck=1; gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo';sudo dnf install atom;elif [ ! -z $PACMAN_CMD ]; then;sudo pacman -S atom;elif [ ! -z $APK_CMD ]; then;sudo apk add atom;else echo "Couldn't install package";exit 1;;fi;;atom --version;;
31 changes: 31 additions & 0 deletions installers/atom/installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

YUM_CMD=$(which yum) # yum package manager for RHEL & CentOS
DNF_CMD=$(which dnf) # dnf package manager for new RHEL & CentOS
APT_GET_CMD=$(which apt-get) # apt package manager for Ubuntu & other Debian based distributions
PACMAN_CMD=$(which pacman) # pacman package manager for ArchLinux
APK_CMD=$(which apk) # apk package manager for Alpine

if [ ! -z $APT_GET_CMD ]; then
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
sudo apt-get update
sudo apt-get install atom
elif [ ! -z $DNF_CMD ]; then
sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
sudo sh -c 'echo -e "[Atom]\nname=Atom Editor\nbaseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo'
sudo dnf install atom
elif [ ! -z $YUM_CMD ]; then
sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
sudo sh -c 'echo -e "[Atom]\nname=Atom Editor\nbaseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo'
sudo dnf install atom
elif [ ! -z $PACMAN_CMD ]; then
sudo pacman -S atom
elif [ ! -z $APK_CMD ]; then
sudo apk add atom
else
echo "Couldn't install package"
exit 1;
fi

atom --version
35 changes: 35 additions & 0 deletions installers/atom/installer.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name = "Atom"
shortname = "atom"
description = "A hackable text editor for the 21st Century"

[apt]
sh = """
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | @sudo apt-key add -
@sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
@sudo apt-get update
@sudo apt-get install atom
"""

[yum]
sh = """
@sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
@sudo sh -c 'echo -e "[Atom]\nname=Atom Editor\nbaseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo'
@sudo dnf install atom
"""

[pacman]
sh = """
@sudo pacman -S atom
"""

[apk]
sh = """
@sudo apk add atom
"""

[dnf]
sh = """
@sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
@sudo sh -c 'echo -e "[Atom]\nname=Atom Editor\nbaseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo'
@sudo dnf install atom
"""
2 changes: 1 addition & 1 deletion installers/docker/installer.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Docker"
shortname = "docker"
description = "Docker"
description = "Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers"

[apt]
sh = """
Expand Down
2 changes: 2 additions & 0 deletions installers/helm/installer.min.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
;CURL_CMD=$(which curl);YUM_CMD=$(which yum);DNF_CMD=$(which dnf);APT_GET_CMD=$(which apt-get);PACMAN_CMD=$(which pacman);APK_CMD=$(which apk);GIT_CMD=$(which git);SUDO_CMD=$(which sudo);;USER="$(id -un 2>/dev/null || true)";SUDO='';if [ "$USER" != 'root' ]; then;if [ ! -z $SUDO_CMD ]; then;SUDO='sudo';else cat >&2 <<-'EOF';Error: this installer needs the ability to run commands as root.;We are unable to find "sudo". Make sure its available to make this happen;EOF;exit 1;fi;fi;;RESET='';RED='';GREEN='';YELLOW='';log () { echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"; };info () { log "$GREEN INFO$RESET $1"; };warn () { log "$YELLOW WARN$RESET $1"; };error () { log "$RED ERROR$RESET $1"; };;if [ ! -z $CURL_CMD ]; then;info "Downloading Helm";$SUDO curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3;$SUDO chmod +x get_helm.sh;;info "Installing";$SUDO ./get_helm.sh;$SUDO rm ./get_helm.sh;;else echo "Couldn't install package";exit 1;;fi;
55 changes: 55 additions & 0 deletions installers/helm/installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/bin/sh

CURL_CMD=$(which curl)
YUM_CMD=$(which yum)
DNF_CMD=$(which dnf)
APT_GET_CMD=$(which apt-get)
PACMAN_CMD=$(which pacman)
APK_CMD=$(which apk)
GIT_CMD=$(which git)
SUDO_CMD=$(which sudo)

USER="$(id -un 2>/dev/null || true)"
SUDO=''
if [ "$USER" != 'root' ]; then
if [ ! -z $SUDO_CMD ]; then
SUDO='sudo'
else
cat >&2 <<-'EOF'
Error: this installer needs the ability to run commands as root.
We are unable to find "sudo". Make sure its available to make this happen
EOF
exit 1
fi
fi

RESET=''
RED=''
GREEN=''
YELLOW=''
log () {
echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"
}
info () {
log "$GREEN INFO$RESET $1"
}
warn () {
log "$YELLOW WARN$RESET $1"
}
error () {
log "$RED ERROR$RESET $1"
}

if [ ! -z $CURL_CMD ]; then
info "Downloading Helm"
$SUDO curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
$SUDO chmod +x get_helm.sh

info "Installing"
$SUDO ./get_helm.sh
$SUDO rm ./get_helm.sh

else
echo "Couldn't install package"
exit 1;
fi
2 changes: 1 addition & 1 deletion installers/hlf/installer.min.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
;CURL_CMD=$(which curl);YUM_CMD=$(which yum);DNF_CMD=$(which dnf);APT_GET_CMD=$(which apt-get);PACMAN_CMD=$(which pacman);APK_CMD=$(which apk);GIT_CMD=$(which git);SUDO_CMD=$(which sudo);;USER="$(id -un 2>/dev/null || true)";SUDO='';if [ "$USER" != 'root' ]; then;if [ ! -z $SUDO_CMD ]; then;SUDO='sudo';else cat >&2 <<-'EOF';Error: this installer needs the ability to run commands as root.;We are unable to find "sudo". Make sure its available to make this happen;EOF;exit 1;fi;fi;;RESET='';RED='';GREEN='';YELLOW='';log () { echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"; };info () { log "$GREEN INFO$RESET $1"; };warn () { log "$YELLOW WARN$RESET $1"; };error () { log "$RED ERROR$RESET $1"; };;if [ ! -z $CURL_CMD ]; then;if ! command -v docker;then;warn "docker could not be found";curl https://installer.to/docker | bash;else info "docker found";fi;;info "downloading Fabric........";curl -sSL http://bit.ly/2ysbOFE -o bootstrap.sh;chmod 755 ./bootstrap.sh;$SUDO bash ./bootstrap.sh;;$SUDO cp ./fabric-samples/bin/* /usr/local/bin;;;else echo "Couldn't install package";exit 1;;fi;
;CURL_CMD=$(which curl);YUM_CMD=$(which yum);DNF_CMD=$(which dnf);APT_GET_CMD=$(which apt-get);PACMAN_CMD=$(which pacman);APK_CMD=$(which apk);GIT_CMD=$(which git);SUDO_CMD=$(which sudo);;USER="$(id -un 2>/dev/null || true)";SUDO='';if [ "$USER" != 'root' ]; then;if [ ! -z $SUDO_CMD ]; then;SUDO='sudo';else cat >&2 <<-'EOF';Error: this installer needs the ability to run commands as root.;We are unable to find "sudo". Make sure its available to make this happen;EOF;exit 1;fi;fi;;RESET='';RED='';GREEN='';YELLOW='';log () { echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"; };info () { log "$GREEN INFO$RESET $1"; };warn () { log "$YELLOW WARN$RESET $1"; };error () { log "$RED ERROR$RESET $1"; };;if [ ! -z $CURL_CMD ]; then;if ! command -v docker;then;warn "Docker could not be found";curl https://installer.to/docker | bash;else info "Docker found";fi;;info "Downloading Fabric........";curl -sSL http://bit.ly/2ysbOFE -o bootstrap.sh;chmod 755 ./bootstrap.sh;$SUDO bash ./bootstrap.sh;;$SUDO cp ./fabric-samples/bin/* /usr/local/bin;;else echo "Couldn't install package";exit 1;;fi;
7 changes: 3 additions & 4 deletions installers/hlf/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,19 @@ error () {
if [ ! -z $CURL_CMD ]; then
if ! command -v docker
then
warn "docker could not be found"
warn "Docker could not be found"
curl https://installer.to/docker | bash
else
info "docker found"
info "Docker found"
fi

info "downloading Fabric........"
info "Downloading Fabric........"
curl -sSL http://bit.ly/2ysbOFE -o bootstrap.sh
chmod 755 ./bootstrap.sh
$SUDO bash ./bootstrap.sh

$SUDO cp ./fabric-samples/bin/* /usr/local/bin


else
echo "Couldn't install package"
exit 1;
Expand Down

0 comments on commit 067feaa

Please sign in to comment.