Skip to content

Commit 31a5314

Browse files
Merge remote-tracking branch 'upstream/dev' into remove-dojo-async-task-base-task
2 parents 2c6101e + dfc865d commit 31a5314

76 files changed

Lines changed: 5307 additions & 880 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,3 @@ updates:
6464
versions:
6565
- ">= 4.a"
6666
- "< 5"
67-
- package-ecosystem: docker
68-
directory: "/"
69-
schedule:
70-
interval: weekly
71-
open-pull-requests-limit: 10
72-
target-branch: dev
73-

.github/renovate.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"components/package.json",
1414
"components/package-lock.json",
1515
"dojo/components/yarn.lock",
16-
"dojo/components/package.json",
17-
"Dockerfile**"
16+
"dojo/components/package.json"
1817
],
1918
"ignoreDeps": [],
2019
"packageRules": [{

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Hugo
1919
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
2020
with:
21-
hugo-version: '0.153.2' # renovate: datasource=github-releases depName=gohugoio/hugo
21+
hugo-version: '0.153.4' # renovate: datasource=github-releases depName=gohugoio/hugo
2222
extended: true
2323

2424
- name: Setup Node
@@ -46,13 +46,12 @@ jobs:
4646

4747
- name: Install dependencies
4848
run: cd docs && npm ci
49-
49+
5050
- name: Build production website
5151
env:
5252
HUGO_ENVIRONMENT: production
5353
HUGO_ENV: production
5454
run: cd docs && hugo --minify --gc --config config/production/hugo.toml
55-
5655
- name: Deploy
5756
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
5857
if: github.repository == 'DefectDojo/django-DefectDojo' # Deploy docs only in core repo, not in forks - it would just fail in fork

.github/workflows/release-x-manual-docker-containers.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
push: true
7777
file: ./Dockerfile.${{ matrix.docker-image }}-${{ matrix.os }}
7878
context: .
79+
target: release
7980
outputs: type=image,"name=${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}",push-by-digest=true,name-canonical=true
8081
cache-from: type=gha,scope=${{ matrix.docker-image}}-${{ matrix.os }}-${{ env.PLATFORM }}-${{ github.head_ref || github.ref_name }}
8182
cache-to: type=gha,mode=max,scope=${{ matrix.docker-image}}-${{ matrix.os }}-${{ env.PLATFORM }}-${{ github.head_ref || github.ref_name }}

.github/workflows/renovate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
uses: suzuki-shunsuke/github-action-renovate-config-validator@c22827f47f4f4a5364bdba19e1fe36907ef1318e # v1.1.1
2222
with:
2323
strict: "true"
24-
validator_version: 42.66.4 # renovate: datasource=github-releases depName=renovatebot/renovate
24+
validator_version: 42.66.11 # renovate: datasource=github-releases depName=renovatebot/renovate

.github/workflows/rest-framework-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
# no celery or initializer needed for unit tests
5555
- name: Unit tests
56-
timeout-minutes: 15
56+
timeout-minutes: 20
5757
run: docker compose up --no-deps --exit-code-from uwsgi uwsgi
5858
env:
5959
DJANGO_VERSION: ${{ matrix.os }}

.github/workflows/validate_docs_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Hugo
1313
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
1414
with:
15-
hugo-version: '0.153.2' # renovate: datasource=github-releases depName=gohugoio/hugo
15+
hugo-version: '0.153.4' # renovate: datasource=github-releases depName=gohugoio/hugo
1616
extended: true
1717

1818
- name: Setup Node

Dockerfile.django-alpine

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,26 +68,21 @@ RUN \
6868
COPY \
6969
docker/entrypoint-celery-beat.sh \
7070
docker/entrypoint-celery-worker.sh \
71-
docker/entrypoint-celery-worker-dev.sh \
7271
docker/entrypoint-initializer.sh \
7372
docker/entrypoint-first-boot.sh \
7473
docker/entrypoint-uwsgi.sh \
75-
docker/entrypoint-uwsgi-dev.sh \
76-
docker/entrypoint-unit-tests.sh \
77-
docker/entrypoint-unit-tests-devDocker.sh \
7874
docker/wait-for-it.sh \
7975
docker/secret-file-loader.sh \
8076
docker/reach_database.sh \
8177
docker/reach_broker.sh \
8278
docker/certs/* \
8379
/
84-
COPY wsgi.py manage.py docker/unit-tests.sh ./
80+
COPY wsgi.py manage.py ./
8581
COPY dojo/ ./dojo/
8682

8783
# Add extra fixtures to docker image which are loaded by the initializer
8884
COPY docker/extra_fixtures/* /app/dojo/fixtures/
8985

90-
COPY tests/ ./tests/
9186
RUN \
9287
# Remove placeholder copied from docker/certs
9388
rm -f /readme.txt && \
@@ -140,9 +135,20 @@ ENTRYPOINT ["/entrypoint-uwsgi.sh"]
140135

141136
FROM release AS development
142137
USER root
143-
COPY requirements-dev.txt ./
144-
RUN pip3 install --no-cache-dir -r requirements-dev.txt
138+
COPY \
139+
requirements-dev.txt \
140+
docker/unit-tests.sh \
141+
./
142+
COPY \
143+
docker/entrypoint-celery-worker-dev.sh \
144+
docker/entrypoint-uwsgi-dev.sh \
145+
docker/entrypoint-unit-tests.sh \
146+
docker/entrypoint-unit-tests-devDocker.sh \
147+
/
148+
RUN pip3 install --no-cache-dir -r requirements-dev.txt && \
149+
chmod 775 /*.sh
145150
USER ${uid}
146151

147152
FROM development AS django-unittests
148153
COPY unittests/ ./unittests/
154+
COPY tests/ ./tests/

Dockerfile.django-debian

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,26 +71,21 @@ RUN \
7171
COPY \
7272
docker/entrypoint-celery-beat.sh \
7373
docker/entrypoint-celery-worker.sh \
74-
docker/entrypoint-celery-worker-dev.sh \
7574
docker/entrypoint-initializer.sh \
7675
docker/entrypoint-first-boot.sh \
7776
docker/entrypoint-uwsgi.sh \
78-
docker/entrypoint-uwsgi-dev.sh \
79-
docker/entrypoint-unit-tests.sh \
80-
docker/entrypoint-unit-tests-devDocker.sh \
8177
docker/wait-for-it.sh \
8278
docker/secret-file-loader.sh \
8379
docker/reach_database.sh \
8480
docker/reach_broker.sh \
8581
docker/certs/* \
8682
/
87-
COPY wsgi.py manage.py docker/unit-tests.sh ./
83+
COPY wsgi.py manage.py ./
8884
COPY dojo/ ./dojo/
8985

9086
# Add extra fixtures to docker image which are loaded by the initializer
9187
COPY docker/extra_fixtures/* /app/dojo/fixtures/
9288

93-
COPY tests/ ./tests/
9489
RUN \
9590
# Remove placeholder copied from docker/certs
9691
rm -f /readme.txt && \
@@ -143,9 +138,20 @@ ENTRYPOINT ["/entrypoint-uwsgi.sh"]
143138

144139
FROM release AS development
145140
USER root
146-
COPY requirements-dev.txt ./
147-
RUN pip3 install --no-cache-dir -r requirements-dev.txt
141+
COPY \
142+
requirements-dev.txt \
143+
docker/unit-tests.sh \
144+
./
145+
COPY \
146+
docker/entrypoint-celery-worker-dev.sh \
147+
docker/entrypoint-uwsgi-dev.sh \
148+
docker/entrypoint-unit-tests.sh \
149+
docker/entrypoint-unit-tests-devDocker.sh \
150+
/
151+
RUN pip3 install --no-cache-dir -r requirements-dev.txt && \
152+
chmod 775 /*.sh
148153
USER ${uid}
149154

150155
FROM development AS django-unittests
151156
COPY unittests/ ./unittests/
157+
COPY tests/ ./tests/

Dockerfile.nginx-alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ COPY dojo/ ./dojo/
6363
# always collect static for debug toolbar as we can't make it dependant on env variables or build arguments without breaking docker layer caching
6464
RUN env DD_SECRET_KEY='.' DD_DJANGO_DEBUG_TOOLBAR_ENABLED=True python3 manage.py collectstatic --noinput --verbosity=2 && true
6565

66-
FROM nginx:1.29.3-alpine3.22@sha256:b3c656d55d7ad751196f21b7fd2e8d4da9cb430e32f646adcf92441b72f82b14
66+
FROM nginx:1.29.3-alpine3.22@sha256:b3c656d55d7ad751196f21b7fd2e8d4da9cb430e32f646adcf92441b72f82b14 AS release
6767
ARG uid=1001
6868
ARG appuser=defectdojo
6969
COPY --from=collectstatic /app/static/ /usr/share/nginx/html/static/

0 commit comments

Comments
 (0)