Skip to content

Commit

Permalink
Added Vagrantfile to automate installation of SecurityShepherd (OWASP…
Browse files Browse the repository at this point in the history
…#442)

* added Vagrantfile

* added provisioner script
  • Loading branch information
d78ui98 authored and markdenihan committed Oct 15, 2018
1 parent e8cce39 commit 653843e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|

config.vm.box = "ubuntu/xenial64"

config.vm.network "public_network", ip: "192.168.1.10", host_ip: "127.0.0.1"

config.vm.provision "shell", path: "provisioning/install.sh"

end
32 changes: 32 additions & 0 deletions provisioning/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash -x

# pre
sudo apt-get update -y
sudo apt-get install -y maven
sudo apt-get install -y openjdk-8-jdk

# install docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get -y update
sudo apt-get -y install docker-ce

# install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo gpasswd -a $USER docker

# Download Securityshephard
cd /home/vagrant/
git clone https://github.com/OWASP/SecurityShepherd.git
cd SecurityShepherd

# Run maven and build docker images
mvn -Pdocker clean install -DskipTests
sudo docker-compose up


0 comments on commit 653843e

Please sign in to comment.