Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Add the 'restart' recipe (#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
matletix committed Mar 10, 2021
1 parent 0efff88 commit ff462a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ PARALLEL := --parallel
GITHASH := latest ## Pass `$(git rev-parse --short HEAD`) to tag docker hub images as latest git-hash instead
TEST_CASE := tests ## Run all (`tests`) or a specific test case (ex `tests/alerts/tests/alerts/test_proxy_drop_exfil_domains.py`)
TMPDIR := $(shell mktemp -d )
SERVICES :=

.PHONY:all
all:
Expand All @@ -39,6 +40,10 @@ else
@echo $(ENV) not found.
endif

.PHONY: restart
restart: ## Build $(SERVICES) and their dependencies and (re)start them if needed (useful for development)
docker-compose -f docker/compose/docker-compose.yml -p $(NAME) up -d --build $(SERVICES)

.PHONY: test
test: build-tests run-tests

Expand Down

0 comments on commit ff462a9

Please sign in to comment.