-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
43 lines (29 loc) · 872 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
32
33
34
35
36
37
38
39
40
41
42
43
.DEFAULT_GOAL := help
.PHONY: docker-build docker-up build start log stop restart
DOCKER_COMPOSE=docker-compose -f docker-compose.yaml
DOCKER_COMPOSE_TEST=docker-compose -f docker-compose.test.yaml
# Docker
docker-build:
$(DOCKER_COMPOSE) build
docker-up:
$(DOCKER_COMPOSE) up -d --remove-orphans amqp mongo
docker-stop:
$(DOCKER_COMPOSE) kill
$(DOCKER_COMPOSE) rm -fv
docker-clean:
$(DOCKER_COMPOSE) kill
$(DOCKER_COMPOSE) rm -fv
docker-restart:
$(DOCKER_COMPOSE) up -d --force-recreate
log:
$(DOCKER_COMPOSE) logs -f engine main timer
# Start
start: docker-restart
stop: docker-stop
restart: docker-restart
build: docker-build
test-build:
$(DOCKER_COMPOSE_TEST) build --no-cache
test-start:
$(DOCKER_COMPOSE_TEST) run e2e bash ./wait-for-it.sh semanticbus:80 -t 45
$(DOCKER_COMPOSE_TEST) run e2e xvfb-run -a codeceptjs run --grep @local --steps