Skip to content

Conversation

@malcolmbaig
Copy link
Contributor

@malcolmbaig malcolmbaig commented Oct 21, 2025

Description

  • Organise the file
  • Add personas and demo data to the make local command
  • Do a config instead of a db in the make local

Jira link

na

Review notes

na

- Collect the includes, default goal, .PHONY, and .SILENT directives at
  the top so file metadata is easy to spot
- Split the targets into clear sections (Help, Cleaning, Bootstrap,
  Development, Testing, Build) with divider comments
- Expanded the .PHONY list to cover all non-file targets
- Include a new make target for running the personas command
- Run both personas and seed-demo-data when calling `make local`
@malcolmbaig malcolmbaig requested a review from a team October 21, 2025 13:18
Update the configured local environment rather than just running the db.
This will make sure that dependency updates and asset compilation happen
as well.
build: # Build the project artefact @Pipeline
docker build -t "app:$$(git rev-parse HEAD)" .

deploy: # Deploy the project artefact to the target environment @Pipeline
Copy link
Contributor

Choose a reason for hiding this comment

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

we never implemented this command from the template but we have separate terraform commands instead.

maybe we can just drop it? what do you think @saliceti ?

Copy link
Contributor

@MatMoore MatMoore left a comment

Choose a reason for hiding this comment

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

thanks, this should simplify the first time setup 👍🏻

presumably the README instructions can change as well? (doesn't need to block this though)

Makefile Outdated
docker compose --env-file manage_breast_screening/config/.env up -d --wait

local: db run
local: db seed-demo-data personas run
Copy link
Contributor

Choose a reason for hiding this comment

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

can we also use seed-demo-data and personas in the rebuild-db task as well? It's for deleting the db volume and rebuilding in cases where the DB is messed up.

seed does nothing and I don't think we need it anymore

Have this execute seed-demo-data and personas. Remove seed as we don't
currently have a use for it.
@malcolmbaig malcolmbaig merged commit 2dcbd4e into main Oct 22, 2025
12 checks passed
@malcolmbaig malcolmbaig deleted the mb-makefile-updates-2025.10.21 branch October 22, 2025 12:45
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