We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0f2907 + f77298a commit 10ec5e6Copy full SHA for 10ec5e6
Dockerfile
@@ -3,6 +3,23 @@ MAINTAINER Matt Tesauro <[email protected]>
3
4
# # # Create a single Docker image running DefectDojo and all dependencies
5
6
+# Setup database environment variables. Used to setup an external
7
+# database, and is optional.
8
+# Set a variable using build args.
9
+# i.e. `docker build --build-arg DBNAME="db.foopy.com" ...`
10
+
11
+ARG SQLHOST=""
12
+ARG SQLPORT=""
13
+ARG SQLUSER=""
14
+ARG SQLPWD=""
15
+ARG DBNAME=""
16
17
+ENV SQLHOST=$SQLHOST
18
+ENV SQLPORT=$SQLPORT
19
+ENV SQLUSER=$SQLUSER
20
+ENV SQLPWD=$SQLPWD
21
+ENV DBNAME=$DBNAME
22
23
# Update and install basic requirements;
24
# Install mysql-server already at this place, since we want to avoid
25
# interactivity when creating a Docker image;
0 commit comments