Prestep: create docker images for UI. See readme in related repo.
docker-compose up --buildWait for "Compilation success" message from web service and checkout the VIQ on the http://localhost:8000
docker-compose -f ./docker-compose.dev.yml run --rm api ./manage.py test --no-input --settings=saas.test_settingsfor TC don't forget to rebuild image beforehand
docker-compose buildDATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'saas',
'USER': 'postgres',
'PASSWORD': 'password',
'HOST': 'pg',
'PORT': '', # Set to empty string for default.
}
}If you are starting some particular service then docker infrastructure may be not completely setup (i.e database is not prepared).
To solve this run init.sh script in the api container
- Use 4 space indentation vs tabs
- Imports should be ONE import statement per line
- Be sure to index all fields that are either joined on, or filtered on