Skip to content

Commit

Permalink
Merge pull request #34 from daveegrant/master
Browse files Browse the repository at this point in the history
Fixes for #30 and #13
  • Loading branch information
grtjn committed Apr 14, 2015
2 parents 29bcb3b + 18accc5 commit 3516c42
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh text eol=lf
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ You first need to download and install prerequisites and mlvagrant itself:
- Download and install [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
- Download and install [Vagrant](https://www.vagrantup.com/downloads.html)
- Create /space/software (`sudo mkdir -p /space/software`)
- **For Windows**: (`c:\space\software`)
- Download [MarkLogic 8.0-1.1 for CentOS](http://developer.marklogic.com/products) (login required)
- Download [MLCP 1.3-1 binaries](http://developer.marklogic.com/download/binaries/mlcp/mlcp-Hadoop1-1.3-1-bin.zip)
- Move MarkLogic rpm, and MLCP zip to /space/software (no need to unzip MLCP!)
- Download mlvagrant (`git clone https://github.com/grtjn/mlvagrant.git`)
- Create /opt/vagrant (`sudo mkdir -p /opt/vagrant`)
- **For Windows**: (`c:\opt\vagrant`)
- Copy mlvagrant/opt/vagrant to /opt/vagrant

Above steps need to taken only ones. For every project you wish to create VMs, you simply take these steps:
Expand Down
27 changes: 21 additions & 6 deletions opt/vagrant/install-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,27 @@ echo "running $0 $@"
rpm --import https://fedoraproject.org/static/0608B895.txt
rpm -Uvh http://download-i2.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install nodejs npm --enablerepo=epel
if [ ! hash bower 2>/dev/null]; then
npm install -g bower

if hash bower 2>/dev/null; then
echo 'Bower is already installed'
else
npm install -g bower
fi
if [ ! hash gulp 2>/dev/null]; then
npm install -g gulp

if hash gulp 2>/dev/null; then
echo 'Gulp is already installed'
else
npm install -g gulp
fi
if [ ! hash forever 2>/dev/null]; then
npm install -g forever

if hash forever 2>/dev/null; then
echo 'Forever is already installed'
else
npm install -g forever
fi

if hash ruby 2>/dev/null; then
echo 'Ruby is already installed'
else
yum -y install ruby
fi

0 comments on commit 3516c42

Please sign in to comment.