Skip to content

wazo-platform/wazo-dird

Repository files navigation

wazo-dird

Build Status

wazo-dird is a service to query many directory sources simultaneously using a simple REST API.

Docker

The wazoplatform/wazo-dird image can be built using the following command:

docker build -t wazoplatform/wazo-dird .

The wazoplatform/wazo-dird image contains a configuration file to listen to HTTP requests on "0.0.0.0". To change this behavior, create or edit the file /etc/wazo-dird/conf.d/listen.yml

The wazoplatform/wazo-dird-db image can be built using the following command:

docker build -f contribs/docker/wazo-dird-db.Dockerfile -t wazoplatform/wazo-dird-db .

Running unit tests

apt-get install libpq-dev python3-dev libffi-dev libyaml-dev libldap2-dev libsasl2-dev
pip install tox
tox --recreate -e py39

Running integration tests

You need Docker installed.

cd integration_tests
pip install -U -r test-requirements.txt
make test-setup
make test

For developers, when adding/removing a plugin:

make egg-info

Adding a new database migration

To add a new migration script for the database use the following command:

alembic -c alembic.ini revision -m "<description of the revision>"