-
Notifications
You must be signed in to change notification settings - Fork 459
Create a Security Shepherd Dev Environment
Paul McCann edited this page Nov 30, 2022
·
7 revisions
There are a number of ways you can setup a Shepherd Dev Environment;
- Using Eclipse (Recommended)
- Build / Deploy with Maven
- Build / Deplay with docker-compose
This guide will show you how to create an Eclipse IDE Dev environment. The prerequisites are;
- Eclipse for Java EE Developers
- Java JDK 8
- Tomcat 8.5 (Zip Recommended)
- git
- A MariaDB 10.6 instance
- Use git to pull down the dev branch
- Open Eclipse
- Import the Security Shepherd source code folder as a project
- Right Click the Security Shepherd Project and choose Maven -> Refresh Project
- Open the Servers tab in Eclipse
- Right click the pane and select New -> Server
- Create a new Tomcat 8.5 Server using the zip download from Tomcat
- Once created, right click the server and go to Add and Remove
- Add the Security Shepherd Application
- Right click the server and Start it
- Go to http://127.0.0.1:8080/owaspSecurityShepherd (Or your server setting)
- You will see the Setup Wizard for Security Shepherd
- Add your MariaDB details to this (Ensure the user will have access from your application server's domain name / ip)
- Click Submit
- Your dev environment is done. As you update code in eclipse it will be automatically deployed to tomcat instantly.
Using docker as a database (depends on #596)
- Edit
.env
file
DB_SERVER_IP=0.0.0.0
DB_BIND_ADDRESS=0.0.0.0
- Edit
SecurityShepherd/src/test/java/testUtils/TestProperties.java
createMysqlResource("<IP_of_Docker_Server>", 3306, "core", "root", "CowSaysMoo");
createMongoResource("<IP_of_Docker_Server>", 27017, "shepherdGames", 10000, 0, 30000);