Last active
December 19, 2015 07:29
-
-
Save bilal/5919452 to your computer and use it in GitHub Desktop.
Setting up and installing seyren on ec2
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 -ex | |
yum install java-1.7.0-openjdk-devel.x86_64 -y | |
#### Install MongoDB #### | |
cd /opt | |
curl http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.2.0.tgz > mongo.tgz | |
tar -zxvf mongo.tgz | |
mv mongodb-linux-x86_64-2.2.0 mongodb | |
mkdir -p /data/db | |
mkdir -p /var/log/mongodb | |
cat > /etc/mongod.conf << EOF | |
# Append logs to /var/log/mongodb/mongo.log | |
logpath = /var/log/mongodb/mongo.log | |
logappend = true | |
fork = true | |
EOF | |
cd mongodb/bin | |
chmod 700 ./mongod | |
./mongod --config /etc/mongod.conf | |
#### Install Seyren #### | |
cd /opt | |
wget -O /opt/maven.tar.gz http://apache.parentingamerica.com/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz | |
wget -O /opt/seyren.tar https://github.com/scobal/seyren/tarball/seyren-parent-0.1 | |
tar -zxvf maven.tar.gz | |
tar -xvf seyren.tar | |
export M2_HOME=/opt/apache-maven-3.0.5 | |
export M2=$M2_HOME/bin | |
export PATH=$M2:$PATH | |
cd scobal-seyren* | |
mvn clean package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment