Vagrant: Also provision IntelliJ and Eclipse

This commit is contained in:
Nanne Baars 2016-10-10 11:29:37 +02:00
parent 9d93220c39
commit dddcc9675d
3 changed files with 13 additions and 5 deletions

View File

@ -6,7 +6,7 @@ Vagrant.configure(2) do |config|
vb.gui = true vb.gui = true
vb.memory = "4096" vb.memory = "4096"
vb.cpus = 2 vb.cpus = 2
vb.name = "WebGoat-Developers" vb.name = "WebGoat-Development"
vb.customize ["modifyvm", :id, "--nictype1", "virtio"] vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
end end
@ -17,7 +17,7 @@ Vagrant.configure(2) do |config|
s.privileged = true s.privileged = true
end end
config.vm.provision :shell, inline: <<-SHELL config.vm.provision :shell, privileged:false, inline: <<-SHELL
echo -e "Cloning the WebGoat container repository" echo -e "Cloning the WebGoat container repository"
git clone https://github.com/WebGoat/WebGoat.git git clone https://github.com/WebGoat/WebGoat.git
echo -e "Cloning the WebGoat Lessons repository" echo -e "Cloning the WebGoat Lessons repository"

View File

@ -1,13 +1,13 @@
#For now use the same as for developers but start WebGoat #For now use the same as for developers but start WebGoat
#In the future we can add Docker as well and then Vagrant can start the #In the future we can add Docker as well and then Vagrant can start the
#Docker container #Docker container or Chef which setups the Tomcat
Vagrant.configure(2) do |config| Vagrant.configure(2) do |config|
config.vm.box = "boxcutter/ubuntu1604-desktop" config.vm.box = "boxcutter/ubuntu1604-desktop"
config.vm.network :forwarded_port, guest: 8080, host: 9999 config.vm.network :forwarded_port, guest: 8080, host: 9999
config.vm.provider "virtualbox" do |vb| config.vm.provider "virtualbox" do |vb|
vb.gui = false vb.gui = false
vb.memory = "4096" vb.memory = "2048"
vb.cpus = 2 vb.cpus = 2
vb.name = "WebGoat-Users" vb.name = "WebGoat-Users"
vb.customize ["modifyvm", :id, "--nictype1", "virtio"] vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

View File

@ -38,7 +38,6 @@ sudo chown -R root:root /usr/lib/jvm/jdk1.8.0_101
echo "export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_101" >> /home/vagrant/.bashrc echo "export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_101" >> /home/vagrant/.bashrc
## Maven ## Maven
echo "Installing Maven.." echo "Installing Maven.."
sudo apt-get install -y maven sudo apt-get install -y maven
@ -51,3 +50,12 @@ cd tools
wget https://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz wget https://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz
tar xvfx ZAP_2.5.0_Linux.tar.gz tar xvfx ZAP_2.5.0_Linux.tar.gz
rm -rf ZAP_2.5.0_Linux.tar.gz rm -rf ZAP_2.5.0_Linux.tar.gz
## IntelliJ
cd /home/vagrant/tools
wget https://download.jetbrains.com/idea/ideaIC-2016.2.4.tar.gz
tar xvfz ideaIC-2016.2.4.tar.gz
rm -rf ideaIC-2016.2.4.tar.gz
## Eclipse
sudo apt-get -y install eclipse