Skip to content

Commit 067feaa

Browse files
authored
Merge pull request #49 from Heshdude/update-docker-description
Update docker description
2 parents 0d8b8f2 + c43a246 commit 067feaa

File tree

10 files changed

+136
-6
lines changed

10 files changed

+136
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ This will install Git on your machine!
2828
|Pip3 |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/pip3 |
2929
|gCloud |No |No |No |No |No |Yes |https://installer.to/gcloud |
3030
|Nginx |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/nginx |
31+
|Helm |No |No |No |No |No |Yes |https://installer.to/helm |
3132
|Fabric |No |No |No |No |No |Yes |https://installer.to/hlf |
3233
|Docker |Yes|Yes|No |No |No |No |https://installer.to/docker |
3334
|eksctl |No |No |No |No |No |Yes |https://installer.to/eksctl |

installers.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ installers = "dnf,pacman,apt,apk,yum"
2828
name = "Nginx"
2929
description = "Nginx server"
3030

31+
[helm]
32+
installers = "curl"
33+
name = "Helm"
34+
description = "The package manager for Kubernetes"
35+
3136
[hlf]
3237
installers = "curl"
3338
name = "Fabric"

installers/atom/installer.min.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
;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;;

installers/atom/installer.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/sh
2+
3+
YUM_CMD=$(which yum) # yum package manager for RHEL & CentOS
4+
DNF_CMD=$(which dnf) # dnf package manager for new RHEL & CentOS
5+
APT_GET_CMD=$(which apt-get) # apt package manager for Ubuntu & other Debian based distributions
6+
PACMAN_CMD=$(which pacman) # pacman package manager for ArchLinux
7+
APK_CMD=$(which apk) # apk package manager for Alpine
8+
9+
if [ ! -z $APT_GET_CMD ]; then
10+
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
11+
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
12+
sudo apt-get update
13+
sudo apt-get install atom
14+
elif [ ! -z $DNF_CMD ]; then
15+
sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
16+
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'
17+
sudo dnf install atom
18+
elif [ ! -z $YUM_CMD ]; then
19+
sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
20+
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'
21+
sudo dnf install atom
22+
elif [ ! -z $PACMAN_CMD ]; then
23+
sudo pacman -S atom
24+
elif [ ! -z $APK_CMD ]; then
25+
sudo apk add atom
26+
else
27+
echo "Couldn't install package"
28+
exit 1;
29+
fi
30+
31+
atom --version

installers/atom/installer.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name = "Atom"
2+
shortname = "atom"
3+
description = "A hackable text editor for the 21st Century"
4+
5+
[apt]
6+
sh = """
7+
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | @sudo apt-key add -
8+
@sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
9+
@sudo apt-get update
10+
@sudo apt-get install atom
11+
"""
12+
13+
[yum]
14+
sh = """
15+
@sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
16+
@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'
17+
@sudo dnf install atom
18+
"""
19+
20+
[pacman]
21+
sh = """
22+
@sudo pacman -S atom
23+
"""
24+
25+
[apk]
26+
sh = """
27+
@sudo apk add atom
28+
"""
29+
30+
[dnf]
31+
sh = """
32+
@sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
33+
@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'
34+
@sudo dnf install atom
35+
"""

installers/docker/installer.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Docker"
22
shortname = "docker"
3-
description = "Docker"
3+
description = "Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers"
44

55
[apt]
66
sh = """

installers/helm/installer.min.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
;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;

installers/helm/installer.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/bin/sh
2+
3+
CURL_CMD=$(which curl)
4+
YUM_CMD=$(which yum)
5+
DNF_CMD=$(which dnf)
6+
APT_GET_CMD=$(which apt-get)
7+
PACMAN_CMD=$(which pacman)
8+
APK_CMD=$(which apk)
9+
GIT_CMD=$(which git)
10+
SUDO_CMD=$(which sudo)
11+
12+
USER="$(id -un 2>/dev/null || true)"
13+
SUDO=''
14+
if [ "$USER" != 'root' ]; then
15+
if [ ! -z $SUDO_CMD ]; then
16+
SUDO='sudo'
17+
else
18+
cat >&2 <<-'EOF'
19+
Error: this installer needs the ability to run commands as root.
20+
We are unable to find "sudo". Make sure its available to make this happen
21+
EOF
22+
exit 1
23+
fi
24+
fi
25+
26+
RESET=''
27+
RED=''
28+
GREEN=''
29+
YELLOW=''
30+
log () {
31+
echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"
32+
}
33+
info () {
34+
log "$GREEN INFO$RESET $1"
35+
}
36+
warn () {
37+
log "$YELLOW WARN$RESET $1"
38+
}
39+
error () {
40+
log "$RED ERROR$RESET $1"
41+
}
42+
43+
if [ ! -z $CURL_CMD ]; then
44+
info "Downloading Helm"
45+
$SUDO curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
46+
$SUDO chmod +x get_helm.sh
47+
48+
info "Installing"
49+
$SUDO ./get_helm.sh
50+
$SUDO rm ./get_helm.sh
51+
52+
else
53+
echo "Couldn't install package"
54+
exit 1;
55+
fi

installers/hlf/installer.min.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
;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;
2+
;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;

installers/hlf/installer.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,19 @@ error () {
4343
if [ ! -z $CURL_CMD ]; then
4444
if ! command -v docker
4545
then
46-
warn "docker could not be found"
46+
warn "Docker could not be found"
4747
curl https://installer.to/docker | bash
4848
else
49-
info "docker found"
49+
info "Docker found"
5050
fi
5151

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

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

59-
6059
else
6160
echo "Couldn't install package"
6261
exit 1;

0 commit comments

Comments
 (0)