forked from cisco-open/jalapeno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.topology
39 lines (28 loc) · 940 Bytes
/
Makefile.topology
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
REGISTRY_NAME?=docker.io/iejalapeno
IMAGE_VERSION?=latest
.PHONY: all topology container push-aio clean test
ifdef V
TESTARGS = -v -args -alsologtostderr -v 5
else
TESTARGS =
endif
all: topology
topology:
mkdir -p bin
$(MAKE) -C ./cmd/topology compile-topology
topology-aio:
mkdir -p bin
$(MAKE) -C ./cmd/topology-aio compile-topology-aio
topology-container: topology
docker build -t $(REGISTRY_NAME)/topology:$(IMAGE_VERSION) -f ./build/Dockerfile.topology .
topology-aio-container: topology-aio
docker build -t $(REGISTRY_NAME)/topology-aio:$(IMAGE_VERSION) -f ./build/Dockerfile.topology-aio .
push: topology-container
docker push $(REGISTRY_NAME)/topology:$(IMAGE_VERSION)
push-aio: topology-aio-container
docker push $(REGISTRY_NAME)/topology-aio:$(IMAGE_VERSION)
clean:
rm -rf bin
test:
GO111MODULE=on go test `go list ./... | grep -v 'vendor'` $(TESTARGS)
GO111MODULE=on go vet `go list ./... | grep -v vendor`