forked from data-players/AUrba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
79 lines (53 loc) · 1.41 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.DEFAULT_GOAL := help
.PHONY: docker-build docker-up build start log stop restart
DOCKER_COMPOSE=docker-compose -f docker-compose.yaml
DOCKER_COMPOSE_PROD=docker-compose -f docker-compose-prod.yaml
DOCKER_COMPOSE_TEST=docker-compose -f docker-compose-test.yaml
# Docker
docker-build:
$(DOCKER_COMPOSE) build
docker-build-prod:
$(DOCKER_COMPOSE_PROD) build
docker-up:
$(DOCKER_COMPOSE) up -d
docker-stop:
$(DOCKER_COMPOSE) kill
$(DOCKER_COMPOSE) rm -fv
docker-stop-prod:
$(DOCKER_COMPOSE_PROD) kill
$(DOCKER_COMPOSE_PROD) rm -fv
docker-clean:
$(DOCKER_COMPOSE) kill
$(DOCKER_COMPOSE) rm -fv
docker-start:
$(DOCKER_COMPOSE) up -d --force-recreate
docker-start-prod:
$(DOCKER_COMPOSE_PROD) up -d --force-recreate
docker-restart:
$(DOCKER_COMPOSE) up -d --force-recreate
log:
$(DOCKER_COMPOSE) logs -f middleware fuseki frontend
log-prod:
$(DOCKER_COMPOSE_PROD) logs -f middleware
start: docker-start
start-prod: docker-start-prod
stop: docker-stop
stop-prod: docker-stop-prod
restart: docker-restart
init :
make install
make bootstrap
install :
npm install --prefix ./server
build:docker-build
build-prod: docker-build-prod
prettier:
npm run prettier --prefix ./server
bootstrap:
npm run bootstrap --prefix ./src/server
# For tests we currently only need fuseki
test:
$(DOCKER_COMPOSE_TEST) build
$(DOCKER_COMPOSE_TEST) up -d
npm run test --prefix ./src/server/tests/
$(DOCKER_COMPOSE_TEST) down