Skip to content

Commit

Permalink
Have run-docker-teardown respect services variable (#4884)
Browse files Browse the repository at this point in the history
Have run-docker-teardown respect services
  • Loading branch information
evankanderson authored Nov 5, 2024
1 parent 9a6ff91 commit 7e6460a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .mk/develop.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ run-server: ## run the app
.PHONY: run-docker-teardown
run-docker-teardown: ## teardown the docker compose environment
ifeq ($(RUN_DOCKER_NO_TEARDOWN),false)
@echo "Running docker compose down"
@$(COMPOSE) down
@echo "Running docker compose down $(services)..."
@$(COMPOSE) down $(services)
else
@echo "Skipping docker compose down"
endif
Expand All @@ -42,7 +42,7 @@ run-docker: run-docker-teardown ## run the app under docker compose
.PHONY: stop-docker
stop-docker: ## stop the app under docker compose
@echo "Running docker compose down $(services)..."
@$(COMPOSE) down
@$(COMPOSE) down $(services)

.PHONY: pre-commit
pre-commit: ## run pre-commit hooks
Expand Down
5 changes: 5 additions & 0 deletions docs/docs/developer_guide/get-hacking.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Follow the steps in the [Installing a Development version](./../run_minder_serve

The application will be available on `https://localhost:8080` and gRPC on `https://localhost:8090`.

When iterating, it can be helpful to only rebuild and reload the `minder` container. You can do this with:
```bash
make run-docker services=minder
```

## Run the tests
```bash
make test
Expand Down

0 comments on commit 7e6460a

Please sign in to comment.