Skip to content

[DISCUSSION] docker startup script #637

@ralokt

Description

@ralokt

Topic
Right now, the docker setup is suboptimal - even in #635 - in that it doesn't perform migrations.

The correct thing to do is probably to make a startup command that

  • runs migrations
  • runs the tailwind commands
  • builds and collects the staticfiles
  • and then starts gunicorn

This does perform a few steps every time that could be part of the build process. However:

  • migrations can't be run at build time, as outlined in Fix docker setup #635
  • the overhead should be low once these tasks have run once until containers are recreated
  • it would simplify the setup, making the build environment-agnostic

Reference
#634, #635

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions