Skip to content

MikhailMS/preflight-check

Repository files navigation

Preflight-check bash script

Bash script to check if my workstation has everything I need for development

Currently checks for:

  • Applications / Languages
    • HTTP and HTTPS proxies presence and whether or not they working
    • Internet connectivity
    • Java presence
    • Python presence
    • Ruby presence
    • Vim presence
    • Git presence
    • Git Flow presence
    • Docker presence
    • Vagrant presence
    • Homebrew presence
    • rbenv presence
    • wget presence
    • Maven presence
    • Gradle presence
    • Bundler presence
    • Miniconda presence
    • iTerm2 presence
    • gem presence
    • Ruby-on-Rails presence
    • Adshell presence
    • jenv presence
    • bash_profile, bashrc files presence
    • Chef client presence
    • Ansible presence
    • ChefDK presence
    • Rust presence
  • Removes duplicates from PATH variable
  • Different checks, depending on OS:
    • Mac OS
    • GNU/Linux/RedHat/Centos
  • Downloads missing components:
    • Mac OS
    • GNU/Linux
    • Red Hat/Centos

Some improvements could be made in the future and extra functionality could be added

  • Think about project structure, as at the moment it is not well build
  • Erase duplicated code as much as possible

Installation

  1. Download the code
# If git command installed
git clone https://github.com/MikhailMS/preflight-check

# If git command is not found
curl -LO https://github.com/MikhailMS/preflight-check/archive/master.zip
unzip master.zip -d preflight-checkp

# If you are working from behind the proxies, use following command
curl -x http://your_proxy_server:8080 -LO https://github.com/MikhailMS/preflight-check/archive/master.zip
unzip master.zip -d preflight-check
  1. Run scripts
cd preflight-check

# Execute with sudo
sudo bash preflight-check.sh

# Or as sudo enabled user
. preflight-check.sh
  1. To update, execute git pull, when in preflight-check folder

Notes:

  1. Tested on MacOs 10.13 High Sierra, Centos 7

About

Bash script to check if my workstation has everything I need for development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages