Skip to content

Commit

Permalink
add QA_ENV flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Sep 11, 2024
1 parent b87e484 commit dbe0f70
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
6 changes: 3 additions & 3 deletions infrastructure/clear-all-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ docker run --rm --network=$NETWORK appropriate/curl curl -X POST "http://influxd
#-----------------------------
docker run --rm --network=$NETWORK --entrypoint=/bin/sh minio/mc -c "\
mc alias set myminio http://minio:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD && \
mc rm --recursive --force myminio/${STACK}__ocrvs && \
mc rb myminio/${STACK}__ocrvs && \
mc mb myminio/${STACK}__ocrvs"
mc rm --recursive --force myminio/${STACK}--ocrvs && \
mc rb myminio/${STACK}--ocrvs && \
mc mb myminio/${STACK}--ocrvs"

# Delete all data from metabase
#-----------------------------
Expand Down
18 changes: 18 additions & 0 deletions infrastructure/docker-compose.app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
hearth:
image: opencrvs/hearth:1.1.0
environment:
- QA_ENV=true
- HOST=0.0.0.0
- mongodb__url=mongodb://${STACK}__hearth:${HEARTH_MONGODB_PASSWORD}@mongo1/${STACK}__hearth-dev?replicaSet=rs0
- logger__level=warn
Expand Down Expand Up @@ -31,6 +32,7 @@ services:
secrets:
- jwt-public-key.{{STACK}}.{{ts}}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- NODE_ENV=production
- LANGUAGES=en,fr
Expand Down Expand Up @@ -84,6 +86,7 @@ services:
- 'traefik.http.routers.${STACK}__block-dashboard-queries.middlewares=${STACK}__block-internal-routes'
replicas: 1
environment:
- QA_ENV=true
- HOST=0.0.0.0
- NODE_ENV=production
- FHIR_URL=http://hearth:3447/fhir
Expand Down Expand Up @@ -122,6 +125,7 @@ services:
login:
image: opencrvs/ocrvs-login:${VERSION}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- COUNTRY_CONFIG_URL=https://countryconfig.${STACK}.{{hostname}}
- CONTENT_SECURITY_POLICY_WILDCARD=${CONTENT_SECURITY_POLICY_WILDCARD}
Expand Down Expand Up @@ -154,6 +158,7 @@ services:
client:
image: opencrvs/ocrvs-client:${VERSION}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- DECLARED_DECLARATION_SEARCH_QUERY_COUNT=100
- COUNTRY_CONFIG_URL=https://countryconfig.${STACK}.{{hostname}}
Expand Down Expand Up @@ -194,6 +199,7 @@ services:
secrets:
- jwt-public-key.{{STACK}}.{{ts}}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- NODE_ENV=production
- LANGUAGES=en,fr
Expand Down Expand Up @@ -250,6 +256,7 @@ services:
secrets:
- jwt-public-key.{{STACK}}.{{ts}}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- NODE_ENV=production
- LANGUAGES=en,fr
Expand Down Expand Up @@ -284,6 +291,7 @@ services:
secrets:
- jwt-public-key.{{STACK}}.{{ts}}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-}
Expand Down Expand Up @@ -314,6 +322,7 @@ services:
volumes:
- /data/vsexport:/usr/src/app/packages/metrics/src/scripts
environment:
- QA_ENV=true
- HOST=0.0.0.0
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-}
Expand Down Expand Up @@ -353,6 +362,7 @@ services:
- jwt-public-key.{{STACK}}.{{ts}}
- jwt-private-key.{{STACK}}.{{ts}}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-}
Expand Down Expand Up @@ -399,6 +409,7 @@ services:
secrets:
- jwt-public-key.{{STACK}}.{{ts}}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-}
Expand Down Expand Up @@ -429,6 +440,7 @@ services:
secrets:
- jwt-public-key.{{STACK}}.{{ts}}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-}
Expand Down Expand Up @@ -470,6 +482,7 @@ services:
secrets:
- jwt-public-key.{{STACK}}.{{ts}}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-}
Expand Down Expand Up @@ -525,6 +538,7 @@ services:
secrets:
- jwt-public-key.{{STACK}}.{{ts}}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- NODE_ENV=production
- APN_SERVICE_URL=http://apm-server:8200
Expand All @@ -548,6 +562,7 @@ services:
scheduler:
image: opencrvs/ocrvs-scheduler:${VERSION}
environment:
- QA_ENV=true
- NODE_ENV=production
- METRICS_URL=http://metrics:1050
deploy:
Expand All @@ -566,6 +581,7 @@ services:
migration:
image: opencrvs/ocrvs-migration:${VERSION}
environment:
- QA_ENV=true
- HOST=0.0.0.0
- ELASTICSEARCH_INDEX_NAME=ocrvs--${STACK}
- USER_MGNT_MONGO_URL=mongodb://${STACK}__user-mgnt:${USER_MGNT_MONGODB_PASSWORD}@mongo1/${STACK}__user-mgnt?replicaSet=rs0
Expand Down Expand Up @@ -614,6 +630,7 @@ services:
restart_policy:
condition: none
environment:
- QA_ENV=true
- HOST=0.0.0.0
- REPLICAS=1
- DATABASE_PREFIX=${STACK}
Expand Down Expand Up @@ -646,6 +663,7 @@ services:
- overlay_net
- dependencies_overlay_net
environment:
- QA_ENV=true
- HOST=0.0.0.0
# Note that only mongo1 is used here on purpose for all environments
# https://discourse.metabase.com/t/solved-add-mongodb-replicaset-database/7404/2
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/elasticsearch/roles/search_user.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cluster": ["manage"],
"indices": [
{
"names": ["ocrvs", "ocrvs-*"],
"names": ["*__ocrvs", "ocrvs", "ocrvs-*"],
"privileges": [
"write",
"create",
Expand Down

0 comments on commit dbe0f70

Please sign in to comment.