@@ -121,6 +121,8 @@ function install_deps {
121121 install_deps_with_apt_get
122122 elif [[ " ${DISTRO} " == * Red* Hat* || " ${DISTRO} " == * CentOS* || " ${DISTRO} " == * RHEL* || " ${DISTRO} " == * Fedora* ]]; then
123123 install_deps_with_yum
124+ elif [[ " ${DISTRO} " == * Solus* ]]; then
125+ install_deps_with_eopkg
124126 else
125127 error " This script has not been updated for use with your linux distribution (${DISTRO} )"
126128 fi
@@ -226,6 +228,55 @@ function install_deps_with_apt_get {
226228 fi
227229}
228230
231+ # ------------------------------------------------------------------------------
232+ function install_deps_with_eopkg {
233+ logrevert " Checking for and updating 'eopkg' support on Linux"
234+ if [[ -z " $( which eopkg) " ]]; then
235+ error " 'eopkg' is not found. Thats the only linux installer I know, sorry."
236+ fi
237+ $SUDO eopkg ur Solus
238+
239+ # -- CURL:
240+ log " Installing/updating external dependency: curl"
241+ if [[ -z " $( which curl) " || " $FORCE " == true ]]; then
242+ $SUDO eopkg it curl
243+ fi
244+ # -- GIT:
245+ log " Installing/updating external dependency: git"
246+ if [[ -z " $( which git) " || " $FORCE " == true ]]; then
247+ $SUDO eopkg it git
248+ log " Please review any setup requirements for 'git' from: https://git-scm.com/downloads"
249+ fi
250+
251+ # -- Docker:
252+ log " Installing/updating external dependency: docker"
253+ if [[ -z " $( which docker) " || " $FORCE " == true ]]; then
254+ $SUDO eopkg it docker
255+ if [ " $SUDO " ]; then
256+ # Allow docker to run as a non-root user (if not running as root).
257+ sudo groupadd docker 2> /dev/null
258+ sudo usermod -aG docker $USER 2> /dev/null
259+ else
260+ log ' If you want to run docker without sudo run: "sudo groupadd docker && sudo usermod -aG docker $USER"'
261+ fi
262+ log " Please review any setup requirements for 'docker' from: https://docs.docker.com/engine/installation/"
263+ fi
264+
265+ # -- kubectl:
266+ log " Installing/updating external dependency: kubectl"
267+ if [[ -z " $( which kubectl) " || " $FORCE " == true ]]; then
268+ $SUDO eopkg it kubectl
269+ log " Please review any setup requirements for 'kubectl' from: https://kubernetes.io/docs/tasks/tools/install-kubectl/"
270+ fi
271+
272+ # -- helm:
273+ log " Installing/updating external dependency: helm"
274+ if [[ -z " $( which helm) " || " $FORCE " == true ]]; then
275+ curl -fsSL https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
276+ log " Please review any setup requirements for 'helm' from: https://github.com/kubernetes/helm/blob/master/docs/install.md"
277+ fi
278+ }
279+
229280# ------------------------------------------------------------------------------
230281function install_deps_with_yum {
231282 log " Checking for and updating 'yum' support on Linux"
@@ -418,7 +469,7 @@ function main {
418469 # Linux distro, e.g "Ubuntu", "RedHatEnterpriseWorkstation", "RedHatEnterpriseServer", "CentOS", "Debian"
419470 DISTRO=$( lsb_release -ds 2> /dev/null || cat /etc/* release 2> /dev/null | head -n1 || uname -om || echo " " )
420471 if [[ " $DISTRO " != * Ubuntu* && " $DISTRO " != * Red* Hat* && " $DISTRO " != * CentOS* && " $DISTRO " != * Debian* && " $DISTRO " != * RHEL* && " $DISTRO " != * Fedora* ]]; then
421- warn " Linux has only been tested on Ubuntu, RedHat, Centos, Debian and Fedora distrubutions please let us know if you use this utility on other Distros"
472+ warn " Linux has only been tested on Ubuntu, RedHat, Centos, Debian, Fedora and Solus distrubutions please let us know if you use this utility on other Distros"
422473 fi
423474 ;;
424475 * )
0 commit comments