-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile-2.7
65 lines (43 loc) · 2.11 KB
/
Makefile-2.7
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
63
64
65
# export RAVEL_EARLYLATE=Y
#TAG=v2.6.0-proto205
TAG=v2.7.0-rc1
PROD=v2.7.0
SKIPMASTER=v2.6.1-skip-ipvsmaster
# branch: lab-isolated-later: original 2.6 + logging + skip-master
# branch: log-rules : original 2.6 + early-late rules + logging
# v2.6.1-skip-ipvsmaster : skip-ipvs-master based on env-var. use iptables 1.6.2
# hub.comcast.net/k8s-eng/ravel:v2.6.0-proto205 -> v2.6.0-rc7
# v2.6.0-proto189 -> v2.6.0-rc4
# rc6: hub.comcast.net/k8s-eng/ravel:v2.5.0-proto45
# rc7: hub.comcast.net/k8s-eng/ravel:v2.5.0-proto66
# rc8: hub.comcast.net/k8s-eng/ravel:v2.5.0-proto67
# rc9: hub.comcast.net/k8s-eng/ravel:v2.5.0-proto68
# Not a complicated makefile, just a place to ensure
# that we don't forget how to build and push to a registry.
#
default: build
test:
go test github.com/Comcast/Ravel/pkg/system -run TestNewMerge -v
prod:
docker build -t hub.comcast.net/k8s-eng/ravel:${PROD} -f Dockerfile-2.7 .
docker push hub.comcast.net/k8s-eng/ravel:${PROD}
docker build -t hub.comcast.net/k8s-eng/ravel:${PROD}-1.6.2 -f Dockerfile-1.6.2 .
docker push hub.comcast.net/k8s-eng/ravel:${PROD}-1.6.2
build: FORCE
#docker build --progress plain -t hub.comcast.net/k8s-eng/ravel:${TAG} -f Dockerfile .
docker build -t hub.comcast.net/k8s-eng/ravel:${TAG} -f Dockerfile-2.7 .
#docker push hub.comcast.net/k8s-eng/ravel:${TAG}
skipmaster:
docker build --build-arg RAVEL_LOGRULE=N --build-arg SKIP_MASTER_NODE=Y -t hub.comcast.net/k8s-eng/ravel:${SKIPMASTER} -f Dockerfile-2.7 .
docker push hub.comcast.net/k8s-eng/ravel:${SKIPMASTER}
default-gobgp: build-gobgp push-gobgp
build-gobgp:
docker build -t hub.comcast.net/k8s-eng/gobgpd:v2.2.0 -f Dockerfile.gobgp .
push-gobgp:
docker push hub.comcast.net/k8s-eng/gobgpd:v2.2.0
remote:
DOCKER_HOST=ssh://69.252.103.115 docker buildx build --platform linux/amd64 --load -t hub.comcast.net/k8s-eng/ravel:${TAG} -f Dockerfile-2.7 .
m1:
DOCKER_HOST=ssh://69.252.103.115 docker buildx build --platform linux/amd64 --load -t hub.comcast.net/k8s-eng/ravel:${TAG} -f Dockerfile-2.7 .
#docker buildx build --platform linux/amd64 --load -t hub.comcast.net/k8s-eng/ravel:${TAG} -f Dockerfile .
FORCE: ;