Skip to content
📖 directory lookup service for Wazo
Python Other
  1. Python 98.8%
  2. Other 1.2%
Branch: master
Clone or download
wazo-zuul Merge pull request #18 from wazo-platform/buster-docker
Dockerfile: update microsoft-mock to buster

Latest commit 2280c9b Sep 13, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.tx transifex: rename config path to use wazo_dird May 3, 2018
alembic styling: run black Jul 17, 2019
bin update SPDX-License-Identifier Mar 6, 2019
contribs/docker contribs: remove unused Dockerfile Mar 27, 2019
debian package: fix alembic upgrade in postint Aug 23, 2019
etc google: copy the plugin from the wazo-google repository Aug 6, 2019
integration_tests Dockerfile: update microsoft-mock to buster Sep 12, 2019
wazo_dird Blackify Sep 11, 2019
.dockerignore docker: make the context smaller when building the images Jan 16, 2019
.gitignore gitignore: add python related files Jul 17, 2019
AUTHORS AUTHORS: reorder the file alphabetically Mar 22, 2019 default_json: add route to lookup with user_uuid Aug 20, 2019
Dockerfile Update dockers to buster Aug 23, 2019
LICENSE update LICENSE file Jun 14, 2017
alembic.ini add alembic configuration for xivo-dird May 6, 2016
bindep.txt integration tests: add a bindep.txt for the test VM Jul 18, 2019
requirements.txt buster: switch back to Sep 4, 2019
setup.cfg set setup.cfg to use pytest Jan 18, 2019 google: copy the plugin from the wazo-google repository Aug 6, 2019
test-requirements.txt tests: restore the test-requirements.txt at the root Jul 17, 2019
tox.ini flake8: do not fail on long lines Aug 6, 2019
zuul.yaml zuul/tox: try to add the INTEGRATION_TEST_TIMEOUT env variable Jul 18, 2019


Build Status

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


To extract new translations:

% pybabel extract --mapping-file=wazo_dird/babel.cfg --output-file=wazo_dird/messages.pot wazo_dird

To create new translation catalog:

% pybabel init -l <locale> --input-file=wazo_dird/messages.pot --output-dir=wazo_dird/translations

To update existing translations catalog:

% pybabel update --input-file=wazo_dird/messages.pot --output-dir=wazo_dird/translations

Edit file wazo_dird/translations/<locale>/LC_MESSAGES/messages.po and compile using:

% pybabel compile --directory=wazo_dird/translations


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

% docker build -t wazopbx/wazo-dird .

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

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

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

Running unit tests

apt-get install libpq-dev python-dev libffi-dev libyaml-dev libldap2-dev libsasl2-dev
pip install tox
tox --recreate -e py35

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

Generate .tx/config

% tx set --auto-local -r xivo.wazo-dird 'wazo_dird/translations/<lang>/LC_MESSAGES/messages.po' --source-lang en --type PO --source-file wazo_dird/messages.pot --execute

Adding a new database migration

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

% alembic -c alembic.ini revision -m ""

You can’t perform that action at this time.