djangoproject.com icon indicating copy to clipboard operation
djangoproject.com copied to clipboard

dev: shell script to aid development with docker

Open marksweb opened this issue 2 months ago • 1 comments

This adds a shell script to aid in the development of the project using docker.

Commands would look something like;

./do.sh build
./do.sh start

Then if you need to interact with the app or migrate when it's running there's things available like;

  • ./do.sh shell
  • ./do.sh makemigrations
  • ./do.sh migrate

There is some talk on slack about removing the entrypoint script, which currently runs migrate. But with this approach migrating is the responsibility of the developer, rather than an automatic startup job.

marksweb avatar Oct 08 '25 22:10 marksweb

Why not just extend the existing Makefile? Or better yet, migrate to Just.

Because I've already got the script in another project so it's easy to bring across.

marksweb avatar Oct 09 '25 20:10 marksweb