-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
106 lines (54 loc) · 1.71 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
all:
@echo "specify option"
@echo "build : build and push runnable(testable) environment"
@echo "commit : commit"
@echo "release : build, commit and generate release binary"
@echo "run : run orch.io"
@echo "stage : stage to all downstream repos including docs"
.PHONY: orch.io
orch.io:
make -C orch.io gen-okey
make -C orch.io build
#orch.io-db:
# make -C orch.io db
orch.io-up:
make -C orch.io gen-okey
make -C orch.io up
build:
make -C nokubeadm build
make -C nokubelet build
make -C nokubectl build
cd hack && ./libgen.sh && mv lib ..
/bin/cp -Rf lib nokubeadm/
/bin/cp -Rf lib nokubelet/
sudo rm -rf nokubeadm/.usr nokubeadm/.etc nokubeadm/.npia/.init
sudo rm -rf nokubelet/.usr nokubelet/.etc nokubelet/.npia/.init
cp orch.io/certs.tar.gz.gpg nokubectl/.npia/
gpg --output nokubectl/.npia/certs.tar.gz --decrypt nokubectl/.npia/certs.tar.gz.gpg
tar -xzf nokubectl/.npia/certs.tar.gz -C nokubectl/.npia/
rm -r lib
build-noctl:
make -C nokubeadm build
make -C nokubelet build
cd hack && ./libgen.sh && mv lib ..
/bin/cp -Rf lib nokubeadm/
/bin/cp -Rf lib nokubelet/
sudo rm -rf nokubeadm/.usr nokubeadm/.etc nokubeadm/.npia/.init
sudo rm -rf nokubelet/.usr nokubelet/.etc nokubelet/.npia/.init
rm -r lib
.PHONY: infra
infra:
make -C infra build
infra-ci:
cd ./infra && /bin/cp -Rf infractl ../ && /bin/cp -Rf ./.npia.infra ../
sudo ./infractl --repo https://github.com/OKESTRO-AIDevOps/nkia.git \
--id seantywork \
--token - \
--name nkia \
--plan ci \
sudo rm -rf ./infractl ./.npia.infra
clean:
rm -rf *.out lib
make -C nokubeadm clean
make -C nokubectl clean
make -C nokubelet clean