Skip to content

Commit 90a704c

Browse files
authored
Update installer scripts, README.md & installers.toml
1 parent 94dd0ea commit 90a704c

File tree

10 files changed

+198
-5
lines changed

10 files changed

+198
-5
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@ This will install Git on your machine!
2525
|NodeJS |Yes|Yes|No |Yes|Yes|No |https://installer.to/node |
2626
|Kubectl |Yes|Yes|No |No |No |Yes |https://installer.to/kubectl|
2727
|Git |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/git |
28+
|Pip3 |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/pip3 |
2829
|gCloud |No |No |No |No |No |Yes |https://installer.to/gcloud |
2930
|Nginx |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/nginx |
31+
|Helm |No |No |No |No |No |Yes |https://installer.to/helm |
3032
|Fabric |No |No |No |No |No |Yes |https://installer.to/hlf |
3133
|Docker |Yes|Yes|No |No |No |No |https://installer.to/docker |
34+
|eksctl |No |No |No |No |No |Yes |https://installer.to/eksctl |
3235
|cTop |No |No |No |No |No |Yes |https://installer.to/ctop |
3336
|Hello |Yes|Yes|Yes |Yes|Yes|Yes |https://installer.to/hello |
3437
|Python 3|Yes|Yes|Yes |Yes|Yes|No |https://installer.to/python3|

installers.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ installers = "apt,yum,pacman,dnf,apk"
1313
name = "Git"
1414
description = "Git SVM"
1515

16+
[pip3]
17+
installers = "dnf,pacman,apt,apk,yum"
18+
name = "Pip3"
19+
description = "Pip is the package installer for Python"
20+
1621
[gcloud]
1722
installers = "curl"
1823
name = "gCloud"
@@ -23,6 +28,11 @@ installers = "dnf,pacman,apt,apk,yum"
2328
name = "Nginx"
2429
description = "Nginx server"
2530

31+
[helm]
32+
installers = "curl"
33+
name = "Helm"
34+
description = "The package manager for Kubernetes"
35+
2636
[hlf]
2737
installers = "curl"
2838
name = "Fabric"
@@ -33,6 +43,11 @@ installers = "apt,yum"
3343
name = "Docker"
3444
description = "Docker"
3545

46+
[eksctl]
47+
installers = "curl"
48+
name = "eksctl"
49+
description = "A simple CLI tool for creating clusters on EKS"
50+
3651
[ctop]
3752
installers = "curl"
3853
name = "cTop"

installers/eksctl/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 eksctl";$SUDO curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp;info "Setting up at /usr/local/bin/eksctl";$SUDO mv /tmp/eksctl /usr/local/bin;$SUDO rm /tmp/eksctl;;else echo "Couldn't install package";exit 1;;fi;

installers/eksctl/installer.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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 eksctl"
45+
$SUDO curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
46+
info "Setting up at /usr/local/bin/eksctl"
47+
$SUDO mv /tmp/eksctl /usr/local/bin
48+
$SUDO rm /tmp/eksctl
49+
50+
else
51+
echo "Couldn't install package"
52+
exit 1;
53+
fi

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;

installers/pip3/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 $DNF_CMD ]; then;$SUDO dnf install python3-pip;;elif [ ! -z $PACMAN_CMD ]; then;pacman -S python-pip;;elif [ ! -z $APT_GET_CMD ]; then;$SUDO apt-get update;$SUDO apt install python3-pip;;elif [ ! -z $APK_CMD ]; then;$SUDO apk add py3-pip;;elif [ ! -z $YUM_CMD ]; then;$SUDO yum install python3-pip;;else echo "Couldn't install package";exit 1;;fi;

installers/pip3/installer.sh

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 $DNF_CMD ]; then
44+
$SUDO dnf install python3-pip
45+
46+
elif [ ! -z $PACMAN_CMD ]; then
47+
pacman -S python-pip
48+
49+
elif [ ! -z $APT_GET_CMD ]; then
50+
$SUDO apt-get update
51+
$SUDO apt install python3-pip
52+
53+
elif [ ! -z $APK_CMD ]; then
54+
$SUDO apk add py3-pip
55+
56+
elif [ ! -z $YUM_CMD ]; then
57+
$SUDO yum install python3-pip
58+
59+
else
60+
echo "Couldn't install package"
61+
exit 1;
62+
fi

0 commit comments

Comments
 (0)