Last active
January 29, 2016 11:58
-
-
Save stuarthendren/a1c12f9ceccafc4baa0f to your computer and use it in GitHub Desktop.
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 | |
yum update -y | |
echo "Installing Maven" | |
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
yum install -y apache-maven | |
echo "Installing docker" | |
yum install -y docker | |
sudo service docker start | |
sudo usermod -a -G docker ec2-user | |
echo "installing jdk 8 (requires http://download.oracle.com/otn-pub/java/jdk/8u71-b15/jdk-8u71-linux-x64.rpm)" | |
rpm -ivh jdk-8u71-linux-x64.rpm | |
export JAVA_HOME=/usr/java/jdk1.8.0_71/ | |
export PATH=$PATH:$JAVA_HOME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment