Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to persist DefectDojo installation with godojo #85

Open
brunomcuesta opened this issue Oct 16, 2023 · 0 comments
Open

How to persist DefectDojo installation with godojo #85

brunomcuesta opened this issue Oct 16, 2023 · 0 comments

Comments

@brunomcuesta
Copy link

Hello!
I installed DefectDojo with godojo from a DockerFile. The problem is that if I stop the container and then start it again, everything that was installed with godojo is lost.
I'm using Podman Desktop. How can I persist the installation?

This is my DockerFile where I download an Ubuntu image and inside it I install DefectDojo with godojo.

# Download Ubuntu 22.04
FROM ubuntu:22.04

# Update and install packages
RUN apt update
RUN apt install wget unzip build-essential net-tools gawk bison screen systemd nano iputils-ping curl -y

# Downloading and unpacking godojo installer
WORKDIR /opt
RUN wget -c https://github.com/DefectDojo/godojo/releases/download/1.2.1/godojo-v1.2.1_standard.zip -O godojo-v1.2.1_standard.zip
RUN unzip godojo-v1.2.1_standard.zip

# Download scripts to start and stop defectdojo
# https://github.com/DefectDojo/godojo/tree/master/docs-and-scripts
WORKDIR /opt/standard
RUN wget -c https://raw.githubusercontent.com/DefectDojo/godojo/master/docs-and-scripts/dojo-start
RUN wget -c https://raw.githubusercontent.com/DefectDojo/godojo/master/docs-and-scripts/dojo-stop

# Giving permission to run
RUN chmod +x dojo-start
RUN chmod +x dojo-stop
RUN chmod +x godojo

# Copy env.prod file to image
COPY env.prod /opt/dojo/django-DefectDojo/dojo/settings/.env.prod

# Running godojo installer to generate a default dojoConfig.yml file
RUN ./godojo

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant