diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fc78ee..f8224c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ ``` drc restart migrations drc restart delta-producer-publication-graph-maintainer resource +drc pull vendor-management-consumer; drc up -d vendor-management-consumer +drc restart db resource ``` ## 1.37.3 (2025-11-14) diff --git a/README.md b/README.md index c98fd33..8239e8c 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,31 @@ drc up -d sh scripts/reset-elastic.sh ``` +#### Setup vendors sync +Note: this is assuming you have never ran this before. +``` +drc down; +``` +Update `docker-compose.override.yml` to: +``` + vendor-management-consumer: + environment: + DCR_SYNC_BASE_URL: "https://dev.loket.lblod.info/" # or another endpoint + DCR_DISABLE_INITIAL_SYNC: "true" + BATCH_SIZE: "500" + DCR_SECRET_KEY: ">" # fill in key for selected endpoint + DCR_SYNC_LOGIN_ENDPOINT: "https://dev.loket.lblod.info/sync/vendor-management/login" # login for selected endpoint +``` +Then: +``` +drc up -d migrations +drc up -d db vendor-management-consumer +``` +Finally, put the stack back up. +``` +drc up -d +``` + ### Setting up the delta-producers related services To make sure the app can share data, producers need to be set up. There is an intial sync, that is potentially very expensive, and must be started manually