-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 868 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
export VERSION ?= 4.0
DOCKERFILE = Dockerfile
DOCKER_COMPOSE = docker compose
default: run
clean: clean-dev
build: build-dev
run: run-dev
restart: stop-dev run-dev
fresh: clean-dev run-dev
stop-dev:
$(DOCKER_COMPOSE) down --rmi local --remove-orphans || true
clean-dev: stop-dev
@ echo "May need to give password to remove database and migrations"
@ [ -d ./src/data ] && sudo rm -R ./src/data/ || :
@ [ -f .env ] && sudo rm .env || :
@ [ -d ./src/evolvefg/netapp_endpoint/migrations ] && sudo rm -R ./src/evolvefg/netapp_endpoint/migrations/* || :
@ [ -d ./src/evolvefg/capif_onboarding ] && sudo rm ./src/evolvefg/capif_onboarding/* || :
build-dev: clean-dev
run-dev:
@ cp env_to_copy.dev .env
@ $(DOCKER_COMPOSE) up -d --build
guard-%:
@ [ "${${*}}" = "" ] && echo "No $* detected" && exit 1 || :
.PHONY: default clean build run restart fresh