make start_db calls make create_db which only looks if it is running, and if not, tries to create it. Instead, it should detect whether it exists, and if not running, start it. Create it only if it doesn't exist.
make start_db
make create_db
$ make run_app App configuration: './conf/settings.py' Creating PostgreSQL container for DB_URI: postgresql+psycopg2://tester:fedora@localhost:5432/testdays Error: creating container storage: the container name "testdaysdb" is already in use by 2dd452da97f122ec780711ef13579fa122c6967dfe500b176435886a71aad114. You have to remove that container to be able to reuse that name: that name is already in use, or use --replace to instruct Podman to do so. make: *** [Makefile:39: create_db] Error 125 $ make start_db Creating PostgreSQL container for DB_URI: postgresql+psycopg2://tester:fedora@localhost:5432/testdays Error: creating container storage: the container name "testdaysdb" is already in use by 2dd452da97f122ec780711ef13579fa122c6967dfe500b176435886a71aad114. You have to remove that container to be able to reuse that name: that name is already in use, or use --replace to instruct Podman to do so. make: *** [Makefile:39: create_db] Error 125 $ podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8bfce124fbcf docker.io/library/postgres:13 postgres 11 months ago Exited (0) 7 months ago 0.0.0.0:5432->5432/tcp blockerbugsdb 843403a5a090 registry.fedoraproject.org/fedora-toolbox:43 toolbox --log-lev... 2 months ago Exited (143) 7 weeks ago f43tb 2dd452da97f1 quay.io/fedora/postgresql-16:latest run-postgresql 3 days ago Exited (0) 2 days ago 0.0.0.0:5432->5432/tcp testdaysdb $ podman start testdaysdb testdaysdb $ make run_app App configuration: './conf/settings.py' Creating PostgreSQL container for DB_URI: postgresql+psycopg2://tester:fedora@localhost:5432/testdays PostgreSQL DB Container 'testdaysdb' is running Starting PostgreSQL DB Container 'testdaysdb' testdaysdb Starting testdays-web by 'python runapp.py' Enabled stream logging * Serving Flask app 'testdays' * Debug mode: on WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on all addresses (0.0.0.0) * Running on http://127.0.0.1:5050 * Running on http://192.168.0.196:5050
Metadata Update from @kparal: - Custom field story_points adjusted to 2
Metadata Update from @jgroman: - Issue assigned to jgroman
Commit d37194f8 fixes this issue
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/quality/testdays-web/issues/77
Please continue any further discussion there.