Last active
November 10, 2015 18:19
-
-
Save jbek7/bef8c091c4141f62f5b0 to your computer and use it in GitHub Desktop.
Vagrant file for installing CentOS with JDK 1.7 & Maven 3.3
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
$script = <<SCRIPT | |
yum -y install git rpm rpm-build vim java-1.7.0-openjdk-devel | |
wget http://www.eu.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz | |
tar -xvzf apache-maven-3.3.3-bin.tar.gz | |
#Add Maven to PATH | |
echo export PATH=/home/vagrant/apache-maven-3.3.3/bin:\$PATH >> /home/vagrant/.bashrc | |
#Replace settings.xml, uncomment below | |
# yes | cp -rf /home/vagrant/.m2/settings.xml /home/vagrant/apache-maven-3.3.3/conf/ | |
SCRIPT | |
Vagrant.configure("2") do |config| | |
#config.vm.box = "CentOS5.11" | |
config.vm.box = "parallels/centos-6.6" | |
config.vm.synced_folder "~/.m2/", "/home/vagrant/.m2/" | |
config.vm.synced_folder "~/project/newman", "/home/vagrant/project/newman" | |
# Intsall rpms | |
config.vm.provision "shell", inline: $script | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment