Last active
September 19, 2015 15:11
-
-
Save gasserk/155d7cb10705b316b3f5 to your computer and use it in GitHub Desktop.
Izanamee Spot-check Scripts (as Bash/Zsh Aliases for Mac OS X Host and Izanamee Guests)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Spot-check Izanamee host pre-requisites | |
# | |
alias checkHostIzEnv='git --version && vagrant -v && VBoxManage -v ; top -l 1 | grep ^PhysMem ; df -h' | |
# | |
# Spot-check Izanamee headless guest provisioning baseline | |
# | |
# Note: You may need to remove the line continuations ("\") in Bash shell versions < 4.0 | |
# | |
alias checkGuestHdIzEnv='vagrant ssh -c \ | |
"echo Checking kernel and distro... && uname -a && lsb_release -a && \ | |
echo && echo Checking docker version and image list... && docker -v && docker images && \ | |
echo && echo Checking VCS... && git --version && svn --version --quiet && \ | |
echo && echo Checking Python Env... && python --version && python3 --version && \ | |
echo && echo Checking Node and NPM Env... && node -v && npm -v && \ | |
echo && echo Checking Java Default 7 Env... && sudo update-java-alternatives -s java-7-oracle && java -version && mvn -v && gradle -v && | |
echo && echo Switching to Java 8 Env... && sudo update-java-alternatives -s java-8-oracle && java -version && | |
echo && echo Checking Tomcat 7 Env... && \ | |
sudo chmod +x /usr/share/apache-tomcat-7*/bin/*.sh && \ | |
sudo /usr/share/apache-tomcat-7*/bin/version.sh && \ | |
echo && echo Checking Tomcat 8 Env... && \ | |
sudo chmod +x /usr/share/apache-tomcat-8*/bin/*.sh && \ | |
sudo /usr/share/apache-tomcat-8*/bin/version.sh"' | |
# | |
# Spot-check Izanamee desktop guest provisioning baseline (run headless script plus this script) | |
# Note: check STS manually | |
# Note: firefox may throw an error without a GUI but version will still be provided when installed correctly | |
# | |
# Note: You may need to remove the line continuations ("\") in Bash shell versions < 4.0 | |
# | |
alias checkGuestIzEnvDk='vagrant ssh -c \ | |
"echo Checking Browsers... && google-chrome --version && firefox -v"' |
Updated with comment regarding Bash 4 line continuations.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated with chmod +x for tomcat .sh bin scripts