forked from flyteorg/flyteadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 1.18 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
export REPOSITORY=flyteadmin
include boilerplate/lyft/docker_build/Makefile
include boilerplate/lyft/golang_test_targets/Makefile
include boilerplate/lyft/end2end/Makefile
.PHONY: update_boilerplate
update_boilerplate:
@boilerplate/update.sh
.PHONY: integration
integration:
CGO_ENABLED=0 GOFLAGS="-count=1" go test -v -tags=integration ./tests/...
.PHONY: k8s_integration
k8s_integration:
@script/integration/launch.sh
.PHONY: k8s_integration_execute
k8s_integration_execute:
@script/integration/execute.sh
.PHONY: compile
compile:
go build -o flyteadmin ./cmd/ && mv ./flyteadmin ${GOPATH}/bin
.PHONY: linux_compile
linux_compile:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /artifacts/flyteadmin ./cmd/
.PHONY: server
server:
go run cmd/main.go serve --server.kube-config ~/.kube/config --config flyteadmin_config.yaml
.PHONY: migrate
migrate:
go run cmd/main.go migrate run --server.kube-config ~/.kube/config --config flyteadmin_config.yaml
.PHONY: seed_projects
seed_projects:
go run cmd/main.go migrate seed-projects project admintests flytekit --server.kube-config ~/.kube/config --config flyteadmin_config.yaml
all: compile
generate: download_tooling
@go generate ./...