forked from kubernetes-sigs/kube-scheduler-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (45 loc) · 1.11 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
46
47
48
49
50
51
52
53
54
55
56
57
58
.PHONY: tools
tools:
cd ./tools; \
cat tools.go | grep "_" | awk -F'"' '{print $$2}' | xargs -tI % go install %
.PHONY: lint
# run golangci-lint on all modules
lint:
cd simulator/ && make lint
.PHONY: format
# format codes on all modules
format:
cd simulator/ && make format
.PHONY: test
# run test on all modules
test:
cd simulator/ && make test
.PHONY: mod-download
mod-download:
cd simulator/ && go mod download -x
.PHONY: build
# build all modules
build:
cd simulator/ && make build
.PHONY: docker_build
docker_build: docker_build_server docker_build_front
.PHONY: docker_build_server
docker_build_server:
docker build -t simulator-server ./simulator/
.PHONY: docker_build_front
docker_build_front:
docker build -t simulator-frontend ./web/
.PHONY: docker_up
docker_up:
docker-compose up -d
.PHONY: docker_up_local
docker_up_local:
docker-compose -f docker-compose-local.yml up -d
.PHONY: docker_build_and_up
docker_build_and_up: docker_build docker_up_local
.PHONY: docker_down
docker_down:
docker-compose down
.PHONY: docker_down_local
docker_down_local:
docker-compose -f docker-compose-local.yml down