forked from gomods/athens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (50 loc) · 1.15 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
.PHONY: build
build:
cd cmd/proxy && buffalo build
cd cmd/olympus && buffalo build
.PHONY: run
run: build
./athens
.PHONY: docs
docs:
cd docs && hugo
.PHONY: setup-dev-env
setup-dev-env:
./scripts/get_dev_tools.sh
.PHONY: verify
verify:
./scripts/check_gofmt.sh
./scripts/check_golint.sh
./scripts/check_deps.sh
.PHONY: test
test:
cd cmd/proxy && buffalo test
cd cmd/olympus && buffalo test
.PHONY: test-unit
test-unit:
./scripts/test_unit.sh
.PHONY: olympus-docker
olympus-docker:
docker build -t gopackages/olympus -f cmd/olympus/Dockerfile .
.PHONY: alldeps
alldeps:
docker-compose -p athensdev up -d mysql
docker-compose -p athensdev up -d postgres
docker-compose -p athensdev up -d mongo
docker-compose -p athensdev up -d redis
docker-compose -p athensdev up -d minio
docker-compose -p athensdev up -d jaeger
echo "sleeping for a bit to wait for the DB to come up"
sleep 5
.PHONY: dev
dev:
docker-compose -p athensdev up -d mongo
docker-compose -p athensdev up -d redis
.PHONY: down
down:
docker-compose -p athensdev down
docker volume prune
.PHONY: dev-teardown
dev-teardown:
docker-compose -p athensdev down
docker volume prune