Skip to content

dev container refactoring and fixing bw-dev pytest - #3838

Merged
mouse-reeve merged 2 commits into
bookwyrm-social:mainfrom
ilkka-ollakka:tweak/dev_container_refactoring
Feb 8, 2026
Merged

mouse-reeve merged 2 commits into
bookwyrm-social:mainfrom
ilkka-ollakka:tweak/dev_container_refactoring

Conversation

@ilkka-ollakka

Copy link
Copy Markdown
Contributor

Description

Introduce docker-compose.dev.yml which contains dev-tools and config to mount local directory to container. Also it defines different name for the project, so containers are created with dev-wyrm -prefix instead of bookwyrm from default. This allows to run pytest etc without it using default volumes/db/etc from bookwyrm setup. Env-file is still the same, so db credentials etc are same.

Also modify bw-dev to use new file with the current compose file to run devtools and pytest etc that need web/db to be in place and used to be ran in normal web container.

  • Related Issue #
  • Closes #

What type of Pull Request is this?

  • Bug Fix
  • Enhancement
  • Plumbing / Internals / Dependencies
  • Refactor

Does this PR change settings or dependencies, or break something?

  • This PR changes or adds default settings, configuration, or .env values
  • This PR changes or adds dependencies
  • This PR introduces other breaking changes

Details of breaking or configuration changes (if any of above checked)

Documentation

  • New or amended documentation will be required if this PR is merged
  • I have created a matching pull request in the Documentation repository
  • I intend to create a matching pull request in the Documentation repository after this PR is merged

Tests

  • My changes do not need new tests
  • All tests I have added are passing
  • I have written tests but need help to make them pass
  • I have not written tests and need help to write them

* remove local source directory mounts from rest of the bookwyrm containers (celery_*, flower)
* move dev-tools to dev-file
* add project name in dev-compose file, so it doesn't overlap with normal container, allowing to run
  at the same time
@mouse-reeve
mouse-reeve merged commit b79a047 into bookwyrm-social:main Feb 8, 2026
10 checks passed
@ilkka-ollakka
ilkka-ollakka deleted the tweak/dev_container_refactoring branch February 8, 2026 16:58
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.

2 participants