-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
33 lines (21 loc) · 1.21 KB
/
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
help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-13s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
yarn-install: package-lock.json package.json ## Runs yarn install in docker
bin-docker/yarn install
up: docker-compose.yaml docker-compose.override.yaml ## Does docker-compose up, automaticly create docker-compose.override.yaml
docker-compose up -d --remove-orphans
update: ## Update to the latest docker images
docker-compose pull
clean: ## Deletes all containers and volumes. WILL DROP ALL DB DATA
docker-compose down --volumes --remove-orphans
install-db: up ## Install basic data
docker-compose exec api curl "http://localhost:8080/$${APICORE_SERVER_PATH_PREFIX}/install"
install-demo: up install-db ## Install demo data
docker-compose exec api curl "http://localhost:8080/$${APICORE_SERVER_PATH_PREFIX}/demo"
docker-compose.override.yaml:
cp docker-compose.override.dist.yaml docker-compose.override.yaml
direnv: .envrc ## Create .envrc for bin-docker
local: ## Start against local development API server
REACT_APP_API_URL=http://localhost:8080 BOOSTCORE_DEMO=true yarn start
.envrc:
cp .envrc.dist .envrc