BCDevOps / bcdk

BC Developer Kit
Apache License 2.0
6 stars 15 forks source link

installer script WIP #16

Closed ActionAnalytics closed 4 years ago

ActionAnalytics commented 5 years ago

Starting to automate the readme.md

Next steps would be to detect the OS, install the correct package manager (brew, choco, apt, yum, rpm), and have the correct package manager in a variable.

https://stackoverflow.com/questions/394230/how-to-detect-the-os-from-a-bash-script

case "$OSTYPE" in solaris) echo "SOLARIS" ;; darwin) echo "OSX" ;; linux) echo "LINUX" ;; bsd) echo "BSD" ;; msys) echo "WINDOWS" ;; ) echo "unknown: $OSTYPE" ;; esac

Detect the platform (similar to $OSTYPE)

OS="uname" case $OS in 'Linux') OS='Linux' alias ls='ls --color=auto' ;; 'FreeBSD') OS='FreeBSD' alias ls='ls -G' ;; 'WindowsNT') OS='Windows' ;; 'Darwin') OS='Mac' ;; 'SunOS') OS='Solaris' ;; 'AIX') ;; *) ;; esac

ActionAnalytics commented 5 years ago

ASTF version manager might do all of this for us

cvarjao commented 4 years ago

I don't want get into how to install node. I will leave it up to the user. We already have a npm wrapper (npmw) that takes care of running inside a container which is the one we support. Any other OS and variations is up to each developer. @patricksimonian , can we reject/close this?