Skip to content

Conversation

easherma
Copy link
Contributor

@easherma easherma commented Sep 12, 2025

Fixes #2193

This allows for tests and local dev to work via the docker steps without any additional setup steps

easherma and others added 5 commits September 12, 2025 14:19
Author:    Eric Sherman <ericandrewsherman@gmail.com>
Date:      Fri Sep 12 13:12:59 2025 -0500
Without the database and expected user already existing, running
tests via docker compose will fail to connect to the database to run
the script
This could probably be refactored, but is needed so that tests and other
code that use the tracsb have expected credentials needed inside the container
This helps tests pass which would fail otherwise (maybe just locally, on docker)
Copy link
Member

@pauloxnet pauloxnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tobiasmcnulty tobiasmcnulty changed the title Fix 2193 docker setup Fixed "connection 'trac' doesn't exist" error running tests via Docker Sep 14, 2025
@tobiasmcnulty
Copy link
Member

@easherma Nice work, thanks again! 🚢

@tobiasmcnulty tobiasmcnulty merged commit 43bb7aa into django:main Sep 14, 2025
4 of 5 checks passed
timeout: 10s
retries: 10
volumes:
- ./initdb/tracdb.sql:/docker-entrypoint-initdb.d/tracdb.sql

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker only install instructions run into database connection error trac does not exist
4 participants