File tree Expand file tree Collapse file tree 8 files changed +30
-21
lines changed
mapper/src/lib/components/forms Expand file tree Collapse file tree 8 files changed +30
-21
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,6 @@ services:
346
346
fmtm-db :
347
347
# Temp workaround until https://github.com/postgis/docker-postgis/issues/216
348
348
image : " ghcr.io/hotosm/postgis:${POSTGIS_TAG:-14-3.5-alpine}"
349
- command : -c 'wal_level=logical'
350
349
volumes :
351
350
- fmtm_db_data:/var/lib/postgresql/data/
352
351
environment :
@@ -358,6 +357,7 @@ services:
358
357
networks :
359
358
- fmtm-net
360
359
restart : " unless-stopped"
360
+ command : -c 'max_connections=300' -c 'wal_level=logical'
361
361
healthcheck :
362
362
test : pg_isready -U ${FMTM_DB_USER:-fmtm} -d ${FMTM_DB_NAME:-fmtm}
363
363
start_period : 5s
@@ -388,7 +388,6 @@ services:
388
388
central-db :
389
389
profiles : ["", "central"]
390
390
image : " ghcr.io/hotosm/postgis:${POSTGIS_TAG:-14-3.5-alpine}"
391
- command : -c 'max_connections=300' -c 'wal_level=logical'
392
391
volumes :
393
392
- central_db_data:/var/lib/postgresql/data/
394
393
environment :
@@ -400,6 +399,8 @@ services:
400
399
networks :
401
400
- fmtm-net
402
401
restart : " unless-stopped"
402
+ # Not really required during local dev - enable if testing issues
403
+ # command: -c 'max_connections=300'
403
404
healthcheck :
404
405
test : pg_isready -U ${CENTRAL_DB_USER:-odk} -d ${CENTRAL_DB_NAME:-odk}
405
406
start_period : 5s
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ gen_current_env() {
34
34
done < <( grep -vE ' ^\s*#|^\s*$' .env)
35
35
fi
36
36
37
- # Generate compose file (note this is currently only for development branch )
38
- export GIT_BRANCH=development
37
+ # Generate compose file (default development, but can be overridden )
38
+ export GIT_BRANCH=" ${GIT_BRANCH :- development} "
39
39
echo " "
40
40
echo " Generated compose file:"
41
41
echo " "
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ wait_for_db() {
8
8
9
9
for (( i = 0 ; i < max_retries; i++ )) ; do
10
10
if < /dev/tcp/" ${FMTM_DB_HOST:- fmtm-db} " /5432; then
11
- echo " Database is available."
11
+ echo " ✓ Database is available."
12
12
return 0 # Database is available, exit successfully
13
13
fi
14
14
echo " Database is not yet available. Retrying in ${retry_interval} seconds..."
@@ -23,6 +23,9 @@ wait_for_s3() {
23
23
max_retries=10
24
24
retry_interval=5
25
25
26
+ # First wait a few seconds for Minio
27
+ sleep 5
28
+ echo " Testing S3 connection to ${S3_ENDPOINT} "
26
29
for (( i = 0 ; i < max_retries; i++ )) ; do
27
30
http_status=$( curl --silent --head --write-out " %{http_code}" --output /dev/null " ${S3_ENDPOINT} /minio/health/live" )
28
31
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ wait_for_db() {
65
65
66
66
for (( i = 0 ; i < max_retries; i++ )) ; do
67
67
if < /dev/tcp/" ${db_host} " /5432; then
68
- echo " Database is available."
68
+ echo " ✓ Database is available."
69
69
return 0 # Database is available, exit successfully
70
70
fi
71
71
echo " Database is not yet available. Retrying in ${retry_interval} seconds..."
@@ -80,6 +80,9 @@ wait_for_s3() {
80
80
max_retries=10
81
81
retry_interval=5
82
82
83
+ # First wait a few seconds for Minio
84
+ sleep 5
85
+ echo " Testing S3 connection to ${S3_ENDPOINT} "
83
86
for (( i = 0 ; i < max_retries; i++ )) ; do
84
87
http_status=$( curl --silent --head --write-out " %{http_code}" --output /dev/null " ${S3_ENDPOINT} /minio/health/live" )
85
88
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ wait_for_db() {
81
81
82
82
for (( i = 0 ; i < max_retries; i++ )) ; do
83
83
if < /dev/tcp/" ${FMTM_DB_HOST:- fmtm-db} " /5432; then
84
- echo " Database is available."
84
+ echo " ✓ Database is available."
85
85
return 0 # Database is available, exit successfully
86
86
fi
87
87
echo " Database is not yet available. Retrying in ${retry_interval} seconds..."
@@ -96,6 +96,9 @@ wait_for_s3() {
96
96
max_retries=10
97
97
retry_interval=5
98
98
99
+ # First wait a few seconds for Minio
100
+ sleep 5
101
+ echo " Testing S3 connection to ${S3_ENDPOINT} "
99
102
for (( i = 0 ; i < max_retries; i++ )) ; do
100
103
http_status=$( curl --silent --head --write-out " %{http_code}" --output /dev/null " ${S3_ENDPOINT} /minio/health/live" )
101
104
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ dependencies = [
34
34
" pydantic-settings==2.6.0" ,
35
35
" geojson-pydantic==1.1.2" ,
36
36
" python-multipart==0.0.12" ,
37
- " psycopg[pool]> =3.2.3" ,
37
+ " psycopg[pool]= =3.2.3" ,
38
38
" geojson==3.1.0" ,
39
39
" shapely==2.0.6" ,
40
40
" pyxform==2.1.1" ,
@@ -45,14 +45,14 @@ dependencies = [
45
45
" sozipfile==0.3.2" ,
46
46
" cryptography==43.0.3" ,
47
47
" pyjwt==2.9.0" ,
48
+ " aiosmtplib==4.0.1" ,
49
+ " markdown==3.8" ,
48
50
" osm-fieldwork" ,
49
51
" osm-login-python==2.0.0" ,
50
52
" osm-rawdata==0.4.2" ,
51
53
" fmtm-splitter==2.0.0" ,
52
54
" pg-nearest-city==0.2.1" ,
53
55
" pyodk" ,
54
- " aiosmtplib>=4.0.1" ,
55
- " markdown>=3.8" ,
56
56
]
57
57
readme = " ../../README.md"
58
58
license = {text = " AGPL-3.0-only" }
Original file line number Diff line number Diff line change 254
254
style:height =" 100%"
255
255
use:handleIframe
256
256
title =" odk-web-forms-wrapper"
257
- src ={` . /web-forms.html?projectId=${projectId }&entityId=${entityId }&formXml=${formXml }&odkWebFormUrl=${odkWebFormUrl }&formMedia=${encodeURIComponent (JSON .stringify (formMedia ))}&cssFile=${commonStore .config ?.cssFileWebformsOverride || ' ' }` }
257
+ src ={` /web-forms.html?projectId=${projectId }&entityId=${entityId }&formXml=${formXml }&odkWebFormUrl=${odkWebFormUrl }&formMedia=${encodeURIComponent (JSON .stringify (formMedia ))}&cssFile=${commonStore .config ?.cssFileWebformsOverride || ' ' } ` }
258
258
></iframe >
259
259
{/if }
260
260
{/ key }
You can’t perform that action at this time.
0 commit comments