bird-house / birdhouse-deploy

Scripts and configurations to deploy the various birds and servers required for a full-fledged production platform
https://birdhouse-deploy.readthedocs.io/en/latest/
Apache License 2.0
4 stars 6 forks source link

:bug: [BUG]: `/components` endpoint is empty using auto-deploy #342

Closed fmigneault closed 1 year ago

fmigneault commented 1 year ago

Details

The /components endpoint is empty after auto-deploy:

{"components": []}

This does not happen when using pavics-compose.sh.

Originally posted by @mishaschwartz in https://github.com/bird-house/birdhouse-deploy/issues/329#issuecomment-1591259721

mishaschwartz commented 1 year ago

It looks like the issue is that grep in the pavics/docker-compose-git:docker-18.09.7-compose-1.25.1 image does not support searching for multiple patterns that are separated by newlines (see: https://github.com/bird-house/birdhouse-deploy/blob/1.26.4/birdhouse/scripts/get-components-json.include.sh#L58-L59).

The fix would be to replace BIRDHOUSE_DEPLOY_COMPONENTS_LIST_KNOWN which currently looks like:

components/cowbird
components/monitoring
components/scheduler
components/weaver
config/canarie-api
... etc.

with

-e components/cowbird -e components/monitoring -e components/scheduler -e components/weaver -e config/canarie-api

which should work with all versions of grep.

I can make this change shortly.