Prepare ENV: Java 17
Prepare ENV: Java 17
Prepare ENV
Java 17
Install open-jdk-17
Install Maven
• wget https://dlcdn.apache.org/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-
bin.tar.gz
• tar xzvf apache-maven-3.9.4-bin.tar.gz
• mv apache-maven-3.9.4 /opt/
• cd ~
• vim .profile
• M2_HOME='/opt/apache-maven-3.9.4'
PATH="$M2_HOME/bin:$PATH"
export PATH
• mvn –version
Install Docker
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-
04
Install Docker Compose
Recommended Installation:
https://linux.how2shout.com/install-and-configure-ansible-on-ubuntu-22-04-linux/
Build Project
cd javulna
You should be in same direcroty with the dockerfile ( means inside javulna)
https://aquasecurity.github.io/trivy/v0.18.3/installation/
https://github.com/DefectDojo/django-DefectDojo
Setting python 2
Run Python
This script for creating Product Type – Product – Engagement – Upload Trivy Scan json report
The you are required to read the script, upon getting a comprehensive understanding, modify the
variable host and token as yours, and modify the upload fuction with your needs.
Pyhton2.7 DefectDojo.py