Skip to content

Commit 0974301

Browse files
committed
Updated libraries.
1 parent 777f9bf commit 0974301

File tree

19 files changed

+936
-795
lines changed

19 files changed

+936
-795
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco
5353
RUN pip install pip -U
5454

5555
WORKDIR /app
56-
COPY ./cache /app/cache
56+
# COPY ./cache /app/cache
5757
COPY ./bin/docker_start.sh /start.sh
5858
COPY ./bin/wait_for_db.sh /wait_for_db.sh
5959
COPY ./bin/celery_worker.sh /celery_worker.sh
@@ -73,7 +73,6 @@ COPY --from=frontend-build /app/src/openklant/static/css /app/src/openklant/stat
7373
COPY --from=frontend-build /app/src/openklant/static/js /app/src/openklant/static/js
7474

7575
# Stage 3.2 - Copy source code
76-
COPY ./config /app/config
7776
COPY ./src /app/src
7877

7978
RUN groupadd -g 1000 openklant \
@@ -103,8 +102,8 @@ LABEL org.label-schema.vcs-ref=$COMMIT_HASH \
103102
# * warm_cache -> writes to the filesystem cache so that orgs don't need to open the
104103
# firewall to github
105104
RUN python src/manage.py collectstatic --noinput \
106-
&& python src/manage.py compilemessages \
107-
&& python src/manage.py warm_cache
105+
&& python src/manage.py compilemessages
106+
# && python src/manage.py warm_cache
108107

109108
EXPOSE 8000
110109
CMD ["/start.sh"]

bin/compile_dependencies.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,22 @@ export CUSTOM_COMPILE_COMMAND="./bin/compile_dependencies.sh"
2323
# Base (& prod) deps
2424
pip-compile \
2525
--no-emit-index-url \
26-
--allow-unsafe \
2726
"$@" \
2827
requirements/base.in
2928

3029
# Dependencies for testing
3130
pip-compile \
3231
--no-emit-index-url \
3332
--output-file requirements/ci.txt \
34-
--allow-unsafe \
3533
"$@" \
3634
requirements/base.txt \
3735
requirements/test-tools.in \
3836
requirements/docs.in
3937

40-
# Dev dependencies - exact same set as CI + some extra tooling
38+
# Dev depedencies - exact same set as CI + some extra tooling
4139
pip-compile \
4240
--no-emit-index-url \
4341
--output-file requirements/dev.txt \
44-
--allow-unsafe \
4542
"$@" \
4643
requirements/ci.txt \
47-
requirements/dev.in
44+
requirements/dev.in

requirements/base.in

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,53 @@
11
# Core python libraries
2-
psycopg2 # database driver
3-
pytz # handle timezones
2+
celery
3+
click<8.1.0 # click>=8.1.0 causes issues with black https://github.com/psf/black/issues/2964
4+
jq
5+
jsonschema
6+
dictdiffer # Used to show diffs for audittrails in admin
7+
markdown # used to render some markdown in code to html
8+
psycopg2
9+
python-dateutil
410
python-dotenv # environment variables for secrets
511
python-decouple # processing of envvar configs
12+
requests
13+
requests-cache
14+
zgw-consumers
15+
self-certifi
16+
bleach
617

718
# Framework libraries
8-
django~=4.1.0
9-
django-admin-index
19+
django~=3.2.23
1020
django-axes
11-
django-better-admin-arrayfield
12-
django-choices
1321
django-cors-headers
14-
django-cors-middleware
15-
django-filter
22+
django-db-logger
23+
django-extra-views
24+
django-log-outgoing-requests
25+
django-loose-fk
1626
django-markup
1727
django-redis
18-
django-rosetta
19-
django-sniplates
28+
django-privates
29+
django-relativedelta
2030
mozilla-django-oidc-db
21-
# maykin-django-two-factor-auth
22-
# phonenumbers
23-
24-
# API libraries
25-
djangorestframework
26-
# django-extra-fields
27-
# django-filter
28-
# drf-yasg # api documentation
2931

30-
commonground-api-common==1.11.0
31-
gemma-zds-client
32-
zgw-consumers
32+
# Admin and UI libraries
33+
django-admin-index
34+
django-sniplates
35+
django-better-admin-arrayfield
3336

34-
# task queue
35-
celery
37+
# API libraries
38+
djangorestframework~=3.12.0
39+
drf-extra-fields
40+
django-filter
41+
djangorestframework-camel-case~=1.2.0
42+
drf-yasg
43+
drf-writable-nested
44+
commonground-api-common
45+
notifications-api-common
46+
humanize
47+
djangorestframework-inclusions
3648

3749
# WSGI servers & monitoring - production oriented
3850
uwsgi
39-
sentry-sdk # error monitoring
40-
elastic-apm # Elastic APM integration
51+
sentry_sdk # error monitoring sentry
52+
flower # task monitoring
53+
elastic-apm # Elastic APM integration

0 commit comments

Comments
 (0)