)]}'
{".gitignore":[{"author":{"_account_id":27008,"name":"Vitalii Solodilov","email":"Mcdkr@yandex.ru","username":"mcdoker18"},"change_message_id":"897cb2456ae108a728ce14128c48d968eca0f581","unresolved":false,"context_lines":[{"line_number":27,"context_line":".tox"},{"line_number":28,"context_line":"nosetests.xml"},{"line_number":29,"context_line":"cover/*"},{"line_number":30,"context_line":".coverage.*"},{"line_number":31,"context_line":".testrepository/"},{"line_number":32,"context_line":".stestr/"},{"line_number":33,"context_line":"subunit.log"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"5f7c97a3_9fcea459","line":30,"updated":"2018-06-06 06:59:59.000000000","message":"Can you also add .coverage.* and .stestr/ to the .dockerignore file?","commit_id":"50f829152d3bbd419c6d551e12e6d631c9af97fd"},{"author":{"_account_id":16511,"name":"Bob Haddleton","email":"bob.haddleton@nokia.com","username":"bobh"},"change_message_id":"22a90e2f839b86736ad6fd03e819843a1565da1c","unresolved":false,"context_lines":[{"line_number":27,"context_line":".tox"},{"line_number":28,"context_line":"nosetests.xml"},{"line_number":29,"context_line":"cover/*"},{"line_number":30,"context_line":".coverage.*"},{"line_number":31,"context_line":".testrepository/"},{"line_number":32,"context_line":".stestr/"},{"line_number":33,"context_line":"subunit.log"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"5f7c97a3_60e3bba5","line":30,"in_reply_to":"5f7c97a3_9fcea459","updated":"2018-06-11 00:19:05.000000000","message":"will do","commit_id":"50f829152d3bbd419c6d551e12e6d631c9af97fd"}],"tools/docker/start.sh":[{"author":{"_account_id":27008,"name":"Vitalii Solodilov","email":"Mcdkr@yandex.ru","username":"mcdoker18"},"change_message_id":"dc65c04050d1d00e6d149c8ecfc35b9aa8f38113","unresolved":false,"context_lines":[{"line_number":16,"context_line":"    ${INI_SET} DEFAULT debug \"${LOG_DEBUG}\""},{"line_number":17,"context_line":"fi"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"if [ ${DATABASE_URL} \u003d\u003d \"sqlite:///mistral.db\" -a ! -f ./mistral.db ]"},{"line_number":20,"context_line":"then"},{"line_number":21,"context_line":"    python ./tools/sync_db.py --config-file \"${CONFIG_FILE}\""},{"line_number":22,"context_line":"    mistral-db-manage --config-file \"${CONFIG_FILE}\" populate"}],"source_content_type":"text/x-sh","patch_set":1,"id":"5f7c97a3_5f9c8c69","line":19,"updated":"2018-06-06 06:56:38.000000000","message":"What do you think about this workflow?\nif upgrade_db is True:\n  if database_url contains sqlite\n    sync_db.py\n  else\n    mistral-db-manag upgrade head\n\n  mistral-db-manage populate","commit_id":"50f829152d3bbd419c6d551e12e6d631c9af97fd"},{"author":{"_account_id":16511,"name":"Bob Haddleton","email":"bob.haddleton@nokia.com","username":"bobh"},"change_message_id":"22a90e2f839b86736ad6fd03e819843a1565da1c","unresolved":false,"context_lines":[{"line_number":16,"context_line":"    ${INI_SET} DEFAULT debug \"${LOG_DEBUG}\""},{"line_number":17,"context_line":"fi"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"if [ ${DATABASE_URL} \u003d\u003d \"sqlite:///mistral.db\" -a ! -f ./mistral.db ]"},{"line_number":20,"context_line":"then"},{"line_number":21,"context_line":"    python ./tools/sync_db.py --config-file \"${CONFIG_FILE}\""},{"line_number":22,"context_line":"    mistral-db-manage --config-file \"${CONFIG_FILE}\" populate"}],"source_content_type":"text/x-sh","patch_set":1,"id":"5f7c97a3_a0d9d3f4","line":19,"in_reply_to":"5f7c97a3_5f9c8c69","updated":"2018-06-11 00:19:05.000000000","message":"The question is whether the docker image that is generated by this Dockerfile should only work with the provided docker-compose templates, or if it should work standalone without docker-compose.  I was trying to bring up the mistral container by itself without using docker-compose, and that\u0027s when I found the issues with the sqlite configuration and the missing database file.\n\nOther databases will have similar issues on first run, so we need some way to determine if the database exists already for any DB type, and run sync_db.py.\n\nOr we could always run sync_db.py and let it fail when the database already exists.","commit_id":"50f829152d3bbd419c6d551e12e6d631c9af97fd"},{"author":{"_account_id":27008,"name":"Vitalii Solodilov","email":"Mcdkr@yandex.ru","username":"mcdoker18"},"change_message_id":"dc65c04050d1d00e6d149c8ecfc35b9aa8f38113","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"if \"${UPGRADE_DB}\";"},{"line_number":26,"context_line":"then"},{"line_number":27,"context_line":"    /usr/local/bin/mistral-db-manage --config-file \"${CONFIG_FILE}\" upgrade head"},{"line_number":28,"context_line":"    mistral-db-manage --config-file \"${CONFIG_FILE}\" populate"},{"line_number":29,"context_line":"fi"},{"line_number":30,"context_line":"if \"${RUN_TESTS}\";"}],"source_content_type":"text/x-sh","patch_set":1,"id":"5f7c97a3_ffa7980a","line":27,"range":{"start_line":27,"start_character":4,"end_line":27,"end_character":36},"updated":"2018-06-06 06:56:38.000000000","message":"/usr/local/bin/mistral-db-manage -\u003e mistral-db-manage","commit_id":"50f829152d3bbd419c6d551e12e6d631c9af97fd"}]}
