forked from kubev2v/migration-event-streamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (22 loc) · 794 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
include .env
GIT_COMMIT ?=$(shell git rev-parse --short "HEAD^{commit}" 2>/dev/null)
LD_FLAGS := -ldflags "-X github.com/kubev2v/migration-event-streamer/cmd.GitCommit=$(GIT_COMMIT)"
vendor:
go mod tidy
go mod vendor
build:
go build $(LD_FLAGS) -o bin/streamer main.go
build.producer:
go build -o bin/producer $(PWD)/samples/producer/main.go
run:
bin/streamer run --config $(PWD)/resources/config.yaml
build.podman:
@podman build . -t quay.io/ctupangiu/migration-event-streamer:latest
@podman push quay.io/ctupangiu/migration-event-streamer:latest
infra.up:
@podman play kube resources/dev.yml
@podman play kube --network host resources/observability.yml
infra.down:
@podman kube down resources/dev.yml
@podman kube down resources/prometheus.yml
.PHONY: vendor build run