Skip to content
Go to file


Failed to load latest commit information.
Latest commit message
Commit time



Dunya is a prototype being developed in the context of CompMusic, a research project that studies several world music traditions from the point of view of the information technologies, with the aim to facilitate the cataloging and discovery of music recordings within large repositories. For more information:


Dunya is Copyright 2013-2018 Music Technology Group - Universitat Pompeu Fabra

Dunya is released under the terms of the GNU Affero General Public License (v3 or later). See the COPYING file for more information.

If you would prefer to get a (non FOSS) commercial license, please contact us at


First, create directories for pycompmusic (cloned from and data (empty folder) somewhere outside the dunya folder.

Then, in the dunya directory, set the relevant environment variables to the absolute locations of these folders.

cp .env

Insert the actual absolute paths in .env

Using docker, run

docker-compose build

to build the relevant packages, and then run

docker-compose up

to start it.


Perform a database migration, and load fixture data

docker-compose run --rm web python3 migrate

docker-compose run --rm web python3 loaddata carnatic_form.json carnatic_raaga.json carnatic_instrument.json carnatic_taala.json data_initial_data.json docserver_groups.json docserver_sourcefiletype.json sites.json hindustani_form.json hindustani_laya.json hindustani_taal.json hindustani_instrument.json hindustani_raag.json makam_form.json makam_instrument.json makam_makam.json makam_usul.json jingju_roletype.json jingju_instrument.json jingju_shengqiangbanshi.json


Install npm modules

docker-compose run --rm --user `id -u`:`id -g` -e HOME=/tmp web npm install

Build required js packages

docker-compose run --rm --user `id -u`:`id -g` web npm run build


Compile less stylesheets

docker-compose run --rm --user `id -u`:`id -g` web sh

Updating Fixtures

Some data in Dunya should only rarely change (e.g., Raaga, Taala, Form, Location, Language lists). We store this data in fixtures, and it is automatically loaded when you create a new database. Fixure files are in fixtures/initial_data.json in the app (e.g., data and carnatic).

If you make a new fixture table, you can easily import data into it by creating a CSV file with the data in the first column and running

python tools/ -t <fixturename> <csvfile>

You'll need to edit to tell it about your table. You should then dump the fixtures to file and commit them for other people to use (you'll need to edit the dumpfixture method in to tell it about the new fixture, too.

fab dumpfixture:carnatic


To clear the database you can remove the postgres volume:

docker-compose down
docker volume rm dunya_dbvolume

Server configuration

Find an nginx configuration file in the admin/ directory.


Dunya must also be installed on worker machines to run remote processes. This machine will need access to the main database, configured in

Essentia should be installed into the virtual environment, /srv/dunya/env. The whole dunya directory should be owned by a user that has write permission to the directory. Celery should run as this user too.

You need to make sure that this user can connect to github via ssh. Either log in as the use and run ssh, or use https.

The celery configuration should have a queue and hostname configured that are the same (-Q and -n). These settings are needed for remote control of a single worker. The machines must also listen on the standard celery queue for all other work.

# We need to set the path to include the virtualenv so that e.g. essentia gets the right pythonpath
# Supervisor doesn't overwrite HOME or USER, so we need to add it so that os.path.expanduser works
# set LD_LIBRARY_PATH so the python module can find
command=/srv/dunya/env/bin/celery -A dunya -n kora worker -l info -Q kora,celery

One machine must listen on the import queue. This is used for processes that run from the dashboard.

You can’t perform that action at this time.