forked from ardanlabs/service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
46 lines (38 loc) · 990 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
44
45
46
SHELL := /bin/bash
all: sales-api metrics tracer
sales-api:
cd "$$GOPATH/src/github.com/ardanlabs/service"
docker build \
-t sales-api-amd64:1.0 \
-f dockerfile.sales-api \
--build-arg VCS_REF=`git rev-parse HEAD` \
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
.
docker system prune -f
metrics:
cd "$$GOPATH/src/github.com/ardanlabs/service"
docker build \
-t metrics-amd64:1.0 \
-f dockerfile.metrics \
--build-arg VCS_REF=`git rev-parse HEAD` \
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
.
docker system prune -f
tracer:
cd "$$GOPATH/src/github.com/ardanlabs/service"
docker build \
-t tracer-amd64:1.0 \
-f dockerfile.tracer \
--build-arg VCS_REF=`git rev-parse HEAD` \
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
.
docker system prune -f
up:
docker-compose up
down:
docker-compose down
test:
cd "$$GOPATH/src/github.com/ardanlabs/service"
go test ./...
clean:
docker system prune -f