File tree 4 files changed +29
-6
lines changed
docker-services/setup-configuration
4 files changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ COPY ./backend/bin/celery_worker.sh /celery_worker.sh
71
71
COPY ./backend/bin/celery_beat.sh /celery_beat.sh
72
72
COPY ./backend/bin/celery_flower.sh /celery_flower.sh
73
73
COPY ./backend/bin/check_celery_worker_liveness.py /check_celery_worker_liveness.py
74
+ COPY ./backend/bin/setup_configuration.sh /setup_configuration.sh
74
75
COPY ./frontend/scripts/replace-envvars.sh /replace-envvars.sh
75
76
76
77
RUN mkdir -p /app/log /app/media /app/src/openarchiefbeheer/static/
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ until pg_isready; do
4
+ >&2 echo " Waiting for database connection..."
5
+ sleep 1
6
+ done
7
+
8
+ until python src/manage.py migrate --check; do
9
+ >&2 echo " Waiting for migrations to be done..."
10
+ sleep 1
11
+ done
12
+
13
+ # Run setup configuration
14
+ python src/manage.py setup_configuration --yaml-file setup_configuration/data.yaml
Original file line number Diff line number Diff line change @@ -3,43 +3,38 @@ zgw_consumers:
3
3
services :
4
4
- identifier : zaken-test
5
5
label : Open Zaak - Zaken API
6
- oas : http://localhost:8003/zaken/api/v1/schema/openapi.yaml
7
6
api_root : http://localhost:8003/zaken/api/v1/
8
7
api_type : zrc
9
8
auth_type : zgw
10
9
client_id : test-vcr
11
10
secret : test-vcr
12
11
- identifier : documenten-test
13
12
label : Open Zaak - Documenten API
14
- oas : http://localhost:8003/documenten/api/v1/schema/openapi.yaml
15
13
api_root : http://localhost:8003/documenten/api/v1/
16
14
api_type : drc
17
15
auth_type : zgw
18
16
client_id : test-vcr
19
17
secret : test-vcr
20
18
- identifier : catalogi-test
21
19
label : Open Zaak - Catalogi API
22
- oas : http://localhost:8003/catalogi/api/v1/schema/openapi.yaml
23
20
api_root : http://localhost:8003/catalogi/api/v1/
24
21
api_type : ztc
25
22
auth_type : zgw
26
23
client_id : test-vcr
27
24
secret : test-vcr
28
25
- identifier : besluiten-test
29
26
label : Open Zaak - Besluiten API
30
- oas : http://localhost:8003/besluiten/api/v1/schema/openapi.yaml
31
27
api_root : http://localhost:8003/besluiten/api/v1/
32
28
api_type : brc
33
29
auth_type : zgw
34
30
client_id : test-vcr
35
31
secret : test-vcr
36
32
- identifier : selectielijst
37
33
label : Open Zaak (public) - Selectielijst API
38
- oas : https://selectielijst.openzaak.nl/api/v1/schema/openapi.yaml
39
34
api_root : https://selectielijst.openzaak.nl/api/v1/
40
35
api_type : orc
41
36
auth_type : no_auth
42
37
43
38
api_configuration_enabled : True
44
39
api_configuration :
45
- selectielijst_service_identifier : selectielijst
40
+ selectielijst_service_identifier : selectielijst
Original file line number Diff line number Diff line change @@ -58,6 +58,19 @@ services:
58
58
networks :
59
59
- open-archiefbeheer-dev
60
60
61
+ web-init :
62
+ build : .
63
+ environment : *web_env
64
+ command : /setup_configuration.sh
65
+ volumes :
66
+ - ./backend/docker-services/setup-configuration:/app/setup_configuration
67
+ depends_on :
68
+ - db
69
+ - redis
70
+ - web
71
+ networks :
72
+ - open-archiefbeheer-dev
73
+
61
74
celery :
62
75
build : .
63
76
command : /celery_worker.sh
You can’t perform that action at this time.
0 commit comments