-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cloudbuild] Build a patched defectdojo image
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM defectdojo/defectdojo-django | ||
|
||
COPY *.patch /tmp | ||
|
||
RUN git apply /tmp/*.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/dojo/management/commands/import_surveys.py | ||
+++ b/dojo/management/commands/import_surveys.py | ||
@@ -22,7 +22,7 @@ class Command(BaseCommand): | ||
created_question = TextQuestion.objects.create(optional=False, order=1, text='What is love?') | ||
# Get the ID used in this system | ||
with connection.cursor() as cursor: | ||
- cursor.execute("select polymorphic_ctype_id from defectDojo_engagement_survey_question;") | ||
+ cursor.execute('select polymorphic_ctype_id from "defectDojo_engagement_survey_question";') | ||
row = cursor.fetchone() | ||
ctype_id = row[0] | ||
# Find the current id in the surveys file |