-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
62 lines (47 loc) · 1.02 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
CORES := $$(getconf _NPROCESSORS_ONLN)
.PHONY: all
all: install test run
.PHONY: install
install: prepare-dev lint sync fmt bundle
.PHONY: clean
clean:
@docker images | grep -i "^datadog/dev" | awk '{ print $$3 }' | \
xargs -P$(CORES) -I{} docker rmi -f {} 2> /dev/null || :
.PHONY: perf
perf:
@./dev/siege.sh
.PHONY: build-fmt
build-fmt:
docker-compose build fmt
.PHONY: build-sync
build-sync:
docker-compose build sync
.PHONY: build-test
build-test:
docker-compose build test
.PHONY: build-package
build-package:
docker-compose build package
.PHONY: fmt
fmt:
docker-compose run --rm fmt
.PHONY: sync
sync:
docker-compose run --rm sync
.PHONY: lint
lint:
docker-compose run --rm lint
.PHONY: prepare-dev
prepare-dev:
docker-compose build dev
$(MAKE) -j $(CORES) build-fmt build-sync build-test build-package
.PHONY: test
test:
docker-compose run --rm test
.PHONY: bundle
bundle:
docker-compose run --rm package
docker-compose build artefact
.PHONY: run
run:
docker-compose run --rm --no-deps --service-ports artefact