Created
March 5, 2017 12:47
-
-
Save JonZeolla/4abcbfee96437b948ab46b6782f00caa to your computer and use it in GitHub Desktop.
Setup mac quick-dev on macOS
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
#!/usr/bin/env bash | |
case "${OSTYPE}" in | |
darwin*) | |
version="${OSTYPE:6}" | |
if [[ "${version}" == "16" ]]; then | |
supported="true" | |
else | |
supported="false" | |
fi | |
;; | |
*) | |
supported="false" ;; | |
esac | |
if [[ "${supported}" == "false" ]]; then | |
echo -e "Your OS is not supported" | |
exit 1 | |
fi | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew cask install vagrant virtualbox java | |
brew install maven git | |
curl https://gist.githubusercontent.com/JonZeolla/8144b13bd1032ae4e05b954ef3176297/raw/ce2498b1392a661f95d5f16c8524c0c1866847b1/metron-ansible.rb > ansible.rb | |
brew install ansible.rb | |
sudo mkdir -p /usr/local/metron/ | |
sudo chown -R ${USER}: /usr/local/metron | |
cd /usr/local/metron | |
git clone https://github.com/apache/incubator-metron . | |
git checkout Metron_0.3.1 | |
mvn clean package -DskipTests | |
cd /usr/local/metron/site-book | |
bin/generate-md.sh && mvn site:site | |
cd /usr/local/metron/metron-deployment/vagrant/quick-dev-platform | |
vagrant plugin install vagrant-hostmanager | |
vagrant up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment