mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 16:13:56 +08:00
Compare commits
535 Commits
release/3.
...
v3.4.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d7e1a2517 | ||
|
|
6fc835abb9 | ||
|
|
44a9cc5adb | ||
|
|
ff2b7eb345 | ||
|
|
7b5d822373 | ||
|
|
f5a45fc16e | ||
|
|
a583bbc74b | ||
|
|
ece82cce42 | ||
|
|
8042b9430c | ||
|
|
d1cbaead09 | ||
|
|
1768d1e7db | ||
|
|
ff34e93862 | ||
|
|
a891d1d876 | ||
|
|
c7d6bb7811 | ||
|
|
2076a75113 | ||
|
|
5d0d6d960b | ||
|
|
cf89e8a23a | ||
|
|
45994b59d5 | ||
|
|
d2d2934e80 | ||
|
|
0ec0c8e703 | ||
|
|
3347d6c1e1 | ||
|
|
dce9d5e4a1 | ||
|
|
ef9b64990e | ||
|
|
f19fe2178c | ||
|
|
2265c9422f | ||
|
|
cf3717557a | ||
|
|
0bbdcb9278 | ||
|
|
d72081770e | ||
|
|
0f874d8f07 | ||
|
|
dd5dd15a76 | ||
|
|
cb36572c1c | ||
|
|
2a210407a5 | ||
|
|
82c59154c5 | ||
|
|
041ee6f904 | ||
|
|
4317fac6da | ||
|
|
a022f99851 | ||
|
|
407251975e | ||
|
|
b7fd879e44 | ||
|
|
0a7ccbe958 | ||
|
|
7efb85ba04 | ||
|
|
84e8e4e6c8 | ||
|
|
3fe15d2675 | ||
|
|
d574a823ba | ||
|
|
a2c8ad13ab | ||
|
|
de8f57f625 | ||
|
|
658159b18e | ||
|
|
67cc7b8747 | ||
|
|
ce694ff638 | ||
|
|
98702c2470 | ||
|
|
9ac5265c07 | ||
|
|
896bec8f43 | ||
|
|
a8426482bf | ||
|
|
d7316b26aa | ||
|
|
d16affc9a6 | ||
|
|
2259fe1195 | ||
|
|
09e37de117 | ||
|
|
715db28e3e | ||
|
|
152ea54f36 | ||
|
|
865b433bb0 | ||
|
|
f04a37d0a3 | ||
|
|
7edcd151e3 | ||
|
|
df90d99bc5 | ||
|
|
552ce3b2ea | ||
|
|
91c852676a | ||
|
|
8528d79817 | ||
|
|
d2aacafa4c | ||
|
|
8714503087 | ||
|
|
d0d3d8e333 | ||
|
|
dee1aa26dc | ||
|
|
c973bf1632 | ||
|
|
1aa82ae950 | ||
|
|
488e7e56a6 | ||
|
|
6a2ebdc123 | ||
|
|
4105284718 | ||
|
|
ac5f29bc0c | ||
|
|
58d52d947c | ||
|
|
c5ef564d35 | ||
|
|
1cacf1068f | ||
|
|
63b0d0c071 | ||
|
|
39a45229af | ||
|
|
e82cf184f1 | ||
|
|
afa16944c0 | ||
|
|
8f953e41da | ||
|
|
6e0180656d | ||
|
|
718bf0d537 | ||
|
|
9fbd4f0599 | ||
|
|
078b1d635a | ||
|
|
b8e0599e3f | ||
|
|
27bd564d2d | ||
|
|
5b79ba5607 | ||
|
|
c9d20d13f1 | ||
|
|
779d4a9acf | ||
|
|
1bc4b3cb90 | ||
|
|
49887e540a | ||
|
|
7ce0d7b44b | ||
|
|
e8d737ff6c | ||
|
|
fd954efcf2 | ||
|
|
e9415ae49e | ||
|
|
5b0afbdc6b | ||
|
|
ec393a6e3c | ||
|
|
adccad3487 | ||
|
|
76f794d1a2 | ||
|
|
bba2cf23fd | ||
|
|
b8f8c3bae4 | ||
|
|
7f3c0103d0 | ||
|
|
499ddeba32 | ||
|
|
7e191a503c | ||
|
|
94eb72fb3c | ||
|
|
02bcce195c | ||
|
|
5c4423bcbe | ||
|
|
9b7fbf33b8 | ||
|
|
a7a8ad1931 | ||
|
|
6c8b30e1be | ||
|
|
8cdab93c15 | ||
|
|
8a28d26271 | ||
|
|
29fa258c6e | ||
|
|
7a61d77b06 | ||
|
|
552dd2bfd1 | ||
|
|
60c42975a8 | ||
|
|
ad53ddd84b | ||
|
|
e87d2c0e86 | ||
|
|
a9c95cf363 | ||
|
|
540f4631f4 | ||
|
|
6db3ec81ea | ||
|
|
abc2be7e5e | ||
|
|
b0e1d0de23 | ||
|
|
fba8349e84 | ||
|
|
9bd70e3cb6 | ||
|
|
f931deb41f | ||
|
|
324e7435ac | ||
|
|
1a1d7c70ad | ||
|
|
3a773f87d3 | ||
|
|
11ea89795a | ||
|
|
288b9e02af | ||
|
|
b88c114ba6 | ||
|
|
aa3ff8ac5b | ||
|
|
3b0ba2caa9 | ||
|
|
4dff79bdd0 | ||
|
|
a4d7b2b4b3 | ||
|
|
f2b0fa1911 | ||
|
|
c1a963801f | ||
|
|
95456e3e08 | ||
|
|
41c84ca8ec | ||
|
|
e6de7be7e1 | ||
|
|
3ddce26aa0 | ||
|
|
d94e55501a | ||
|
|
a9ca6e0a8a | ||
|
|
ad22483113 | ||
|
|
4e9af39d73 | ||
|
|
a05f50dbf0 | ||
|
|
adbe292f48 | ||
|
|
61cc180101 | ||
|
|
1fd043c99b | ||
|
|
82c0dcfb38 | ||
|
|
ea5fbef0c2 | ||
|
|
c1d66fc4e7 | ||
|
|
b7423baf1f | ||
|
|
0ca3349d58 | ||
|
|
8dde6a6ac4 | ||
|
|
0d2d5b0728 | ||
|
|
da8529a00a | ||
|
|
73aee11474 | ||
|
|
5229c06dfc | ||
|
|
37b2b30af5 | ||
|
|
7baaf23f84 | ||
|
|
1b6ac9bc48 | ||
|
|
1215d723af | ||
|
|
4586c82cb2 | ||
|
|
5460f22444 | ||
|
|
f5cf093e0f | ||
|
|
77865d894e | ||
|
|
454aabca75 | ||
|
|
c6d2149914 | ||
|
|
ebee608109 | ||
|
|
7e2e7ade19 | ||
|
|
5d39338d60 | ||
|
|
3903af786b | ||
|
|
91cac5c217 | ||
|
|
12ef953b70 | ||
|
|
d029dc22c0 | ||
|
|
0deb8ea928 | ||
|
|
1ffa6f5295 | ||
|
|
37b9a2e53d | ||
|
|
f6a620ac46 | ||
|
|
5f50314df6 | ||
|
|
9ded6e43f1 | ||
|
|
547b2960b1 | ||
|
|
116d347c88 | ||
|
|
e0c94daaf7 | ||
|
|
679ccb825a | ||
|
|
857e76ab78 | ||
|
|
0d05f9ee18 | ||
|
|
7e362cae3d | ||
|
|
54ee77db03 | ||
|
|
95b82d299d | ||
|
|
e4605d8c3b | ||
|
|
652eb65252 | ||
|
|
310baa266b | ||
|
|
5f2c771f73 | ||
|
|
d90b661f7e | ||
|
|
8d28bfc6d2 | ||
|
|
c7b8e84ffe | ||
|
|
b5088230bf | ||
|
|
4038bfb8a1 | ||
|
|
afb8924762 | ||
|
|
796c3d1d48 | ||
|
|
57a2258d94 | ||
|
|
365e555c98 | ||
|
|
63603359e7 | ||
|
|
fc3b794515 | ||
|
|
51020aac04 | ||
|
|
32470e2ad3 | ||
|
|
975e7fb1e8 | ||
|
|
1c786a034b | ||
|
|
2d5055c908 | ||
|
|
471e2b4f13 | ||
|
|
8da2d5ff7a | ||
|
|
043fdcfec2 | ||
|
|
09bebcf5f4 | ||
|
|
d917e8e386 | ||
|
|
7d163f63a1 | ||
|
|
8ce445487b | ||
|
|
6cff31add6 | ||
|
|
7698dcf506 | ||
|
|
a7e537f4df | ||
|
|
d23ffbb997 | ||
|
|
c38cb271f8 | ||
|
|
c4c07c4e9d | ||
|
|
682fa5e5bd | ||
|
|
cefe057dc8 | ||
|
|
1026b74e65 | ||
|
|
ccce0a4be5 | ||
|
|
9a04238b77 | ||
|
|
a7198dc21b | ||
|
|
78fc35d3a6 | ||
|
|
70fd9dfb70 | ||
|
|
572e45968d | ||
|
|
35842df1bd | ||
|
|
b32eddce03 | ||
|
|
8102e7ed00 | ||
|
|
f659ccd0d5 | ||
|
|
27fe6bc38d | ||
|
|
b118f341bc | ||
|
|
59a5e9201e | ||
|
|
430e9cd0fc | ||
|
|
5b6b5eeb7d | ||
|
|
384e866649 | ||
|
|
884e82a150 | ||
|
|
b3c235fe30 | ||
|
|
686df64ea9 | ||
|
|
d8fa8a49fb | ||
|
|
1afeca5687 | ||
|
|
304457a3b4 | ||
|
|
0bba6e63f0 | ||
|
|
bb3317cc32 | ||
|
|
becf92f6bf | ||
|
|
632ab6c2f9 | ||
|
|
cb0b0bea41 | ||
|
|
6f324b0ea1 | ||
|
|
0acbfc89f3 | ||
|
|
477d36f827 | ||
|
|
caa26b7567 | ||
|
|
d0bb0afa2d | ||
|
|
cb3884b1c5 | ||
|
|
10524ecc9a | ||
|
|
33fb33a589 | ||
|
|
a4b2af90c5 | ||
|
|
3f7155c39c | ||
|
|
b13d0f6035 | ||
|
|
62c0c11c30 | ||
|
|
6bff7caf9b | ||
|
|
27d0452faf | ||
|
|
b1a332fec1 | ||
|
|
bc066edc09 | ||
|
|
0b878134b6 | ||
|
|
986031fc97 | ||
|
|
8164854fd0 | ||
|
|
8dc1796768 | ||
|
|
a54d0e5920 | ||
|
|
822fae0095 | ||
|
|
23b9991a7b | ||
|
|
4fb45676a4 | ||
|
|
93e5f8ec97 | ||
|
|
29dde04145 | ||
|
|
b69d04ee20 | ||
|
|
d0af7f9b23 | ||
|
|
e444ab7a15 | ||
|
|
c4f4e7d30b | ||
|
|
5f35bba0d0 | ||
|
|
760ac9900f | ||
|
|
be00107c12 | ||
|
|
17cd333b64 | ||
|
|
346c8ec564 | ||
|
|
aecf977801 | ||
|
|
7a044d1ac1 | ||
|
|
5f9088d240 | ||
|
|
12bd187ec9 | ||
|
|
c1a0b8a8b5 | ||
|
|
1d7ffc704e | ||
|
|
ebdefa1f23 | ||
|
|
02dc68f20d | ||
|
|
9047c8de39 | ||
|
|
ae3073da48 | ||
|
|
ab2567d17d | ||
|
|
ba03954e50 | ||
|
|
6c6b7bb6fa | ||
|
|
b3f62ee186 | ||
|
|
bc66fd558a | ||
|
|
4164bf58c1 | ||
|
|
5593b88e98 | ||
|
|
785da09d62 | ||
|
|
585ef58332 | ||
|
|
8e0f47aa0c | ||
|
|
4487867f53 | ||
|
|
9b12c675d2 | ||
|
|
a2d7bd16a2 | ||
|
|
10625a4b26 | ||
|
|
e64ac81f87 | ||
|
|
e42afce6f3 | ||
|
|
ad0b9e3bd3 | ||
|
|
d4e2158caf | ||
|
|
a09932d8ac | ||
|
|
2a680f99a7 | ||
|
|
7601ca437a | ||
|
|
967d46bbf6 | ||
|
|
a475a7b416 | ||
|
|
0d798412e1 | ||
|
|
a1ba06a927 | ||
|
|
cc5e0cd7ca | ||
|
|
ada7352469 | ||
|
|
ef9dac1a86 | ||
|
|
f71d26d2b2 | ||
|
|
82e38b8f51 | ||
|
|
5c71349fe2 | ||
|
|
f24950da96 | ||
|
|
0308ce2882 | ||
|
|
cee07e7861 | ||
|
|
8eba2c369f | ||
|
|
5a10f9dd9c | ||
|
|
c542249c7c | ||
|
|
fa2d8723a6 | ||
|
|
523b0d132f | ||
|
|
6bfca36cb7 | ||
|
|
e41c29e6d0 | ||
|
|
6010b253f2 | ||
|
|
0a5ee4ca67 | ||
|
|
77f479ce60 | ||
|
|
f8b7d96c62 | ||
|
|
fda5c3aaa5 | ||
|
|
0e88ac81c3 | ||
|
|
6b5339900b | ||
|
|
60b1eddfd8 | ||
|
|
7cf5ad9133 | ||
|
|
8a0f940b38 | ||
|
|
a1c7a291d5 | ||
|
|
891b7223f1 | ||
|
|
9ef5a43513 | ||
|
|
490a0a7fe5 | ||
|
|
06c27791bb | ||
|
|
690c3b23a4 | ||
|
|
6bc6309253 | ||
|
|
7b67554dcc | ||
|
|
ce777855a2 | ||
|
|
9607420298 | ||
|
|
4e7e8a59dc | ||
|
|
2e93ee3d6d | ||
|
|
6a7cf0608d | ||
|
|
5f7734b0c3 | ||
|
|
413ba9ddd4 | ||
|
|
0048507211 | ||
|
|
d6d490af6c | ||
|
|
70297e3130 | ||
|
|
5576819f01 | ||
|
|
dc20313ef5 | ||
|
|
fb7b5d5a95 | ||
|
|
3f77c01e6b | ||
|
|
5ec2490be5 | ||
|
|
dba92d4b0b | ||
|
|
6f77c22573 | ||
|
|
f653b36733 | ||
|
|
aa26c6ec99 | ||
|
|
0e0df0999b | ||
|
|
5f0b86950b | ||
|
|
d1660c83a9 | ||
|
|
f302756eda | ||
|
|
90185c0074 | ||
|
|
55b2b29001 | ||
|
|
ac69f8a590 | ||
|
|
42faf34f15 | ||
|
|
3f8f9e6c56 | ||
|
|
6b340264e4 | ||
|
|
ef8768fcef | ||
|
|
9281c54294 | ||
|
|
2ad1a4afe5 | ||
|
|
1a323667ad | ||
|
|
0268d95853 | ||
|
|
025eca548f | ||
|
|
4cea5a1c9f | ||
|
|
cb1c8d7961 | ||
|
|
408f975f40 | ||
|
|
621c2796d6 | ||
|
|
d10adf22d7 | ||
|
|
3ef91f92e5 | ||
|
|
e75e5a9b95 | ||
|
|
348ca46a08 | ||
|
|
6000874b3c | ||
|
|
89980b6267 | ||
|
|
d086161a68 | ||
|
|
39fed764fe | ||
|
|
426699ada9 | ||
|
|
82d297eb77 | ||
|
|
92ecdb5f8d | ||
|
|
ada6c870d8 | ||
|
|
86dd4804a3 | ||
|
|
cecaa127ea | ||
|
|
4d68b5fb61 | ||
|
|
8a329b2b29 | ||
|
|
c50659a1e4 | ||
|
|
a30df54cb9 | ||
|
|
b192e949de | ||
|
|
a33a21f712 | ||
|
|
78f9db1ba0 | ||
|
|
72276d038d | ||
|
|
f1995a46d8 | ||
|
|
918dce80e8 | ||
|
|
12899ab007 | ||
|
|
e758c4aa97 | ||
|
|
623c71b143 | ||
|
|
f0faf07b61 | ||
|
|
8c4941ea70 | ||
|
|
4cd73c16ca | ||
|
|
0a79d1d23e | ||
|
|
d22676906c | ||
|
|
74b3bf2c6a | ||
|
|
c94a90398e | ||
|
|
b57bbc66c7 | ||
|
|
4f9c37239e | ||
|
|
8524fda7f8 | ||
|
|
bfa4ce38e0 | ||
|
|
70d790187e | ||
|
|
7095ea8f8b | ||
|
|
4edff8ae34 | ||
|
|
fd750e0a9c | ||
|
|
f0ae739747 | ||
|
|
7f5124bdf2 | ||
|
|
c5c2b4b699 | ||
|
|
29edf83293 | ||
|
|
1c3bbb70a3 | ||
|
|
390d6f07e1 | ||
|
|
41e2757973 | ||
|
|
a7160e7518 | ||
|
|
01f07c6044 | ||
|
|
24af17757d | ||
|
|
b4252c7c25 | ||
|
|
4853883947 | ||
|
|
82795f2daf | ||
|
|
cf056fe42a | ||
|
|
1aa16871eb | ||
|
|
4dfd459b14 | ||
|
|
3d1bce5f51 | ||
|
|
5ff14eb618 | ||
|
|
57c0706d9e | ||
|
|
4dfa6f8b19 | ||
|
|
0619da6f14 | ||
|
|
f62912dd5b | ||
|
|
29a3db9ff6 | ||
|
|
c50497090e | ||
|
|
47f5f9edc1 | ||
|
|
ff52e00448 | ||
|
|
7c6e053a08 | ||
|
|
8c6fdd1106 | ||
|
|
beee6e2c9f | ||
|
|
60412cf7e8 | ||
|
|
90b84e995b | ||
|
|
851b2d4bb7 | ||
|
|
ab02e166e9 | ||
|
|
10caff1d9c | ||
|
|
82b7e659ad | ||
|
|
9e1a7c5e12 | ||
|
|
5cc25ae10a | ||
|
|
cfd76b23a3 | ||
|
|
65ca3ace74 | ||
|
|
00265fedda | ||
|
|
976dbd7796 | ||
|
|
c050629ba2 | ||
|
|
949e2ebed9 | ||
|
|
dc19a10323 | ||
|
|
612ad9286b | ||
|
|
32bc9b45a1 | ||
|
|
03456eaaa9 | ||
|
|
d03fddcd7d | ||
|
|
893085a2c6 | ||
|
|
a85a1aecd4 | ||
|
|
c3d7168622 | ||
|
|
06c0ada74c | ||
|
|
6e5f5b2ea3 | ||
|
|
eb9d794fab | ||
|
|
20b949091e | ||
|
|
43ce3b5455 | ||
|
|
d95e64e593 | ||
|
|
06bd735f0b | ||
|
|
607e3d8fdc | ||
|
|
800dd26c60 | ||
|
|
77a5c1ff85 | ||
|
|
bde5e1b96a | ||
|
|
82942006b6 | ||
|
|
836151eee3 | ||
|
|
0566e1dec7 | ||
|
|
b03c8ce506 | ||
|
|
c914dafa75 | ||
|
|
6c30c1c789 | ||
|
|
adf8885a7a | ||
|
|
cca2267389 | ||
|
|
538bc873a0 | ||
|
|
9812864bce | ||
|
|
4af4bcb963 | ||
|
|
b85fb98297 | ||
|
|
19ba4b9755 | ||
|
|
438c1ced5f | ||
|
|
be5bf11ebe | ||
|
|
6cea2883ab | ||
|
|
5647a6842d | ||
|
|
fba76c6392 | ||
|
|
6ed3a48333 | ||
|
|
53a6c40a8a | ||
|
|
eee193165e | ||
|
|
5987b56297 | ||
|
|
8e83ab4768 | ||
|
|
b977641336 | ||
|
|
132c583790 | ||
|
|
557240155d | ||
|
|
3243e5a035 | ||
|
|
e3fe66e8eb | ||
|
|
de80f17053 | ||
|
|
aef249ea8e |
@@ -3,11 +3,22 @@
|
||||
# Check https://circleci.com/docs/2.0/language-go/ for more details
|
||||
version: 2
|
||||
jobs:
|
||||
test:
|
||||
check:
|
||||
docker:
|
||||
- image: yunionio/centos-build:1.0-1
|
||||
environment:
|
||||
ONECLOUD_CI_BUILD: "1"
|
||||
working_directory: /root/go/onecloud
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
command: |
|
||||
make -j3 check
|
||||
build:
|
||||
requires:
|
||||
- check
|
||||
docker:
|
||||
- image: yunion/centos-build:go-1.18.3-0
|
||||
- image: yunionio/centos-build:1.0-1
|
||||
environment:
|
||||
ONECLOUD_CI_BUILD: "1"
|
||||
|
||||
@@ -15,22 +26,59 @@ jobs:
|
||||
#### expecting it in the form of
|
||||
#### /go/src/github.com/circleci/go-tool
|
||||
#### /go/src/bitbucket.org/circleci/go-tool
|
||||
working_directory: /root/go/src/yunion.io/x/onecloud
|
||||
resource_class: large
|
||||
parallelism: 1
|
||||
working_directory: /root/go/onecloud
|
||||
parallelism: 4
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: onecloud-build-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
|
||||
paths:
|
||||
- /root/.cache/go-build
|
||||
- run:
|
||||
command: |
|
||||
make -j3 check
|
||||
make test
|
||||
targets="$(circleci tests glob "cmd/*" | grep -v cmd/host-image | circleci tests split)"
|
||||
echo $targets | tr ' ' '\n'
|
||||
make $targets
|
||||
make -j3 $targets
|
||||
ls -lh _output/bin/
|
||||
- save_cache:
|
||||
key: onecloud-build-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
|
||||
paths:
|
||||
- /root/.cache/go-build
|
||||
- store_artifacts:
|
||||
path: _output/
|
||||
|
||||
test:
|
||||
requires:
|
||||
- check
|
||||
docker:
|
||||
- image: yunionio/centos-build:1.0-1
|
||||
environment:
|
||||
GO111MODULE: "on"
|
||||
working_directory: /root/go/onecloud
|
||||
parallelism: 4
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: onecloud-test-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
|
||||
paths:
|
||||
- /root/.cache/go-build
|
||||
- run:
|
||||
name: unit_test
|
||||
command: |
|
||||
./scripts/coverage.sh --codecov
|
||||
- save_cache:
|
||||
key: onecloud-test-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
|
||||
paths:
|
||||
- /root/.cache/go-build
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build_and_test:
|
||||
jobs:
|
||||
- test
|
||||
- check
|
||||
- build:
|
||||
requires:
|
||||
- check
|
||||
- test:
|
||||
requires:
|
||||
- check
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
_output/alpine-build/_cache
|
||||
pkg
|
||||
vendor
|
||||
cmd
|
||||
locales
|
||||
docs
|
||||
scripts
|
||||
@@ -1,3 +0,0 @@
|
||||
[*.sh]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
13
.github/ISSUE_TEMPLATE/bug_report.md
vendored
13
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -9,10 +9,13 @@ assignees: ''
|
||||
|
||||
**What happened**:
|
||||
|
||||
**Environment**:
|
||||
**What you expected to happen**:
|
||||
|
||||
- OS (e.g. `cat /etc/os-release`):
|
||||
**How to reproduce it**:
|
||||
|
||||
**Anything else we need to know?**:
|
||||
|
||||
**Environment**:
|
||||
- OS (e.g: `cat /etc/os-release`):
|
||||
- Kernel (e.g. `uname -a`):
|
||||
<!--
|
||||
- Version (e.g. `climc version-list`):
|
||||
-->
|
||||
- Others:
|
||||
|
||||
12
.github/ISSUE_TEMPLATE/document_request.md
vendored
12
.github/ISSUE_TEMPLATE/document_request.md
vendored
@@ -1,12 +0,0 @@
|
||||
---
|
||||
name: Document Request
|
||||
about: Document request to this project
|
||||
title: ''
|
||||
labels:
|
||||
- area/docs
|
||||
- enhancement
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**What part of the document needs to be added**:
|
||||
6
.github/ISSUE_TEMPLATE/feature_request.md
vendored
6
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -1,5 +1,5 @@
|
||||
---
|
||||
name: Feature Request
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: feature
|
||||
@@ -7,4 +7,8 @@ assignees: ''
|
||||
|
||||
---
|
||||
|
||||
<!-- Please only use this template for submitting feature requests -->
|
||||
|
||||
**What would you like to be added**:
|
||||
|
||||
**Why is this needed**:
|
||||
|
||||
21
.github/pull_request_template.md
vendored
21
.github/pull_request_template.md
vendored
@@ -1,20 +1,15 @@
|
||||
**What this PR does / why we need it**:
|
||||
**这个 PR 实现什么功能/修复什么问题**:
|
||||
|
||||
<!--
|
||||
- [ ] Smoke testing completed
|
||||
- [ ] Unit test written
|
||||
- [ ] 功能、bugfix描述
|
||||
- [ ] 冒烟测试
|
||||
- [ ] 单元测试编写
|
||||
-->
|
||||
|
||||
**Does this PR need to be backport to the previous release branch?**:
|
||||
**是否需要 backport 到之前的 release 分支**:
|
||||
|
||||
<!--
|
||||
If no, just write "NONE".
|
||||
|
||||
If don't know, write "UNKNOWN", and let the reviewer decide.
|
||||
|
||||
If yes, write the release branches name in the below format and submit the related cherry-pick PR:
|
||||
- release/3.7
|
||||
- release/3.6
|
||||
|
||||
Take a look at "https://www.cloudpods.org/en/docs/contribute/contrib/" to learn how to submit a cherry-pick PR.
|
||||
如果不需要,填写 "NONE".
|
||||
如果需要,就以下面 item 的格式写 release 分支名,并提交对应的 cherry-pick PR:
|
||||
- release/3.2
|
||||
-->
|
||||
|
||||
38
.github/workflows/ci-pr-build-test.yml
vendored
38
.github/workflows/ci-pr-build-test.yml
vendored
@@ -1,38 +0,0 @@
|
||||
name: Building and test for PR
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Install check tools
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
git clone --branch yun --depth 4 https://github.com/yousong/tools && cd tools
|
||||
go build ./cmd/goimports && sudo cp goimports /usr/bin/ && cd .. && rm -rf tools
|
||||
git clone --depth 4 https://github.com/yousong/y18n && cd y18n
|
||||
go build . && sudo cp y18n /usr/bin && cd .. && rm -rf y18n
|
||||
|
||||
|
||||
- name: Test and build
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
make -j3 check
|
||||
make test
|
||||
targets="$(find cmd -mindepth 1 -maxdepth 1 -type d | grep -v cmd/host-image)"
|
||||
echo $targets | tr ' ' '\n'
|
||||
make $targets
|
||||
ls -lh _output/bin
|
||||
233
.github/workflows/docker.yml
vendored
Normal file
233
.github/workflows/docker.yml
vendored
Normal file
@@ -0,0 +1,233 @@
|
||||
name: Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- releases/*
|
||||
#paths:
|
||||
#- 'cmd/*'
|
||||
#- 'pkg/*'
|
||||
#- 'vendor/*'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Set up Go 1.14
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.14
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install librados-dev librbd-dev # baremetal-agent needs this
|
||||
make cmd/baremetal-agent && ./scripts/bundle_libraries.sh _output/bin/bundles/baremetal-agent _output/bin/baremetal-agent
|
||||
make docker-alpine-build F='-j4 cmd/host cmd/vpcagent cmd/region-dns make cmd/apigateway cmd/climc cmd/keystone make cmd/logger cmd/region cmd/scheduler cmd/webconsole make cmd/yunionconf cmd/glance cmd/torrent cmd/s3gateway make cmd/ansibleserver cmd/cloudnet cmd/notify make cmd/host-deployer make cmd/cloudevent cmd/devtool cmd/cloudid make cmd/*cli make cmd/esxi-agent'
|
||||
- name: Image region
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/region
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.region
|
||||
|
||||
- name: Image host
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/host
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.host
|
||||
|
||||
- name: Image host-deployer
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/host-deployer
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.host-deployer
|
||||
|
||||
- name: Image baremetal-agent
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/baremetal-agent
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.baremetal-agent
|
||||
|
||||
- name: Image esxi-agent
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/esxi-agent
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.esxi-agent
|
||||
|
||||
- name: Image vpcagent
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/vpcagent
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.vpcagent
|
||||
|
||||
- name: Image climc
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/climc
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.climc
|
||||
|
||||
- name: Image keystone
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/keystone
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.keystone
|
||||
|
||||
- name: Image logger
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/logger
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.logger
|
||||
|
||||
- name: Image scheduler
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/scheduler
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.scheduler
|
||||
|
||||
- name: Image apigateway
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/apigateway
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.apigateway
|
||||
|
||||
- name: Image s3gateway
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/s3gateway
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.s3gateway
|
||||
|
||||
- name: Image ansibleserver
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.ansibleserver
|
||||
|
||||
- name: Image cloudnet
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/cloudnet
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.cloudnet
|
||||
|
||||
- name: Image glance
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/glance
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.glance
|
||||
|
||||
- name: Image notify
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/notify
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.notify
|
||||
|
||||
- name: Image cloudevent
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/cloudevent
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.cloudevent
|
||||
|
||||
- name: Image cloudid
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/cloudid
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.cloudid
|
||||
|
||||
- name: Image devtool
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/devtool
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.devtool
|
||||
|
||||
- name: Image region DNS
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: registry.cn-beijing.aliyuncs.com/yunionio/region-dns
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
snapshot: true
|
||||
dockerfile: build/docker/Dockerfile.region-dns
|
||||
52
.github/workflows/docker_apigateway.yml
vendored
52
.github/workflows/docker_apigateway.yml
vendored
@@ -1,52 +0,0 @@
|
||||
name: Apigateway Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/appsrv/**.go'
|
||||
- 'pkg/cloudcommon/db/**.go'
|
||||
- 'pkg/apigateway/**.go'
|
||||
- 'pkg/apis/apigateway/**.go'
|
||||
- 'pkg/mcclient/modules/**.go'
|
||||
jobs:
|
||||
build_apigateway:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image apigateway
|
||||
50
.github/workflows/docker_climc.yml
vendored
50
.github/workflows/docker_climc.yml
vendored
@@ -1,50 +0,0 @@
|
||||
name: Climc Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'cmd/climc/**.go'
|
||||
- 'pkg/mcclient/**.go'
|
||||
- 'vendor/yunion.io/x/structarg/**.go'
|
||||
jobs:
|
||||
build_climc:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image climc
|
||||
51
.github/workflows/docker_cloudmon.yml
vendored
51
.github/workflows/docker_cloudmon.yml
vendored
@@ -1,51 +0,0 @@
|
||||
name: Cloudmon Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/appsrv/**.go'
|
||||
- 'pkg/cloudmon/**.go'
|
||||
- 'vendor/yunion.io/x/cloudmux/pkg/multicloud/loader/**.go'
|
||||
|
||||
jobs:
|
||||
build_webconsole:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image cloudmon
|
||||
49
.github/workflows/docker_esxi_agent.yml
vendored
49
.github/workflows/docker_esxi_agent.yml
vendored
@@ -1,49 +0,0 @@
|
||||
name: Esxi Agent Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/esxi/**.go'
|
||||
|
||||
jobs:
|
||||
build_webconsole:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image esxi-agent
|
||||
53
.github/workflows/docker_glance.yml
vendored
53
.github/workflows/docker_glance.yml
vendored
@@ -1,53 +0,0 @@
|
||||
name: Glance Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/appsrv/**.go'
|
||||
- 'pkg/cloudcommon/db/**.go'
|
||||
- 'pkg/image/**.go'
|
||||
- 'pkg/apis/image/**.go'
|
||||
- 'vendor/yunion.io/x/sqlchemy/**.go'
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_glance:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image glance
|
||||
49
.github/workflows/docker_host.yml
vendored
49
.github/workflows/docker_host.yml
vendored
@@ -1,49 +0,0 @@
|
||||
name: Host Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/hostman/**.go'
|
||||
- 'pkg/apis/host/**.go'
|
||||
jobs:
|
||||
build_host:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image host
|
||||
53
.github/workflows/docker_keystone.yml
vendored
53
.github/workflows/docker_keystone.yml
vendored
@@ -1,53 +0,0 @@
|
||||
name: Keystone Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/appsrv/**.go'
|
||||
- 'pkg/cloudcommon/db/**.go'
|
||||
- 'pkg/keystone/**.go'
|
||||
- 'pkg/apis/identity/**.go'
|
||||
- 'vendor/yunion.io/x/sqlchemy/**.go'
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_keystone:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image keystone
|
||||
53
.github/workflows/docker_logger.yml
vendored
53
.github/workflows/docker_logger.yml
vendored
@@ -1,53 +0,0 @@
|
||||
name: Logger Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/appsrv/**.go'
|
||||
- 'pkg/cloudcommon/db/**.go'
|
||||
- 'pkg/logger/**.go'
|
||||
- 'pkg/apis/logger/**.go'
|
||||
- 'vendor/yunion.io/x/sqlchemy/**.go'
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_webconsole:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image logger
|
||||
53
.github/workflows/docker_notify.yml
vendored
53
.github/workflows/docker_notify.yml
vendored
@@ -1,53 +0,0 @@
|
||||
name: Notify Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/appsrv/**.go'
|
||||
- 'pkg/cloudcommon/db/**.go'
|
||||
- 'pkg/notify/**.go'
|
||||
- 'pkg/apis/notify/**.go'
|
||||
- 'vendor/yunion.io/x/sqlchemy/**.go'
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_notify:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image notify
|
||||
54
.github/workflows/docker_region.yml
vendored
54
.github/workflows/docker_region.yml
vendored
@@ -1,54 +0,0 @@
|
||||
name: Region Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/appsrv/**.go'
|
||||
- 'pkg/cloudcommon/db/**.go'
|
||||
- 'pkg/compute/**.go'
|
||||
- 'pkg/apis/compute/**.go'
|
||||
- 'vendor/yunion.io/x/cloudmux/**.go'
|
||||
- 'vendor/yunion.io/x/sqlchemy/**.go'
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_region:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image region
|
||||
50
.github/workflows/docker_scheduler.yml
vendored
50
.github/workflows/docker_scheduler.yml
vendored
@@ -1,50 +0,0 @@
|
||||
name: Scheduler Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/scheduler/**.go'
|
||||
- 'pkg/apis/scheduler/**.go'
|
||||
|
||||
jobs:
|
||||
build_webconsole:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image scheduler
|
||||
53
.github/workflows/docker_webconsole.yml
vendored
53
.github/workflows/docker_webconsole.yml
vendored
@@ -1,53 +0,0 @@
|
||||
name: Webconsole Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/appsrv/**.go'
|
||||
- 'pkg/cloudcommon/db/**.go'
|
||||
- 'pkg/webconsole/**.go'
|
||||
- 'pkg/apis/webconsole/**.go'
|
||||
- 'vendor/yunion.io/x/sqlchemy/**.go'
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_webconsole:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.us-west-1.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
|
||||
make image webconsole
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -31,7 +31,6 @@ _output
|
||||
/structargtest
|
||||
.idea
|
||||
.vscode
|
||||
intellij.yaml
|
||||
GPATH
|
||||
GRTAGS
|
||||
GTAGS
|
||||
@@ -41,5 +40,3 @@ pkg/generated
|
||||
|
||||
# gotext extracted
|
||||
out.gotext.json
|
||||
|
||||
pkg/notify/sender/email_test.go
|
||||
|
||||
@@ -1,128 +0,0 @@
|
||||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
and orientation.
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
abuse@cloudpods.org.
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
**Community Impact**: A violation through a single incident or series
|
||||
of actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
like social media. Violating these terms may lead to a temporary or
|
||||
permanent ban.
|
||||
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
communication with the community for a specified period of time. No public or
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.0, available at
|
||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||
|
||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||
enforcement ladder](https://github.com/mozilla/diversity).
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see the FAQ at
|
||||
https://www.contributor-covenant.org/faq. Translations are available at
|
||||
https://www.contributor-covenant.org/translations.
|
||||
@@ -1,51 +1,3 @@
|
||||
# Contribution Guide
|
||||
|
||||
[English](CONTRIBUTING.md) | [中文](CONTRIBUTING_zh.md)
|
||||
|
||||
You can help to make Cloudpods better! There are many things you can do:
|
||||
|
||||
## Help others know Cloudpods
|
||||
|
||||
First of all, the easiest way to contribute to Cloudpods is to let more people know Cloudpods. To share your experience of Cloudpods. Hopefully Cloudpods may help resolve the issues in their daily jobs.
|
||||
|
||||
## Report Bugs
|
||||
|
||||
Cloudpods is an infrastructure management tool. Even though it has been thourougly tested and codes have been peer reviwed before merge, due to its complexity, you may still encounter bugs when using Cloudpods. This is frustrating. However, please do not hesitate to submit a issue at Github. The issue may help developers to improve the codes and make Cloudpods more and more robust. Meanwhile, the answer to the issues may also help others who have the similar bugs.
|
||||
|
||||
## Answer issues
|
||||
|
||||
You may answer issues at Github and help those who encounter issues when using Cloudpods. Sometimes, the issues are not due to bugs in codes but simplely because of misconfigurations, environment or misunderstandings.
|
||||
|
||||
## Contribute codes
|
||||
|
||||
You are welcome to contribute codes to Cloudpods. Please refers to [CONTRIBUTING](https://www.cloudpods.org/en/docs/contribute/contrib/) for more details on how to contribute codes to Cloudpods.
|
||||
|
||||
### Fix Issues
|
||||
|
||||
You may help solve bugs by submiting patches.
|
||||
|
||||
|
||||
### New Features
|
||||
|
||||
You may help improve the codes of Cloudpods, including:
|
||||
|
||||
* Develop new features for Cloudpods
|
||||
* Recode some part of Cloudpods so as to make the code easier to be understood, or less error-prone, or more efficient
|
||||
|
||||
## Documentation
|
||||
|
||||
You may help improve documentations of Cloudpds by directly make pull request to documentations. Once the Pull Request is accepted and merged, the documentations will be updated immediately.
|
||||
|
||||
## Translation
|
||||
|
||||
You may help translate the UI texts or documents of Cloudpds to other languages. Currently, we support Simplified Chinese and English.
|
||||
|
||||
## Write articles
|
||||
|
||||
You are also welcome to write articles about Cloudpods and sharing your experience with others. The content of the articles may include the following but not be limited to:
|
||||
* Your user experiences with Cloudpods
|
||||
* Your opinion about the direction and area of Cloudpods
|
||||
* Comparison with other cloud platforms
|
||||
* Benchmarks
|
||||
|
||||
# 开发贡献参考
|
||||
|
||||
详情见文档 [开发贡献](https://docs.yunion.io/docs/contribute/)
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
# 贡献指南
|
||||
|
||||
[English](CONTRIBUTING.md) | [中文](CONTRIBUTING_zh.md)
|
||||
|
||||
如果您对Cloudpods感兴趣并且愿意为Cloudpods贡献,可以通过以下任意方式贡献您的力量,使得Cloudpods变得更完善。
|
||||
|
||||
## 让别人知道Cloudpods
|
||||
|
||||
最简单的方式就是让更多的人知道Cloudpods,向他们分享您对Cloudpds的看法和使用经验,向他们推荐Cloudpods。很有可能,在您的推荐下,他们开始使用Cloudpods,并解决了他们在工作中遇到的基础设施管理问题。
|
||||
|
||||
## 报告BUG
|
||||
|
||||
Cloudpods是一款开源的基础设施管理工具软件,运行场景复杂。尽管在开发阶段开发者很有可能已经进行了详尽的测试,但难免在实际运行中还会遇到各种意想不到的bug。遇到这种情况,请不要犹豫在Github上提交一个issue。这能帮助开发者更好地改进代码逻辑,使得Cloudpods越来越鲁棒。同时,issue的解答记录也能帮助到遇到类似问题的其他人。
|
||||
|
||||
## 回答问题
|
||||
|
||||
有时候,人们在使用Cloudpods中遇到的问题并不是因为Cloudpods软件缺陷造成的,而是因为配置错误,环境因素或者误会导致的。这样的问题也许只需要简单地一两句就能解答,不需要代码的修改。您可以在Github回答issue或者社区群中回答提问,帮助那些在使用Cloudpods中遇到问题的人。
|
||||
|
||||
## 贡献代码
|
||||
|
||||
我们非常欢迎和感谢开发者向项目提交代码PR,流程细节请查看 [CONTRIBUTING](https://www.cloudpods.org/zh/docs/contribute/contrib/).
|
||||
|
||||
### 修复BUG
|
||||
|
||||
您可以通过提交代码补丁来修复Cloudpods存在的BUG。
|
||||
|
||||
### 开发新的功能特性
|
||||
|
||||
不仅仅是修复BUG,您也可以通过提交代码以改进Cloudpods,包括但不限于:
|
||||
* 开发新的功能特性,您可以在[Cloudpods Roadmap](https://www.cloudpods.org/zh/docs/roadmap/)找到Cloudpods的功能规划
|
||||
* 重构代码,使得代码更加简洁易读,更加低健壮,或者执行起来更加高效
|
||||
|
||||
## 文档
|
||||
|
||||
您也可以通过给文档提交PR来改进Cloudpods的文档。一旦您的PR被接收并合并,Cloudpods的在线文档就能及时地自动更新。
|
||||
|
||||
## 翻译
|
||||
|
||||
您也可以帮助翻译Cloudpods,要么翻译UI界面的i18n配置文件,要么翻译文档,使得Cloudpods支持更多的语言。目前,Cloudpods支持简体中文和英文。
|
||||
|
||||
## 写文章
|
||||
|
||||
另外,欢迎您写关于Cloudpods的文章,通过文字分享您使用Cloudpods的经验和技巧。文章可以包括但不限于如下内容:
|
||||
* 使用Cloudpods的体验
|
||||
* Cloudpods技术领域的观点
|
||||
* 和其他竞品的比较
|
||||
* 性能评测
|
||||
|
||||
2
LICENSE
2
LICENSE
@@ -186,7 +186,7 @@
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
Copyright [2018] [Yunion Technology]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
||||
181
Makefile
181
Makefile
@@ -6,11 +6,10 @@ ROOT_DIR := $(CURDIR)
|
||||
BUILD_DIR := $(ROOT_DIR)/_output
|
||||
BIN_DIR := $(BUILD_DIR)/bin
|
||||
BUILD_SCRIPT := $(ROOT_DIR)/build/build.sh
|
||||
DEB_BUILD_SCRIPT := $(ROOT_DIR)/build/build_deb.sh
|
||||
|
||||
ifeq ($(ONECLOUD_CI_BUILD),)
|
||||
GIT_COMMIT := $(shell git rev-parse --short HEAD)
|
||||
GIT_BRANCH := $(shell git branch -r --contains | head -1 | sed -E -e "s%(HEAD ->|origin|upstream)/?%%g" | xargs)
|
||||
GIT_BRANCH := $(shell git name-rev --name-only HEAD)
|
||||
GIT_VERSION := $(shell git describe --always --tags --abbrev=14 $(GIT_COMMIT)^{commit})
|
||||
GIT_TREE_STATE := $(shell s=`git status --porcelain 2>/dev/null`; if [ -z "$$s" ]; then echo "clean"; else echo "dirty"; fi)
|
||||
BUILD_DATE := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
|
||||
@@ -49,7 +48,7 @@ CGO_LDFLAGS_ENV = $(shell go env CGO_LDFLAGS)
|
||||
|
||||
ifdef LIBQEMUIO_PATH
|
||||
X_CGO_CFLAGS := ${CGO_CFLAGS_ENV} -I${LIBQEMUIO_PATH}/src -I${LIBQEMUIO_PATH}/src/include
|
||||
X_CGO_LDFLAGS := ${CGO_LDFLAGS_ENV} -laio -lqemuio -lpthread -lgnutls -lnettle -L ${LIBQEMUIO_PATH}/src
|
||||
X_CGO_LDFLAGS := ${CGO_LDFLAGS_ENV} -laio -lqemuio -lpthread -L ${LIBQEMUIO_PATH}/src
|
||||
endif
|
||||
|
||||
export GOOS ?= linux
|
||||
@@ -65,7 +64,6 @@ endif
|
||||
|
||||
cmdTargets:=$(filter-out cmd/host-image,$(wildcard cmd/*))
|
||||
rpmTargets:=$(foreach b,$(patsubst cmd/%,%,$(cmdTargets)),$(if $(shell [ -f "$(CURDIR)/build/$(b)/vars" ] && echo 1),rpm/$(b)))
|
||||
debTargets:=$(foreach b,$(patsubst cmd/%,%,$(cmdTargets)),$(if $(shell [ -f "$(CURDIR)/build/$(b)/vars" ] && echo 1),deb/$(b)))
|
||||
|
||||
all: build
|
||||
|
||||
@@ -86,10 +84,7 @@ test:
|
||||
vet:
|
||||
go vet ./...
|
||||
|
||||
# cmd/esxi-agent: prepare_dir
|
||||
# CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
|
||||
|
||||
cmd/fetcherfs: prepare_dir
|
||||
cmd/esxi-agent: prepare_dir
|
||||
CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
|
||||
|
||||
cmd/%: prepare_dir
|
||||
@@ -98,36 +93,15 @@ cmd/%: prepare_dir
|
||||
rpm/%: cmd/%
|
||||
$(BUILD_SCRIPT) $*
|
||||
|
||||
deb/%: cmd/%
|
||||
$(DEB_BUILD_SCRIPT) $*
|
||||
|
||||
pkg/%: prepare_dir
|
||||
$(GO_INSTALL) $(REPO_PREFIX)/$@
|
||||
|
||||
rpm/fetcherfs: cmd/fetcherfs
|
||||
docker run --rm \
|
||||
--name docker-centos-build-fetcherfs \
|
||||
-v $(CURDIR):/data \
|
||||
registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-4 \
|
||||
/bin/bash -c "VERSION=3.6 /data/build/build.sh fetcherfs /opt/yunion/fetchclient/bin"
|
||||
|
||||
deb/fetcherfs: rpm/fetcherfs
|
||||
#VERSION=3.6 $(DEB_BUILD_SCRIPT) fetcherfs /opt/yunion/fetchclient/bin
|
||||
docker run --rm \
|
||||
--name docker-debian-build-fetcherfs \
|
||||
-v $(CURDIR):/data \
|
||||
registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0 \
|
||||
/data/build/convert_rpm2deb.sh
|
||||
|
||||
build:
|
||||
$(MAKE) $(cmdTargets)
|
||||
|
||||
rpm:
|
||||
$(MAKE) $(rpmTargets)
|
||||
|
||||
deb:
|
||||
$(MAKE) $(debTargets)
|
||||
|
||||
rpmclean:
|
||||
rm -fr $(BUILD_DIR)/rpms
|
||||
|
||||
@@ -152,11 +126,6 @@ clean:
|
||||
fmt:
|
||||
@git ls-files --exclude '*' '*.go' \
|
||||
| grep -v '^vendor/' \
|
||||
| while read f; do \
|
||||
if ! grep -m1 -q '^// Code generated .* DO NOT EDIT\.$$' "$$f"; then \
|
||||
echo "$$f"; \
|
||||
fi ; \
|
||||
done \
|
||||
| xargs $(XARGS_FLAGS) gofmt -w
|
||||
|
||||
fmt-check: fmt
|
||||
@@ -199,68 +168,10 @@ vet-check:
|
||||
./scripts/vet.sh chk
|
||||
.PHONY: vet-check
|
||||
|
||||
comma:=,
|
||||
space:=$(space) $(space)
|
||||
# NOTE: keep y18n-packages in alphabetical order
|
||||
y18n-src-lang := en-US
|
||||
y18n-lang := en-US,zh-CN
|
||||
y18n-packages := \
|
||||
yunion.io/x/onecloud/cmd/apigateway \
|
||||
yunion.io/x/onecloud/cmd/keystone \
|
||||
yunion.io/x/onecloud/cmd/monitor \
|
||||
yunion.io/x/onecloud/cmd/region \
|
||||
yunion.io/x/onecloud/cmd/yunionconf \
|
||||
|
||||
define y18n-gen
|
||||
set -o errexit; \
|
||||
set -o pipefail; \
|
||||
export GO111MODULE=off; \
|
||||
y18n \
|
||||
-chdir $(CURDIR) \
|
||||
-dir ./locales/ \
|
||||
-out ./locales/locales.go \
|
||||
-lang $(y18n-lang) \
|
||||
$(y18n-packages) \
|
||||
; \
|
||||
$(foreach lang,$(filter-out $(y18n-src-lang),$(subst $(comma), ,$(y18n-lang))),cp ./locales/$(lang)/{out,messages}.gotext.json;) \
|
||||
|
||||
endef
|
||||
|
||||
y18n-gen:
|
||||
$(y18n-gen)
|
||||
$(y18n-gen)
|
||||
|
||||
.PHONY: y18n-gen
|
||||
|
||||
y18n-check:
|
||||
$(y18n-gen)
|
||||
if git status --short ./locales | sed 's/^/$@: /' | grep .; then \
|
||||
echo "$@: Locales content needs care" >&2 ; \
|
||||
false; \
|
||||
fi
|
||||
|
||||
.PHONY: y18n-check
|
||||
|
||||
define hostdeployer-grpc-gen
|
||||
set -o errexit; \
|
||||
set -o pipefail; \
|
||||
protoc -I pkg/hostman/hostdeployer/apis \
|
||||
--go_out=pkg/hostman/hostdeployer/apis \
|
||||
--go_opt=paths=source_relative \
|
||||
--go-grpc_out=pkg/hostman/hostdeployer/apis \
|
||||
--go-grpc_opt=paths=source_relative \
|
||||
pkg/hostman/hostdeployer/apis/deploy.proto
|
||||
|
||||
endef
|
||||
|
||||
hostdeployer-grpc-gen:
|
||||
$(hostdeployer-grpc-gen)
|
||||
|
||||
check: fmt-check
|
||||
check: gendocgo-check
|
||||
check: goimports-check
|
||||
#check: vet-check
|
||||
#check: y18n-check
|
||||
check: vet-check
|
||||
.PHONY: check
|
||||
|
||||
|
||||
@@ -282,16 +193,74 @@ dep:
|
||||
@echo "$$depDeprecated"
|
||||
@$(MAKE) mod
|
||||
|
||||
RELEASE_BRANCH:=release/3.10
|
||||
GOPROXY ?= direct
|
||||
|
||||
mod:
|
||||
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get -d yunion.io/x/cloudmux@$(RELEASE_BRANCH)
|
||||
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get -d yunion.io/x/sqlchemy@v1.1.2
|
||||
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get -d yunion.io/x/pkg@v1.10.1
|
||||
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get -d $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p' | egrep -v '/cloudmux$$|/sqlchemy$$|/pkg$$'))
|
||||
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go mod tidy
|
||||
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go mod vendor -v
|
||||
go get -d $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p'))
|
||||
go mod tidy
|
||||
go mod vendor -v
|
||||
|
||||
|
||||
DOCKER_CENTOS_BUILD_IMAGE?=registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-1
|
||||
|
||||
define dockerCentOSBuildCmd
|
||||
set -o xtrace
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
cd /root/onecloud
|
||||
export GOFLAGS=-mod=vendor
|
||||
make $(1)
|
||||
chown -R $(shell id -u):$(shell id -g) _output
|
||||
endef
|
||||
|
||||
docker-centos-build: export dockerCentOSBuildCmd:=$(call dockerCentOSBuildCmd,$(F))
|
||||
docker-centos-build:
|
||||
docker rm --force onecloud-ci-build &>/dev/null || true
|
||||
docker run \
|
||||
--name onecloud-docker-centos-build \
|
||||
--rm \
|
||||
--volume $(CURDIR):/root/onecloud \
|
||||
--volume $(CURDIR)/_output/_cache:/root/.cache \
|
||||
$(DOCKER_CENTOS_BUILD_IMAGE) \
|
||||
/bin/bash -c "$$dockerCentOSBuildCmd"
|
||||
chown -R $$(id -u):$$(id -g) _output
|
||||
ls -lh _output/bin
|
||||
|
||||
# NOTE we need a way to stop and remove the container started by docker-build.
|
||||
# No --tty, --stop-signal won't work
|
||||
docker-centos-build-stop:
|
||||
docker stop --time 0 onecloud-docker-centos-build || true
|
||||
|
||||
.PHONY: docker-centos-build
|
||||
.PHONY: docker-centos-build-stop
|
||||
|
||||
DOCKER_ALPINE_BUILD_IMAGE?=registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-3
|
||||
|
||||
define dockerAlpineBuildCmd
|
||||
set -o xtrace
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
cd /root/go/src/yunion.io/x/onecloud
|
||||
export GOFLAGS=-mod=vendor
|
||||
make $(1)
|
||||
chown -R $(shell id -u):$(shell id -g) _output
|
||||
endef
|
||||
|
||||
docker-alpine-build: export dockerAlpineBuildCmd:=$(call dockerAlpineBuildCmd,$(F))
|
||||
docker-alpine-build:
|
||||
docker rm --force onecloud-docker-alpine-build &>/dev/null || true
|
||||
docker run --rm \
|
||||
--name onecloud-docker-alpine-build \
|
||||
-v $(CURDIR):/root/go/src/yunion.io/x/onecloud \
|
||||
-v $(CURDIR)/_output/alpine-build:/root/go/src/yunion.io/x/onecloud/_output \
|
||||
-v $(CURDIR)/_output/alpine-build/_cache:/root/.cache \
|
||||
$(DOCKER_ALPINE_BUILD_IMAGE) \
|
||||
/bin/sh -c "$$dockerAlpineBuildCmd"
|
||||
ls -lh _output/alpine-build/bin
|
||||
|
||||
docker-alpine-build-stop:
|
||||
docker stop --time 0 onecloud-docker-alpine-build || true
|
||||
|
||||
.PHONY: docker-alpine-build
|
||||
.PHONY: docker-alpine-build-stop
|
||||
|
||||
define helpText
|
||||
Build with docker
|
||||
@@ -344,17 +313,11 @@ REGISTRY ?= "registry.cn-beijing.aliyuncs.com/yunionio"
|
||||
VERSION ?= $(shell git describe --exact-match 2> /dev/null || \
|
||||
git describe --match=$(git rev-parse --short=8 HEAD) --always --dirty --abbrev=8)
|
||||
|
||||
image:
|
||||
image: clean
|
||||
mkdir -p $(ROOT_DIR)/_output
|
||||
DEBUG=$(DEBUG) ARCH=$(ARCH) TAG=$(VERSION) REGISTRY=$(REGISTRY) $(ROOT_DIR)/scripts/docker_push.sh $(filter-out $@,$(MAKECMDGOALS))
|
||||
|
||||
.PHONY: image
|
||||
|
||||
image-telegraf-raid-plugin:
|
||||
VERSION=release-1.6.5 ARCH=all make image telegraf-raid-plugin
|
||||
|
||||
%:
|
||||
@:
|
||||
|
||||
ModName:=yunion.io/x/onecloud
|
||||
include $(CURDIR)/Makefile.common.mk
|
||||
|
||||
@@ -1,88 +0,0 @@
|
||||
ifeq ($(__inc_Makefile_common_mk),)
|
||||
__inc_Makefile_common_mk:=1
|
||||
|
||||
ifeq ($(ModName),)
|
||||
$(error ModName must be set, e.g. yunion.io/x/onecloud)
|
||||
endif
|
||||
|
||||
ModBaseName:=$(notdir $(ModName))
|
||||
|
||||
DockerImageRegistry?=registry.cn-beijing.aliyuncs.com
|
||||
DockerImageAlpineBuild?=$(DockerImageRegistry)/yunionio/alpine-build:3.16.0-go-1.18.2-0
|
||||
DockerImageCentOSBuild?=$(DockerImageRegistry)/yunionio/centos-build:go-1.18.3-0
|
||||
|
||||
EnvIf=$(if $($(1)),$(1)=$($(1)))
|
||||
|
||||
define dockerCentOSBuildCmd
|
||||
set -o xtrace
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
git config --global --add safe.directory /root/go/src/yunion.io/x/$(ModBaseName)
|
||||
cd /root/go/src/yunion.io/x/$(ModBaseName)
|
||||
env \
|
||||
$(call EnvIf,GOARCH) \
|
||||
$(call EnvIf,GOOS) \
|
||||
$(call EnvIf,CGO_ENABLED) \
|
||||
make $(1)
|
||||
chown -R $(shell id -u):$(shell id -g) _output
|
||||
endef
|
||||
|
||||
tmpName=$(ModBaseName)-$(shell date +"%Y%m%d.%H%M%S%3N")
|
||||
|
||||
docker-centos-build: export dockerCentOSBuildCmd:=$(call dockerCentOSBuildCmd,$(F))
|
||||
docker-centos-build:
|
||||
docker rm --force docker-centos-build-$(tmpName) &>/dev/null || true
|
||||
docker run \
|
||||
--rm \
|
||||
--name docker-centos-build-$(tmpName) \
|
||||
-v $(CURDIR):/root/go/src/yunion.io/x/$(ModBaseName) \
|
||||
-v $(CURDIR)/_output/centos-build:/root/go/src/yunion.io/x/$(ModBaseName)/_output \
|
||||
-v $(CURDIR)/_output/centos-build/_cache:/root/.cache \
|
||||
$(DockerImageCentOSBuild) \
|
||||
/bin/bash -c "$$dockerCentOSBuildCmd"
|
||||
ls -lh _output/centos-build/bin
|
||||
|
||||
# NOTE we need a way to stop and remove the container started by docker-build.
|
||||
# No --tty, --stop-signal won't work
|
||||
docker-centos-build-stop:
|
||||
docker stop --time 0 docker-centos-build-$(tmpName) || true
|
||||
|
||||
.PHONY: docker-centos-build
|
||||
.PHONY: docker-centos-build-stop
|
||||
|
||||
|
||||
define dockerAlpineBuildCmd
|
||||
set -o xtrace
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
git config --global --add safe.directory /root/go/src/yunion.io/x/$(ModBaseName)
|
||||
cd /root/go/src/yunion.io/x/$(ModBaseName)
|
||||
git config --global --add safe.directory /root/go/src/yunion.io/x/onecloud
|
||||
env \
|
||||
$(call EnvIf,GOARCH) \
|
||||
$(call EnvIf,GOOS) \
|
||||
$(call EnvIf,CGO_ENABLED) \
|
||||
make $(1)
|
||||
chown -R $(shell id -u):$(shell id -g) _output
|
||||
endef
|
||||
|
||||
docker-alpine-build: export dockerAlpineBuildCmd:=$(call dockerAlpineBuildCmd,$(F))
|
||||
docker-alpine-build:
|
||||
docker rm --force docker-alpine-build-$(tmpName) &>/dev/null || true
|
||||
docker run \
|
||||
--rm \
|
||||
--name docker-alpine-build-$(tmpName) \
|
||||
-v $(CURDIR):/root/go/src/yunion.io/x/$(ModBaseName) \
|
||||
-v $(CURDIR)/_output/alpine-build:/root/go/src/yunion.io/x/$(ModBaseName)/_output \
|
||||
-v $(CURDIR)/_output/alpine-build/_cache:/root/.cache \
|
||||
$(DockerImageAlpineBuild) \
|
||||
/bin/sh -c "$$dockerAlpineBuildCmd"
|
||||
ls -lh _output/alpine-build/bin
|
||||
|
||||
docker-alpine-build-stop:
|
||||
docker stop --time 0 docker-alpine-build-$(tmpName) || true
|
||||
|
||||
.PHONY: docker-alpine-build
|
||||
.PHONY: docker-alpine-build-stop
|
||||
|
||||
endif # __inc_Makefile_common_mk
|
||||
6
OWNERS
6
OWNERS
@@ -4,6 +4,12 @@ reviewers:
|
||||
- ioito
|
||||
- swordqiu
|
||||
- tb365
|
||||
- wanyaoqi
|
||||
- yousong
|
||||
- zhaoxiangchun
|
||||
- zhasm
|
||||
approvers:
|
||||
- swordqiu
|
||||
- yousong
|
||||
- wanyaoqi
|
||||
- Zexi
|
||||
|
||||
278
README-CN.md
278
README-CN.md
@@ -1,284 +1,54 @@
|
||||
# Cloudpods
|
||||
# Yunion OneCloud (云联融合云)
|
||||
|
||||
[](https://circleci.com/gh/yunionio/cloudpods)
|
||||
[](https://travis-ci.org/yunionio/cloudpods)
|
||||
[](https://goreportcard.com/report/github.com/yunionio/cloudpods)
|
||||
[](https://circleci.com/gh/yunionio/onecloud)
|
||||
[](https://travis-ci.org/yunionio/onecloud)
|
||||
[](https://goreportcard.com/report/github.com/yunionio/onecloud)
|
||||
|
||||
## Cloudpods是什么?
|
||||
## 什么是云联融合云?
|
||||
|
||||
<img src="https://www.cloudpods.org/images/cloudpods_logo_green.png" alt="Cloudpods" height="100">
|
||||
云联融合云(Yunion OneCloud)是一个开源的多云平台。融合云构建在用户分布于多云基础设施之上,通过技术手段将分布于多云的异构IT资源统一管理,将多底层多云的差异向用户屏蔽,并通过网络和调度实现资源的融合与打通,在多云之上进行抽象,向用户呈现统一的使用界面和API接口,让用户就像使用一个云平台一样使用分布于多云的资源,实现一个统一的“云上之云”的云平台。
|
||||
|
||||
Cloudpods是一个开源的Golang实现的云原生的融合多云/混合云的云平台,也就是一个“云上之云”。Cloudpods不仅可以管理本地的虚拟机和物理机资源,还可以管理多个云平台和云账号。Cloudpods隐藏了这些异构基础设施资源的数据模型和API的差异,对外暴露了一套统一的API,允许用户就像用一个云一样地访问多云。从而大大降低了访问多云的复杂度,提升了管理多云的效率。
|
||||
鉴于企业IT基础设施的两个趋势:1. 企业使用多云基础设施,并且公有云是最主要的基础设施提供者;2. 企业应用将逐步云原生化,企业IT基础设施需要为Kubernetes优化。融合云为此架构而设计。一方面抽象管理底层的多云基础设施,另一方面为多云Kubernetes提供运行环境。融合云为企业未来的的IT基础设施架构而设计。
|
||||
|
||||
## 谁需要Cloudpods?
|
||||
云联融合云具备以下功能特性:
|
||||
|
||||
* 将几台物理服务器虚拟化成一个私有云平台
|
||||
* 需要一个紧凑而且功能相对完整的物理机全生命周期管理工具
|
||||
* 将VMware vSphere虚拟化集群转换为一个可以自服务的私有云平台
|
||||
* 在混合云的场景,能够在一个界面访问私有云和公有云
|
||||
* 通过一个集中的入口访问分布在多个公有云平台上的多个账号
|
||||
* 当前只使用一个云公有云账号但希望将来使用多云的用户
|
||||
- 多云资源统一管理
|
||||
|
||||
## 功能
|
||||
统一API、镜像、调度、账号体系、监控和计费等操作,能够全面管理 On premises、 私有云、公有云资源。
|
||||
|
||||
### 概览 & UI 展示
|
||||
- 内置私有云
|
||||
|
||||
<details>
|
||||
<summary>管理多云资源的功能,可以管理大多数的主流云,包括私有云,例如OpenStack,以及公有云,例如AWS,Azure,GCP,阿里云,华为云和腾讯云等</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>云帐号纳管</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/cloudselect.png" alt="multi cloud management">
|
||||
</li>
|
||||
<li>
|
||||
<p>云帐号列表</p>
|
||||
<img src="https://i.imgur.com/Q0LipfI.png" alt="cloud account list">
|
||||
</li>
|
||||
<li>
|
||||
<p>公有云虚拟机列表</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/publicvmlist.png">
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
OneCloud内置完备的私有云实现,提供对用户本地IDC的虚拟机、物理机和负载均衡等资源管理。
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
一个可以管理海量KVM虚拟机的轻量级私有云
|
||||
</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>虚拟机列表</p>
|
||||
<img src="https://i.imgur.com/DbkRUoo.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>虚拟机创建页面</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createkvmvm1.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createkvmvm2.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>虚拟机可通过 VNC 或者 SSH 登录</p>
|
||||
<img src="https://i.imgur.com/m0rkeQ3.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>宿主机列表</p>
|
||||
<img src="https://imgur.com/i509t5a.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>镜像模板列表</p>
|
||||
<img src="https://imgur.com/UVFLGi2.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>VPC列表</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/vpclist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>二层网络列表(经典网络)</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/wirelist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>IP子网列表</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/ipsubnetlist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>弹性公网IP列表(VPC网络)</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/vpclist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>LB列表</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/lblist.png">
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
- 为多云Kubernetes提供运行环境
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
一个能进行物理机全生命周期管理的裸机云
|
||||
</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>物理机列表</p>
|
||||
<img src="https://i.imgur.com/Jz8b5nC.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>物理机纳管</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/addphysicalmachine.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>安装操作系统</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createbaremetal.png">
|
||||
</li>
|
||||
<li>支持 ARM64 的物理机服务器</li>
|
||||
</ul>
|
||||
</details>
|
||||
OneCloud自身为运行在Kubernetes的云原生应用,并且能在多云环境部署运行Kubernetes集群。
|
||||
|
||||
<details>
|
||||
<summary>一套完整的多租户认证和访问控制体系</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>支持本地sql、LDAP 等认证源</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/idplist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>多租户系统,包括域,项目,组,用户,角色和权限等</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/domainlist.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/projectlist.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/grouplist.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/userlist.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/rolelist.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/policylist.png">
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
实现了VMware vSphere虚拟化集群的自助服务和自动化
|
||||
</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>添加VMware云账号</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createvmware.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>VMware云账号列表</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/vmwarelist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>自动创建二层网络</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/vmwarewirelist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>自动创建IP子网</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/vmwareipsubnetlist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>新建VMware虚拟机</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createvmwarevm1.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createvmwarevm2.png">
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
欢迎安装部署云联融合云,期待大家的反馈!
|
||||
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
允许以统一的联邦身份访问各个云平台的原生控制台的SSO
|
||||
</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>为云账号开启免密登录(以阿里云为例)</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/enablecloudsso.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>将Cloudpods平台用户添加为免密登录用户</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/addsamluser.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>多云统一登录入口</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/cloudssoentry.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>多云统一登录-免密登录用户列表</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/cloudsamluser.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Cloudpods平台用户免密登录阿里云</p>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
## 部署
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
一套功能丰富、统一一致的RESTAPI和模型访问以上的云资源和功能
|
||||
</summary>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
自动将镜像转换为不同云平台需要的格式的多云镜像服务
|
||||
</summary>
|
||||
</details>
|
||||
|
||||
|
||||
### 支持的云平台
|
||||
|
||||
* 公有云:
|
||||
* AWS
|
||||
* Azure
|
||||
* Google Cloud Platform
|
||||
* 阿里云
|
||||
* 华为云
|
||||
* 腾讯云
|
||||
* UCloud
|
||||
* 天翼云
|
||||
* 移动云
|
||||
* 京东云
|
||||
* 私有云:
|
||||
* OpenStack
|
||||
* ZStack
|
||||
* Alibaba Cloud Aspara (阿里飞天)
|
||||
* Huawei HCSO (华为HCSO)
|
||||
* Nutanix
|
||||
* 本地基础设施资源:
|
||||
* 基于 KVM 实现的轻量级私有云
|
||||
* VMWare vSphere vCenter/ESXi
|
||||
* Baremetals (IPMI, Redfish API)
|
||||
* Object storages (Minio, Ceph, XSky)
|
||||
* NAS (Ceph)
|
||||
|
||||
### 支持的云资源
|
||||
|
||||
* Servers: instances, disks, network interfaces, networks, vpcs, storages, hosts, wires, snapshots, snapshot policies, security groups, elastic IPs, SSH keypairs, images
|
||||
* Load Balancers: instances, listeners, backend groups, backends, TSL certificates, ACLs
|
||||
* Object Storage: buckets, objects
|
||||
* NAS: file_systems, access_groups, mount_targets
|
||||
* RDS: instances, accounts, backups, databases, parameters, privileges
|
||||
* Elastic Cache: instances, accounts, backups, parameters
|
||||
* DNS: DNS zones, DNS records
|
||||
* VPC: VPCs, VPC peering, inter-VPC network, NAT gateway, DNAT/SNAT rules, route tables, route entries
|
||||
|
||||
## 安装部署
|
||||
|
||||
- [All in One 安装](https://www.cloudpods.org/zh/docs/quickstart/allinone/):在 CentOS 7 或 Debian 10 等发行版里搭建全功能 Cloudpods 服务,可以快速体验**内置私有云**和**多云管理**的功能。
|
||||
- [Kubernetes Helm 安装](https://www.cloudpods.org/zh/docs/quickstart/k8s/):在已有 Kubernetes 集群上通过 Helm 部署一套 Cloudpods CMP 服务,可以体验**多云管理**的功能。
|
||||
- [Docker Compose 安装](https://www.cloudpods.org/zh/docs/quickstart/docker-compose/):通过 Docker Compose 部署 Cloudpods CMP 服务,可以迅速体验**多云管理**的功能。
|
||||
- [高可用安装](https://www.cloudpods.org/zh/docs/setup/ha-ce/):在生产环境中使用高可用的方式部署 Cloudpods 服务,包括**内置私有云**和**多云管理**的功能。
|
||||
请参考文档 [安装部署](https://docs.yunion.io/docs/setup/) 搭建 OneCloud 集群。
|
||||
|
||||
|
||||
## 文档
|
||||
|
||||
* [Cloudpods文档](https://www.cloudpods.org/zh)
|
||||
- [文档中心](https://docs.yunion.io/)
|
||||
|
||||
* [Swagger API文档](https://www.cloudpods.org/zh/docs/swagger/)
|
||||
- [Swagger API文档](https://docs.yunion.cn/api/)
|
||||
|
||||
## 谁在使用Cloudpods?
|
||||
|
||||
请在[这里](https://github.com/yunionio/cloudpods/issues/11427)查看Cloudpods用户列表。如果你正在使用Cloudpods,欢迎回复留下你的信息。谢谢对Cloudpods的支持!
|
||||
## 架构
|
||||
|
||||
## 联系我们
|
||||

|
||||
|
||||
您可以通过如下方式联系我们:
|
||||
|
||||
* [服务订阅](https://www.yunion.cn/subscription/index.html)
|
||||
|
||||
* 哔哩哔哩: [Cloudpods](https://space.bilibili.com/623431553/)
|
||||
|
||||
* 微信: 请扫描如下二维码联系我们
|
||||
|
||||
<img src="https://www.cloudpods.org/images/contact_me_qr_20210701.png" alt="WeChat QRCode">
|
||||
|
||||
## 版本历史
|
||||
|
||||
请访问[Cloudpods Changelog](https://www.cloudpods.org/zh/docs/changelog/).
|
||||
|
||||
## 开发规划
|
||||
|
||||
请访问[Cloudpods Roadmap](https://www.cloudpods.org/zh/docs/roadmap/).
|
||||
|
||||
## 贡献
|
||||
|
||||
欢迎和感谢任何形式的贡献,不局限于贡献代码,流程细节请查看 [CONTRIBUTING](./CONTRIBUTING_zh.md)。
|
||||
我们非常欢迎和感谢开发者向项目做贡献,流程细节请查看 [CONTRIBUTING.md](./CONTRIBUTING.md) 。
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Apache license 2.0,详情请看 [LICENSE](./LICENSE)。
|
||||
OneCloud 使用 Apache license 2.0. 详情请看 [LICENSE](./LICENSE) 。
|
||||
|
||||
292
README.md
292
README.md
@@ -1,289 +1,55 @@
|
||||
# Cloudpods
|
||||
# Yunion OneCloud
|
||||
|
||||
[](https://circleci.com/gh/yunionio/cloudpods)
|
||||
[](https://travis-ci.com/yunionio/cloudpods/branches)
|
||||
[](https://goreportcard.com/report/github.com/yunionio/cloudpods)
|
||||
[](https://circleci.com/gh/yunionio/onecloud)
|
||||
[](https://travis-ci.com/yunionio/onecloud/branches)
|
||||
[](https://goreportcard.com/report/github.com/yunionio/onecloud)
|
||||
|
||||
[English](./README.md) | [简体中文](./README-CN.md)
|
||||
### [README in Chinese](./README-CN.md)
|
||||
|
||||
## What is Cloudpods?
|
||||
## What is Yunion OneCloud?
|
||||
|
||||
<img src="https://www.cloudpods.org/images/cloudpods_logo_green.png" alt="Cloudpods" height="100">
|
||||
Yunion OneCloud is an open source unified-IaaS cloud platform.
|
||||
|
||||
Cloudpods is a cloud-native open source unified multi/hybrid-cloud platform developed with Golang, i.e. Cloudpods is *a cloud on clouds*. Cloudpods is able to manage not only on-premise KVM/baremetals, but also resources from many cloud accounts across many cloud providers. It hides the differences of underlying cloud providers and exposes one set of APIs that allow programatically interacting with these many clouds.
|
||||
As its name sugguests, 'Yun' means 'cloud' in Chinese and 'Yunion OneCloud' means to unify many distinct clouds into the one that behaves like an integral cloud platform.
|
||||
|
||||
## Who needs Cloudpods?
|
||||
As trends show, the enterprise IT infrastructure in the future would be unavoidably heterogeneous and the public clouds should be the major infrastructure providers for many enterprises. Further, the infrastructure would most likely be prepared for the cloud-native applications running on Kubernetes. Yunion OneCloud is built to provide the cloud architecture for this scenario such that it is the middle layer between the underlying cloud infrustructures and the overlay kubernetes clusters across many clouds.
|
||||
|
||||
* Those who need a simple solution to virtualize a few physical servers into a private cloud
|
||||
* Those who need a compact and fully automatic baremetal lift-cycle management solution
|
||||
* Those who want to turn a VMware vSphere virtualization cluster into a private cloud
|
||||
* Those who need a cohesive view of both public and private cloud in a hybrid cloud setup
|
||||
* Those who need a centric portal to access multiple acccounts from multiple public clouds
|
||||
* Those who is currently using a single cloud account, but will not lose the possibility to adopt multicloud strategy
|
||||
Many may consider Yunion OneCloud as a multi-cloud management platform (MCMP). Rather, we would view it as an IaaS platform as it does not only manage the resources and services from many clouds, but also hides the differences of underlying technologies and exposes one set of APIs that allow programatically interacting with the compute/storage/networking resources across many clouds.
|
||||
|
||||
## Features
|
||||
Yunion OneCloud is working on abstracting APIs for the following resources:
|
||||
|
||||
### Summary & UI
|
||||
* Compute, including virtual machines, images, etc.
|
||||
* Storage, including disks, snapshots, object storages, etc.
|
||||
* Networking, including load balancers, VPC, virtual networks, NAT gateways, security groups, etc.
|
||||
* Accouting and billing, etc.
|
||||
* ...
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
Multi-cloud management that is able to manage a wide range of cloud providers, including private cloud, such as OpenStack, and public clouds, such as AWS, Azure, Google Cloud, Alibaba Cloud, Tencent Cloud, Huawei Cloud, etc.
|
||||
</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Cloud account create form</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/cloudselect.png" alt="multi cloud management">
|
||||
</li>
|
||||
<li>
|
||||
<p>Cloud accounts list</p>
|
||||
<img src="https://i.imgur.com/Q0LipfI.png" alt="cloud account list">
|
||||
</li>
|
||||
<li>
|
||||
<p>Multi public cloud VM list</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/publicvmlist.png">
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
over the following many cloud providers:
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
A light-weight private cloud that manages KVM hypervisor in scale
|
||||
</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>VM instances list</p>
|
||||
<img src="https://i.imgur.com/DbkRUoo.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Create VM instance form</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createkvmvm1.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createkvmvm2.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>VNC and SSH login page</p>
|
||||
<img src="https://i.imgur.com/m0rkeQ3.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Host list</p>
|
||||
<img src="https://imgur.com/i509t5a.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Image template list</p>
|
||||
<img src="https://imgur.com/UVFLGi2.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>VPC list</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/vpclist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Wire list (Classic Network)</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/wirelist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>IPsubnet list</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/ipsubnetlist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Eip list (VPC Network)</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/vpclist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>LB list</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/lblist.png">
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
* On-premise IT resources, including kvm VM, baremetal, VMware vsphere/ESXi, etc.
|
||||
* Private clouds, including OpenStack, etc.
|
||||
* Public clouds, including Aliyun, AWS, Azure, Tencent Cloud, Huawei Cloud, etc.
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
A BareMetal cloud that automates the full life-cycle management of baremetal physical machines
|
||||
</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>BareMetal list</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/physicalmachinelist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Baremetal Management</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/addphysicalmachine.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Create OS on BareMetal</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createbaremetal.png">
|
||||
</li>
|
||||
<li>ARM64 baremetal supported</li>
|
||||
</ul>
|
||||
</details>
|
||||
You are welcome to install and try Yunion OneCloud. Looking forward to your feedback.
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
A complete multi-tenancy RBAC-enabled IAM (identity and access management) system
|
||||
</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>sql, LDAP supported</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/idplist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Multi-tenancy system, include domain, project, group, user, role, policy</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/domainlist.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/projectlist.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/grouplist.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/userlist.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/rolelist.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/policylist.png">
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
VMware vSphere management that enables self-service and automation
|
||||
</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Add VMware account</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createvmware.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>VMware account list</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/vmwarelist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Automatic creation of wire</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/vmwarewirelist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Automatic creation of ipsubnet</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/vmwareipsubnetlist.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Create a VMware VM instance</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createvmwarevm1.png">
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/createvmwarevm2.png">
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
Cloud SSO that allows accessing native webconsole of cloud providers with unified federated identities
|
||||
</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Enable the SSO login function of the cloud account (aliyun as an example)</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/enablecloudsso.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>create saml users</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/addsamluser.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Cloud SSO entry</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/cloudssoentry.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Cloud SSO - SSO login user</p>
|
||||
<img src="https://www.cloudpods.org/zh/docs/introduce/ui/images/cloudsamluser.png">
|
||||
</li>
|
||||
<li>
|
||||
<p>Sign in to the public cloud platform with SSO</p>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
One set of feature-rich APIs to access a wide range of resources from cloud providers above with consistent models and APIs
|
||||
</summary>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
Multi-cloud image management system that automates image conversion between different cloud providers
|
||||
</summary>
|
||||
</details>
|
||||
|
||||
### Supported cloud providers
|
||||
|
||||
* Public Clouds:
|
||||
* AWS
|
||||
* Azure
|
||||
* Google Cloud Platform
|
||||
* Alibaba Cloud
|
||||
* Huawei Cloud
|
||||
* Tencent Cloud
|
||||
* UCloud
|
||||
* Ctyun (China Telecom)
|
||||
* ECloud (China Mobile)
|
||||
* JDCloud
|
||||
* Private Clouds:
|
||||
* OpenStack
|
||||
* ZStack
|
||||
* Alibaba Cloud Aspara
|
||||
* Huawei HCSO
|
||||
* Nutanix
|
||||
* On-premise resources:
|
||||
* Lightweight private cloud built on KVM
|
||||
* VMWare vSphere vCenter/ESXi
|
||||
* Baremetals (IPMI, Redfish API)
|
||||
* Object storages (Minio, Ceph, XSky)
|
||||
* NAS (Ceph)
|
||||
|
||||
### Supported resources
|
||||
|
||||
* Servers: instances, disks, network interfaces, networks, vpcs, storages, hosts, wires, snapshots, snapshot policies, security groups, elastic IPs, SSH keypairs, images
|
||||
* Load Balancers: instances, listeners, backend groups, backends, TSL certificates, ACLs
|
||||
* Object Storage: buckets, objects
|
||||
* NAS: file_systems, access_groups, mount_targets
|
||||
* RDS: instances, accounts, backups, databases, parameters, privileges
|
||||
* Elastic Cache: instances, accounts, backups, parameters
|
||||
* DNS: DNS zones, DNS records
|
||||
* VPC: VPCs, VPC peering, inter-VPC network, NAT gateway, DNAT/SNAT rules, route tables, route entries
|
||||
|
||||
## Getting started
|
||||
|
||||
- [All in One Installation](https://www.cloudpods.org/zh/docs/quickstart/allinone/):Building a full-featured Cloudpods service on linux distributions such as CentOS 7 or Debian 10 allows for a quick experience of the **built-in private cloud** and **multi-cloud management** features.
|
||||
- [Kubernetes Helm Installation](https://www.cloudpods.org/zh/docs/quickstart/k8s/):Deploying the Cloudpods CMP service on an existing Kubernetes cluster using Helm and experience the **multi-cloud management** feature.
|
||||
- [Docker Compose Installation](https://www.cloudpods.org/zh/docs/quickstart/docker-compose/):Deploying the Cloudpods CMP service using Docker Compose and quickly experience the **multi-cloud management** feature.
|
||||
- [High availability installation](https://www.cloudpods.org/zh/docs/setup/ha-ce/):Deploying Cloudpods services in a highly available manner for production environments, including **built-in private cloud** and **multi-cloud management** features.
|
||||
## Installation
|
||||
|
||||
Please refers to [install & deployment](https://docs.yunion.io/docs/setup/) (currently in Chinese Only).
|
||||
|
||||
## Documentations
|
||||
|
||||
* [Cloudpods Documents](https://www.cloudpods.org/en)
|
||||
- [Yunion OneCloud Documents](https://docs.yunion.io/)
|
||||
|
||||
* [Swagger API](https://www.cloudpods.org/en/docs/swagger/)
|
||||
- [Swagger API](https://docs.yunion.cn/apiv2/)
|
||||
|
||||
## Architecture
|
||||
|
||||
## Who is using Cloudpods?
|
||||
|
||||
Please check this [issue](https://github.com/yunionio/cloudpods/issues/11427) for the user list of Cloudpods. If you are using Cloudpods, you are welcome to leave your information by responding the issue. Thank you for your support.
|
||||
|
||||
## Contact
|
||||
|
||||
You may contact us by:
|
||||
|
||||
* [Subscription](https://www.yunion.cn/subscription/index.html)
|
||||
|
||||
* Bilibili: [Cloudpods](https://space.bilibili.com/623431553/)
|
||||
|
||||
* WeChat: please scan the following QRCode to contact us
|
||||
|
||||
<img src="https://www.cloudpods.org/images/contact_me_qr_20210701.png" alt="WeChat QRCode">
|
||||
|
||||
## Changelog
|
||||
|
||||
See [Cloudpods Changelog](https://www.cloudpods.org/en/docs/changelog/) for details.
|
||||
|
||||
## Roadmap
|
||||
|
||||
See [Cloudpods Roadmap](https://www.cloudpods.org/en/docs/roadmap/) for details.
|
||||

|
||||
|
||||
## Contribution
|
||||
|
||||
You are welcome to do any kind of contribution to the project. Please refer to [CONTRIBUTING](./CONTRIBUTING.md) for guidelines.
|
||||
You are welcome to contribute to the project. Please refer to [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
|
||||
|
||||
## License
|
||||
|
||||
Apache License 2.0. See [LICENSE](./LICENSE).
|
||||
Apache License 2.0. See [LICENSE](./LICENSE) 。
|
||||
|
||||
@@ -44,12 +44,7 @@ echo "Build root ${BUILDROOT}"
|
||||
if [ -z "$VERSION" ]; then
|
||||
TAG=$(git describe --abbrev=0 --tags || echo testing)
|
||||
VERSION=${TAG/\//-}
|
||||
if [[ "$VERSION" =~ ^v0. ]]; then
|
||||
VERSION=${VERSION/v0./}
|
||||
elif [[ "$VERSION" =~ ^v ]]; then
|
||||
VERSION=${VERSION/v/}
|
||||
fi
|
||||
VERSION=${VERSION//-/.}
|
||||
VERSION=${VERSION/v/}
|
||||
fi
|
||||
RELEASE=`date +"%y%m%d%H"`
|
||||
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ -z "$ROOT_DIR" ]; then
|
||||
pushd $(dirname $(readlink -f "$BASH_SOURCE")) > /dev/null
|
||||
ROOT_DIR=$(cd .. && pwd)
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
SRC_BIN=$ROOT_DIR/_output/bin
|
||||
SRC_BUILD=$ROOT_DIR/build
|
||||
OUTPUT_DIR=$ROOT_DIR/_output/debs
|
||||
|
||||
PKG=$1
|
||||
BIN_PATH=${2:-/opt/yunion/bin}
|
||||
|
||||
if [ -z "$PKG" ]; then
|
||||
echo "Usage: $0 <package>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BIN="$SRC_BIN/$PKG"
|
||||
ROOT="$SRC_BUILD/$PKG"
|
||||
|
||||
if [ ! -x "$BIN" ]; then
|
||||
echo "$BIN not exists"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -x "$ROOT" ]; then
|
||||
echo "$ROOT not exists"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
. $ROOT/vars
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
TAG=$(git describe --abbrev=0 --tags || echo 000000)
|
||||
VERSION=${TAG/\//-}
|
||||
VERSION=${VERSION/v/}
|
||||
fi
|
||||
RELEASE=`date +"%y%m%d%H"`
|
||||
FULL_VERSION=$VERSION-$RELEASE
|
||||
BUILDROOT=$OUTPUT_DIR/yunion-$1-$FULL_VERSION
|
||||
rm -rf $BUILDROOT
|
||||
mkdir -p $BUILDROOT/DEBIAN
|
||||
mkdir -p $BUILDROOT/$BIN_PATH
|
||||
|
||||
cp -rf $BIN $BUILDROOT/$BIN_PATH
|
||||
if [ -d $ROOT/root ]; then
|
||||
cp -rf $ROOT/root/* $BUILDROOT/
|
||||
fi
|
||||
|
||||
|
||||
echo "Build root ${BUILDROOT}"
|
||||
|
||||
case $(uname -m) in
|
||||
x86_64)
|
||||
CURRENT_ARCH=amd64
|
||||
;;
|
||||
aarch64)
|
||||
CURRENT_ARCH=arm64
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Package: yunion-$1
|
||||
Version: $FULL_VERSION
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: $CURRENT_ARCH
|
||||
Maintainer: wanyaoqi@yunionyun.com
|
||||
Description: Yunion $1
|
||||
" > $BUILDROOT/DEBIAN/control
|
||||
chmod 0755 $BUILDROOT/DEBIAN/control
|
||||
|
||||
|
||||
dpkg-deb --build $BUILDROOT
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
BASHRC=/etc/profile.d/climc.sh
|
||||
|
||||
grep -q rcadmin $BASHRC || echo 'source /etc/yunion/rcadmin' >> $BASHRC
|
||||
|
||||
source $BASHRC
|
||||
|
||||
climc sshkeypair-inject --admin --target-dir /root/
|
||||
|
||||
mkdir -p /etc/dropbear
|
||||
|
||||
mkdir -p /var/run/dropbear
|
||||
|
||||
test -f /etc/dropbear/dropbear_rsa_host_key || dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
|
||||
|
||||
dropbear -RFEjk -G root -p 22
|
||||
@@ -1,14 +0,0 @@
|
||||
export PATH=/opt/yunion/bin:$PATH
|
||||
|
||||
if [ -f /etc/profile.d/bash_completion.sh ]; then
|
||||
source /etc/profile.d/bash_completion.sh
|
||||
fi
|
||||
|
||||
test -f /etc/yunion/rcadmin && source /etc/yunion/rcadmin
|
||||
|
||||
source <(climc --completion bash)
|
||||
source <(kubectl completion bash)
|
||||
|
||||
echo "Welcome to Cloud Shell :-) You may execute climc and other command tools in this shell."
|
||||
echo "Please exec 'climc' to get started"
|
||||
echo ""
|
||||
@@ -0,0 +1,6 @@
|
||||
# rbac for project owner, not allow for delete
|
||||
roles:
|
||||
- domain_admin
|
||||
scope: domain
|
||||
policy:
|
||||
'*': allow
|
||||
@@ -1,10 +0,0 @@
|
||||
policy:
|
||||
'*':
|
||||
'*':
|
||||
'*': allow
|
||||
create: deny
|
||||
delete: deny
|
||||
perform:
|
||||
purge: deny
|
||||
clone: deny
|
||||
'*': allow
|
||||
9
build/climc/root/opt/yunion/scripts/rbac/member.yaml
Normal file
9
build/climc/root/opt/yunion/scripts/rbac/member.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
# rbac for normal user, not allow for delete
|
||||
scope: project
|
||||
policy:
|
||||
'*':
|
||||
'*':
|
||||
'*': allow
|
||||
create: deny
|
||||
update: deny
|
||||
delete: deny
|
||||
@@ -1,2 +0,0 @@
|
||||
policy:
|
||||
'*': allow
|
||||
@@ -0,0 +1,6 @@
|
||||
# rbac for project owner, not allow for delete
|
||||
roles:
|
||||
- project_owner
|
||||
scope: project
|
||||
policy:
|
||||
'*': allow
|
||||
8
build/climc/root/opt/yunion/scripts/rbac/sysadmin.yaml
Normal file
8
build/climc/root/opt/yunion/scripts/rbac/sysadmin.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
# rbac for sysadmin
|
||||
projects:
|
||||
- system
|
||||
roles:
|
||||
- admin
|
||||
scope: system
|
||||
policy:
|
||||
'*': allow
|
||||
@@ -1,6 +0,0 @@
|
||||
policy:
|
||||
'*':
|
||||
'*':
|
||||
get: allow
|
||||
list: allow
|
||||
'*': deny
|
||||
@@ -47,11 +47,6 @@ do
|
||||
climc server-purge $i > /dev/null
|
||||
done
|
||||
|
||||
for i in $(climc server-list --admin --limit 2048 --system --filter "backup_host_id.equals($HOSTID)" | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
|
||||
do
|
||||
climc server-delete-backup $i > /dev/null
|
||||
done
|
||||
|
||||
echo "3. Clean disks on $HOSTNAME($HOSTID)"
|
||||
|
||||
for storageid in $(climc host-storage-list --host $HOSTID --show-emulated | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $4}')
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
公有云子账号创建成功
|
||||
主账号:{{ .account }}<br>
|
||||
名称:{{ .name }}<br>
|
||||
密码:{{ .password }}<br>
|
||||
登录地址: {{ .iam_login_url }}<br>
|
||||
资源ID: {{ .id }}<br>
|
||||
@@ -1,6 +0,0 @@
|
||||
Clouduser has been created successfully
|
||||
Root Account: {{ .account }}<br>
|
||||
Name:{{ .name }}<br>
|
||||
Password:{{ .password }}<br>
|
||||
IAM Login URL: {{ .iam_login_url }}<br>
|
||||
Resource ID: {{ .id }}<br>
|
||||
@@ -1 +0,0 @@
|
||||
公有云子账号 {{ .name }} 创建成功
|
||||
@@ -1 +0,0 @@
|
||||
The clouduser {{ .name }} created successfully
|
||||
@@ -1,60 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport" ID="_1e55eaf7-5cb9-4601-b557-e322fdfb2baf" entityID="urn:federation:MicrosoftOnline">
|
||||
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
|
||||
<SignedInfo>
|
||||
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
|
||||
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
|
||||
<Reference URI="#_1e55eaf7-5cb9-4601-b557-e322fdfb2baf">
|
||||
<Transforms>
|
||||
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
|
||||
<Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
|
||||
</Transforms>
|
||||
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
|
||||
<DigestValue>fA33hUaj24/8F8bArDIkH6CpX0k=</DigestValue>
|
||||
</Reference>
|
||||
</SignedInfo>
|
||||
<SignatureValue>p/rlVWxLRIYiHozzWUgsjmQ5ItMZ/ITeEOg/edeo50l7qU8wLM9JD55EHoLpVvxImBcCfY1CxKdq3s1o9Up1jvEcH9KjfYZea1q8hzTkQdt7F2XvxoqDFRLvVwyHHJjygaEvFRXXxml7IDgDx9ScSRhQeGUlTGhI9eAFSaGkChM/FPnmekZ3ngSwbVf4FsTLIArxMqEnV0lXNMTr5NHQ6VL5wZ/cHLNCkkBoY0qWyv2hnYiZiXa4TKjpAN+8QF5GDPv/0ExJwe+aoRAQhdBzhBUICQdQd+v3Rb5SuX++iVfmf4IPMqj8CK4uK7iYXNLCGEO8oFR2KlK/zBpHzw6yCQ==</SignatureValue>
|
||||
<KeyInfo>
|
||||
<X509Data>
|
||||
<X509Certificate>MIIC/TCCAeWgAwIBAgIQF9xAVqfHt7dNSOnsMKYLDjANBgkqhkiG9w0BAQsFADApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwHhcNMTkwNjE4MDAwMDAwWhcNMjEwNjE4MDAwMDAwWjApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDLwL+mOk+zhgjHPFiZuDaU7coCOMkYyJyWS2B2KWYx7BMmy+SBSlFvvDHIiMXeLnv9DiUnQXtjClZXNqEo2amM/KdXfnCUlwdnqGa89TbB8kM6aBQKCh5Up7vejD+KRpPcOK7DqxWnm037zNKH+6liwRMUD/+lkBODoG1/ThuBVM0Kr1Oowfnkb4JYeF5xZk+2+ThR2dcQzdsz8dBW1GpGopdoM5G1amVhoRPBeNlYUqf0JUPE36Dx0iCmeXX00HTR2gd+/DJFVe34l/VxL4cqufmRcqWHy7axonbpt8svjAervGgueF5W/BVGcO4eVwFzFfnAz7bSaH/zbsNnQkFtAgMBAAGjITAfMB0GA1UdDgQWBBQlxmu/Hj1qB2A306p0Sz9up711AjANBgkqhkiG9w0BAQsFAAOCAQEAEhb+i+J69DvzCTfmC0Mn+uSGzBaW0ksMZNjM8/p/RFueytNo8/DY6TUb9W8l/HSVON782iGG7hIsG68RUIZ5q+/WAB9iBvKkKv5aGZ0bK/eD5boHwBwMa3udTjU68Vkai0A7naISEh22h+lQPvKiftCEzK1x9j2FoAXEMhACnpTwRrrj3SsJXCsMaOKcVw7sCmM4/4wD5I1+dfMSe85rSEzzUCDcCMEg67sBKdO2CFK1GoH21ttrz1CV+xt8Pn9a488kgsp2ZyU+yixS59CrM7onEzt1R4miXWAJAtydNHAmmbgKrTxqf67fEXFcrlFAHexi6vvINZWZPD6+J+q6xg==</X509Certificate>
|
||||
</X509Data>
|
||||
</KeyInfo>
|
||||
</Signature>
|
||||
<SPSSODescriptor WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
|
||||
<KeyDescriptor use="signing">
|
||||
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
|
||||
<X509Data>
|
||||
<X509Certificate>MIIC/TCCAeWgAwIBAgIQF9xAVqfHt7dNSOnsMKYLDjANBgkqhkiG9w0BAQsFADApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwHhcNMTkwNjE4MDAwMDAwWhcNMjEwNjE4MDAwMDAwWjApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDLwL+mOk+zhgjHPFiZuDaU7coCOMkYyJyWS2B2KWYx7BMmy+SBSlFvvDHIiMXeLnv9DiUnQXtjClZXNqEo2amM/KdXfnCUlwdnqGa89TbB8kM6aBQKCh5Up7vejD+KRpPcOK7DqxWnm037zNKH+6liwRMUD/+lkBODoG1/ThuBVM0Kr1Oowfnkb4JYeF5xZk+2+ThR2dcQzdsz8dBW1GpGopdoM5G1amVhoRPBeNlYUqf0JUPE36Dx0iCmeXX00HTR2gd+/DJFVe34l/VxL4cqufmRcqWHy7axonbpt8svjAervGgueF5W/BVGcO4eVwFzFfnAz7bSaH/zbsNnQkFtAgMBAAGjITAfMB0GA1UdDgQWBBQlxmu/Hj1qB2A306p0Sz9up711AjANBgkqhkiG9w0BAQsFAAOCAQEAEhb+i+J69DvzCTfmC0Mn+uSGzBaW0ksMZNjM8/p/RFueytNo8/DY6TUb9W8l/HSVON782iGG7hIsG68RUIZ5q+/WAB9iBvKkKv5aGZ0bK/eD5boHwBwMa3udTjU68Vkai0A7naISEh22h+lQPvKiftCEzK1x9j2FoAXEMhACnpTwRrrj3SsJXCsMaOKcVw7sCmM4/4wD5I1+dfMSe85rSEzzUCDcCMEg67sBKdO2CFK1GoH21ttrz1CV+xt8Pn9a488kgsp2ZyU+yixS59CrM7onEzt1R4miXWAJAtydNHAmmbgKrTxqf67fEXFcrlFAHexi6vvINZWZPD6+J+q6xg==</X509Certificate>
|
||||
</X509Data>
|
||||
</KeyInfo>
|
||||
</KeyDescriptor>
|
||||
<KeyDescriptor use="signing">
|
||||
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
|
||||
<X509Data>
|
||||
<X509Certificate>MIIC/TCCAeWgAwIBAgIQbgDHfi3t1JNGVqwD5/7lmjANBgkqhkiG9w0BAQsFADApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwHhcNMjAxMjIxMDAwMDAwWhcNMjUxMjIxMDAwMDAwWjApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDFT0/0/2qQurnYa0LbJHF9YYozhEH6r9mCxVDBYbewSG4tGgrWpsewQ/96pcczGMQctMvU+h2eX38Hx/f9JAIDbuRQzQlsPhQS7DDZ6WlTXU+t8d/g2C7fpSoLs4KVdJih4xyjLUWj+BK/ijsRjBt4Riw9VbJH/DdWKyoSMbECEiE+s1RtLP/eYoMmNfxyQGqWirCNqVNBTlqzYQp4dgF0foYy4ktoxwmQOVoTcIMFYp1I4pFPI7CxuMLkfK0X7aTbM7YGphvMfJxJkjrQdyI7G5d1t4DNi3zkEbBT7FGAr6qPt3Kn9ralpqJKHdpEBA9N0vNwQo5XTYIhUbPQ16IRAgMBAAGjITAfMB0GA1UdDgQWBBRs7tPmfkksSr67KtElHjYZbeaCTjANBgkqhkiG9w0BAQsFAAOCAQEAJqwMZSjQJ36x+1sty6EeLKQLQewQwPaEC47Zut+8bXed6Q8jMZ0bfa/MM7XquEcabaMZLQuKLft44YXwXXQOfQrI2qjQr3eToJFlDT9hR0rfp9wQqttDxd6Aa6RWwDTgo5oKUQCTKLHhEy8uWzScK0eGt2d7TWTaDXjRSwNq6tM7fRhZs07tKBV3xfi9EQy/mlavAMFRBVm86NSo7AsOG1IOMq03U3ooCWAXh9PdvvHNfHhH19futAnC/HeOjwRF1Qc527aBMphYFQLdiThfmfmiE/AhQqCwZ2oE7uCJhBtR+Kb1ZGhjI35pHfsSqGiFa7Kr+5ave822PDcke89Mvg==</X509Certificate>
|
||||
</X509Data>
|
||||
</KeyInfo>
|
||||
</KeyDescriptor>
|
||||
<KeyDescriptor use="signing">
|
||||
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
|
||||
<X509Data>
|
||||
<X509Certificate>MIIC/TCCAeWgAwIBAgIQbgDHfi3t1JNGVqwD5/7lmjANBgkqhkiG9w0BAQsFADApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwHhcNMjAxMjIxMDAwMDAwWhcNMjUxMjIxMDAwMDAwWjApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDFT0/0/2qQurnYa0LbJHF9YYozhEH6r9mCxVDBYbewSG4tGgrWpsewQ/96pcczGMQctMvU+h2eX38Hx/f9JAIDbuRQzQlsPhQS7DDZ6WlTXU+t8d/g2C7fpSoLs4KVdJih4xyjLUWj+BK/ijsRjBt4Riw9VbJH/DdWKyoSMbECEiE+s1RtLP/eYoMmNfxyQGqWirCNqVNBTlqzYQp4dgF0foYy4ktoxwmQOVoTcIMFYp1I4pFPI7CxuMLkfK0X7aTbM7YGphvMfJxJkjrQdyI7G5d1t4DNi3zkEbBT7FGAr6qPt3Kn9ralpqJKHdpEBA9N0vNwQo5XTYIhUbPQ16IRAgMBAAGjITAfMB0GA1UdDgQWBBRs7tPmfkksSr67KtElHjYZbeaCTjANBgkqhkiG9w0BAQsFAAOCAQEAJqwMZSjQJ36x+1sty6EeLKQLQewQwPaEC47Zut+8bXed6Q8jMZ0bfa/MM7XquEcabaMZLQuKLft44YXwXXQOfQrI2qjQr3eToJFlDT9hR0rfp9wQqttDxd6Aa6RWwDTgo5oKUQCTKLHhEy8uWzScK0eGt2d7TWTaDXjRSwNq6tM7fRhZs07tKBV3xfi9EQy/mlavAMFRBVm86NSo7AsOG1IOMq03U3ooCWAXh9PdvvHNfHhH19futAnC/HeOjwRF1Qc527aBMphYFQLdiThfmfmiE/AhQqCwZ2oE7uCJhBtR+Kb1ZGhjI35pHfsSqGiFa7Kr+5ave822PDcke89Mvg==</X509Certificate>
|
||||
</X509Data>
|
||||
</KeyInfo>
|
||||
</KeyDescriptor>
|
||||
<SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://login.microsoftonline.com/login.srf"/>
|
||||
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</NameIDFormat>
|
||||
<NameIDFormat>urn:mace:shibboleth:1.0:nameIdentifier</NameIDFormat>
|
||||
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</NameIDFormat>
|
||||
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameIDFormat>
|
||||
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</NameIDFormat>
|
||||
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://login.microsoftonline.com/login.srf" index="0" isDefault="true"/>
|
||||
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign" Location="https://login.microsoftonline.com/login.srf" index="1"/>
|
||||
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:PAOS" Location="https://login.microsoftonline.com/login.srf" index="2"/>
|
||||
</SPSSODescriptor>
|
||||
<Extensions>
|
||||
<alg:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
|
||||
<alg:SigningMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
|
||||
</Extensions>
|
||||
</EntityDescriptor>
|
||||
@@ -1,23 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ -z "$ROOT_DIR" ]; then
|
||||
ROOT_DIR=$(dirname $(dirname $(readlink -f "$BASH_SOURCE")))
|
||||
fi
|
||||
|
||||
RPMS_DIR=$ROOT_DIR/_output/rpms
|
||||
DEBS_DIR=$ROOT_DIR/_output/debs
|
||||
|
||||
case $(uname -m) in
|
||||
x86_64)
|
||||
CURRENT_ARCH=amd64
|
||||
;;
|
||||
aarch64)
|
||||
CURRENT_ARCH=arm64
|
||||
;;
|
||||
esac
|
||||
|
||||
mkdir -p $DEBS_DIR && cd $DEBS_DIR
|
||||
|
||||
find $RPMS_DIR -type f -name *.rpm -exec alien --target=$CURRENT_ARCH {} \;
|
||||
@@ -1,3 +0,0 @@
|
||||
INTERFACE=""
|
||||
INTERFACE_IP=""
|
||||
RELAY=""
|
||||
@@ -1,22 +0,0 @@
|
||||
[Unit]
|
||||
Description=Yunion Cloud DHCP Relay Agent
|
||||
Documentation=https://docs.yunion.cn
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile=-/etc/sysconfig/yunion_dhcprelay
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/opt/yunion/bin/dhcprelay --interface "$INTERFACE" --ip "$IP" --relay "$RELAY"
|
||||
WorkingDirectory=/opt/yunion/bin
|
||||
KillMode=process
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
LimitNOFILE=500000
|
||||
LimitNPROC=500000
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,2 +0,0 @@
|
||||
DESCRIPTION="Yunion Tiny DHCP Relay Server"
|
||||
SERVICE="yes"
|
||||
@@ -1,7 +1,3 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:v1.1.1
|
||||
|
||||
# install playbook and telegraf install pkg
|
||||
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.5.2 /opt/yunion/playbook /opt/yunion/playbook
|
||||
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.5.2 /opt/yunion/ansible-install-pkg /opt/yunion/ansible-install-pkg
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:v1.0.2
|
||||
|
||||
ADD ./_output/alpine-build/bin/ansibleserver /opt/yunion/bin/ansibleserver
|
||||
|
||||
@@ -1,28 +1,12 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
MAINTAINER "Yousong Zhou <zhouyousong@yunionyun.com>"
|
||||
|
||||
ENV TZ UTC
|
||||
|
||||
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
|
||||
|
||||
# openssh-client, for ansible ssh connection
|
||||
# git, ca-certificates, for fetching ansible roles
|
||||
RUN set -x \
|
||||
&& apk update \
|
||||
&& apk add openssh-client \
|
||||
&& apk add sshpass \
|
||||
&& apk add py3-pip \
|
||||
&& apk add tzdata git ca-certificates
|
||||
|
||||
RUN apk add --no-cache openssh openssl curl rsync pv mariadb-client
|
||||
RUN apk add --no-cache --virtual .build-dependencies \
|
||||
libffi-dev openssl-dev python3-dev build-base py-setuptools rust cargo mariadb-dev
|
||||
|
||||
# ansible should be installed
|
||||
# after setuptools and wheel
|
||||
RUN pip3 install -U pip setuptools wheel \
|
||||
&& pip3 install paramiko mysqlclient pywinrm \
|
||||
&& pip3 install 'ansible<=9.0.0' \
|
||||
&& apk del --no-network .build-dependencies \
|
||||
&& rm -rf /root/.cache /root/.cargo /var/cache/apk/*
|
||||
&& apk update \
|
||||
&& apk add openssh-client \
|
||||
&& apk add ansible \
|
||||
&& apk add tzdata git ca-certificates \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
ADD ./_output/alpine-build/bin/apigateway /opt/yunion/bin/apigateway
|
||||
ADD ./_output/alpine-build/bin/apigateway /opt/yunion/bin/apigateway
|
||||
@@ -1,3 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
|
||||
ADD ./_output/alpine-build/bin/apimap /opt/yunion/bin/apimap
|
||||
@@ -1,8 +1,9 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.3.9-20231219.0
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.2
|
||||
|
||||
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
ENV TZ UTC
|
||||
ADD ./_output/alpine-build/bin/baremetal-agent /opt/yunion/bin/baremetal-agent
|
||||
ADD ./_output/bin/baremetal-agent /opt/yunion/bin/baremetal-agent
|
||||
ADD ./_output/bin/.baremetal-agent.bin /opt/yunion/bin/.baremetal-agent.bin
|
||||
ADD ./_output/bin/bundles/baremetal-agent /opt/yunion/bin/bundles/baremetal-agent
|
||||
|
||||
@@ -1,88 +1,32 @@
|
||||
#FROM --platform=linux/amd64 registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-4 as build
|
||||
#RUN yum install -y https://iso.yunion.cn/vm-images/baremetal-pxerom-1.1.0-21092209.x86_64.rpm
|
||||
#RUN yum install -y http://192.168.23.50:8083/baremetal-pxerom-1.1.0-21092209.x86_64.rpm
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/yunionos:v3.10.8-20231215.0 as yunionos
|
||||
FROM frolvlad/alpine-glibc:glibc-2.28
|
||||
|
||||
FROM centos:8 as grub-stage
|
||||
|
||||
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
|
||||
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
|
||||
RUN dnf install -y grub2*
|
||||
|
||||
# make grub_booti386 firmware
|
||||
RUN grub2-mkimage -d /usr/lib/grub/i386-pc/ -O i386-pc-pxe -o /root/grub_booti386 -p '/grub' pxe tftp boot linux ext2 xfs ntfs fat part_msdos part_gpt normal biosdisk
|
||||
# make grub_bootx64 firmware
|
||||
RUN grub2-mkimage -d /usr/lib/grub/x86_64-efi/ -O x86_64-efi -o /root/grub_bootx64.efi -p '/grub' efinet tftp boot linux ext2 xfs ntfs fat part_msdos part_gpt normal efi_gop
|
||||
# make grub_arm64 firmware
|
||||
RUN grub2-mkimage -d /usr/lib/grub/arm64-efi/ -O arm64-efi -o /root/grub_arm64.efi -p '/grub' efinet tftp boot linux ext2 xfs ntfs fat part_msdos part_gpt normal efi_gop
|
||||
|
||||
RUN mkdir -p /tftp/grub
|
||||
|
||||
RUN cp /root/grub_booti386 /tftp
|
||||
RUN cp -rf /usr/lib/grub/i386-pc /tftp/grub
|
||||
|
||||
RUN cp /root/grub_bootx64.efi /tftp
|
||||
RUN cp -rf /usr/lib/grub/x86_64-efi /tftp/grub
|
||||
|
||||
RUN cp /root/grub_arm64.efi /tftp
|
||||
RUN cp -rf /usr/lib/grub/arm64-efi /tftp/grub
|
||||
|
||||
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3-3.13.5
|
||||
|
||||
MAINTAINER "Zexi Li <zexi.li@icloud.com>"
|
||||
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache ipmitool ethtool tzdata ca-certificates cdrkit coreutils librados librbd && \
|
||||
apk add --no-cache ipmitool ethtool tzdata ca-certificates cdrkit coreutils && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
RUN mkdir -p /opt/cloud/yunion/baremetal
|
||||
|
||||
# udpate latest pci.ids
|
||||
RUN wget -O /opt/cloud/yunion/baremetal/pci.ids http://pci-ids.ucw.cz/v2.2/pci.ids
|
||||
|
||||
# download baremetal-pxerom-*.x86_64.rpm and unpack rpm in current directory
|
||||
#COPY --from=build /opt/cloud/yunion/baremetal/bootia32.efi /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build /opt/cloud/yunion/baremetal/bootx64.efi /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build /opt/cloud/yunion/baremetal/chain.c32 /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build ./opt/cloud/yunion/baremetal/initramfs /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build ./opt/cloud/yunion/baremetal/isolinux.bin /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build ./opt/cloud/yunion/baremetal/kernel /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build ./opt/cloud/yunion/baremetal/ldlinux.c32 /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build ./opt/cloud/yunion/baremetal/ldlinux.e32 /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build ./opt/cloud/yunion/baremetal/ldlinux.e64 /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build ./opt/cloud/yunion/baremetal/libcom32.c32 /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build ./opt/cloud/yunion/baremetal/libutil.c32 /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build ./opt/cloud/yunion/baremetal/lpxelinux.0 /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build ./opt/cloud/yunion/baremetal/menu.c32 /opt/cloud/yunion/baremetal
|
||||
#COPY --from=build ./opt/cloud/yunion/baremetal/pxelinux.0 /opt/cloud/yunion/baremetal
|
||||
|
||||
# copy grub file
|
||||
COPY --from=grub-stage /tftp/grub_booti386 /opt/cloud/yunion/baremetal
|
||||
COPY --from=grub-stage /tftp/grub_bootx64.efi /opt/cloud/yunion/baremetal
|
||||
COPY --from=grub-stage /tftp/grub_arm64.efi /opt/cloud/yunion/baremetal
|
||||
COPY --from=grub-stage /tftp/grub /opt/cloud/yunion/baremetal/grub
|
||||
|
||||
# copy boot files from yunionos
|
||||
COPY --from=yunionos /yunionos/x86_64/kernel /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/initramfs /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/aarch64/kernel /opt/cloud/yunion/baremetal/kernel_aarch64
|
||||
COPY --from=yunionos /yunionos/aarch64/initramfs /opt/cloud/yunion/baremetal/initramfs_aarch64
|
||||
|
||||
# TODO: syslinux firmwares should removed in future
|
||||
COPY --from=yunionos /yunionos/x86_64/isolinux.bin /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/bootia32.efi /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/bootx64.efi /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/chain.c32 /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/initramfs /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/kernel /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/ldlinux.c32 /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/ldlinux.e32 /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/ldlinux.e64 /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/libcom32.c32 /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/libutil.c32 /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/lpxelinux.0 /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/menu.c32 /opt/cloud/yunion/baremetal
|
||||
COPY --from=yunionos /yunionos/x86_64/pxelinux.0 /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/bootia32.efi /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/bootx64.efi /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/chain.c32 /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/initramfs /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/isolinux.bin /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/kernel /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/ldlinux.c32 /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/ldlinux.e32 /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/ldlinux.e64 /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/libcom32.c32 /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/libutil.c32 /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/lpxelinux.0 /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/menu.c32 /opt/cloud/yunion/baremetal
|
||||
COPY ./opt/cloud/yunion/baremetal/pxelinux.0 /opt/cloud/yunion/baremetal
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20230731.5
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20200820
|
||||
|
||||
ADD ./build/climc/root/opt /opt
|
||||
|
||||
RUN cp /opt/yunion/scripts/motd/climc.sh /etc/profile.d/climc.sh && ln -sf /etc/profile.d/climc.sh /root/.bashrc
|
||||
|
||||
ADD ./_output/alpine-build/bin/climc ./_output/alpine-build/bin/*cli /opt/yunion/bin/
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
ARG BUILDPLATFORM
|
||||
ARG TARGETARCH
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
|
||||
|
||||
@@ -10,15 +6,11 @@ ENV TZ Asia/Shanghai
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >>/etc/apk/repositories
|
||||
|
||||
RUN apk add --no-cache bash bash-completion tzdata ca-certificates vim ipmitool ceph-common dropbear shadow && \
|
||||
RUN apk add --no-cache bash bash-completion tzdata ca-certificates vim && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
RUN usermod --shell /bin/bash root
|
||||
|
||||
RUN curl https://iso.yunion.cn/binaries/kubernetes-release/release/v1.22.9/bin/linux/${TARGETARCH}/kubectl -o /usr/bin/kubectl && chmod a+x /usr/bin/kubectl
|
||||
|
||||
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
ENV PATH="/opt/yunion/bin:${PATH}"
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
ADD ./_output/alpine-build/bin/cloudevent /opt/yunion/bin/cloudevent
|
||||
ADD ./_output/alpine-build/bin/cloudevent /opt/yunion/bin/cloudevent
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
COPY ./build/cloudid/root/opt/ /opt/
|
||||
ADD ./_output/alpine-build/bin/cloudid /opt/yunion/bin/cloudid
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
|
||||
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
|
||||
|
||||
RUN mkdir -p /etc/yunion/data/
|
||||
|
||||
ADD ./_output/alpine-build/bin/cloudmon \
|
||||
/opt/yunion/bin/
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
ADD ./_output/alpine-build/bin/cloudnet /opt/yunion/bin/cloudnet
|
||||
ADD ./_output/alpine-build/bin/cloudnet /opt/yunion/bin/cloudnet
|
||||
@@ -1,3 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
|
||||
ADD ./_output/alpine-build/bin/cloudproxy /opt/yunion/bin/cloudproxy
|
||||
@@ -1,9 +0,0 @@
|
||||
# registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0
|
||||
|
||||
FROM debian:10
|
||||
|
||||
RUN apt update && apt install -y alien
|
||||
|
||||
RUN apt-get clean autoclean && \
|
||||
apt-get autoremove --yes && \
|
||||
rm -rf /var/lib/{apt,dpkg,cache,log}/
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
ADD ./_output/alpine-build/bin/devtool /opt/yunion/bin/devtool
|
||||
ADD ./_output/alpine-build/bin/devtool /opt/yunion/bin/devtool
|
||||
@@ -1,3 +1,5 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
COPY ./build/esxi-agent/root/opt/ /opt/
|
||||
|
||||
ADD ./_output/alpine-build/bin/esxi-agent /opt/yunion/bin/esxi-agent
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.4.0 as file-repo
|
||||
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
MAINTAINER "Rain Zheng <zhengyu@yunion.com>"
|
||||
|
||||
# openssh-client, for ansible ssh connection
|
||||
# git, ca-certificates, for fetching ansible roles
|
||||
RUN set -x \
|
||||
&& apk update \
|
||||
&& apk add git \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
# install default playbook and install pkg
|
||||
Run mkdir -p /opt/yunion/ansible-install-pkg
|
||||
|
||||
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf-1.19.2-yn~be742cbf-0.x86_64.rpm /opt/yunion/ansible-install-pkg
|
||||
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf-1.19.2-yn~be742cbf-0.aarch64.rpm /opt/yunion/ansible-install-pkg
|
||||
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf_1.19.2-yn~be742cbf-0_arm64.deb /opt/yunion/ansible-install-pkg
|
||||
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf_1.19.2-yn~be742cbf-0_amd64.deb /opt/yunion/ansible-install-pkg
|
||||
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf-1.19.2-yn~be742cbf_windows_amd64.zip /opt/yunion/ansible-install-pkg
|
||||
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf-1.19.2-yn~be742cbf_windows_i386.zip /opt/yunion/ansible-install-pkg
|
||||
|
||||
Run mkdir -p /opt/yunion/playbook
|
||||
Run mkdir /opt/yunion/playbook/monitor-agent
|
||||
Run git clone https://github.com/yunionio/monitor-agent.git /opt/yunion/playbook/monitor-agent --recurse-submodules
|
||||
@@ -1,5 +1,6 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/glance-base:v0.0.1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/torrent:20200820
|
||||
|
||||
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
|
||||
|
||||
ENV TZ UTC
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
ADD ./_output/alpine-build/bin/glance /opt/yunion/bin/glance
|
||||
ADD ./_output/alpine-build/bin/glance /opt/yunion/bin/glance
|
||||
@@ -1,5 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/torrent:20210815.0
|
||||
|
||||
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
|
||||
|
||||
RUN apk add --no-cache s3fs-fuse --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
|
||||
@@ -1,8 +1,9 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.5.0
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.3
|
||||
|
||||
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
|
||||
|
||||
ENV TZ UTC
|
||||
ENV TZ Asia/Shanghai
|
||||
|
||||
RUN apk add librados librbd
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
ADD ./_output/alpine-build/bin/host /opt/yunion/bin/host
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:1.4.4
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:v0.5
|
||||
|
||||
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
|
||||
|
||||
ENV TZ UTC
|
||||
ENV TZ Asia/Shanghai
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
ADD ./_output/centos-build/bin/host-deployer /opt/yunion/bin/host-deployer
|
||||
ADD ./_output/alpine-build/bin/host-deployer /opt/yunion/bin/host-deployer
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
|
||||
ADD ./_output/alpine-build/bin/host-health /opt/yunion/bin/host-health
|
||||
@@ -1,9 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
ENV TZ UTC
|
||||
|
||||
ADD ./_output/bin/host-image /opt/yunion/bin/host-image
|
||||
ADD ./_output/bin/.host-image.bin /opt/yunion/bin/.host-image.bin
|
||||
ADD ./_output/bin/bundles/host-image /opt/yunion/bin/bundles/host-image
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
ADD ./_output/alpine-build/bin/keystone /opt/yunion/bin/keystone
|
||||
ADD ./_output/alpine-build/bin/keystone /opt/yunion/bin/keystone
|
||||
@@ -1,8 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/lbagent-base:v0.0.4
|
||||
|
||||
MAINTAINER "Yousong Zhou <zhouyousong@yunion.cn>"
|
||||
|
||||
ENV TZ UTC
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
ADD ./_output/alpine-build/bin/lbagent /opt/yunion/bin/lbagent
|
||||
@@ -1,35 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.12.4-2
|
||||
|
||||
MAINTAINER "Jian QIU <qiujian@yunion.cn>"
|
||||
|
||||
ENV TZ UTC
|
||||
|
||||
ENV GOPATH=/root/go
|
||||
|
||||
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
|
||||
|
||||
RUN set -x \
|
||||
&& apk update \
|
||||
&& apk upgrade \
|
||||
&& apk add --no-cache bash haproxy keepalived iptables \
|
||||
&& apk add --no-cache --virtual .build-deps \
|
||||
build-base \
|
||||
make \
|
||||
go \
|
||||
git \
|
||||
gcc \
|
||||
libc-dev \
|
||||
libgcc \
|
||||
linux-headers
|
||||
|
||||
RUN set -x \
|
||||
&& mkdir -p $GOPATH/src/github.com/yyyar $GOPATH/bin \
|
||||
&& cd $GOPATH/src/github.com/yyyar \
|
||||
&& git clone --depth 1 https://github.com/yyyar/gobetween.git \
|
||||
&& cd gobetween \
|
||||
&& make deps \
|
||||
&& make build \
|
||||
&& cp bin/gobetween /bin/gobetween \
|
||||
&& rm -fr $GOPATH \
|
||||
&& apk del .build-deps \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
ADD ./_output/alpine-build/bin/logger /opt/yunion/bin/logger
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
COPY ./build/monitor/root/opt/ /opt/
|
||||
ADD ./_output/alpine-build/bin/monitor /opt/yunion/bin/monitor
|
||||
ADD ./_output/alpine-build/bin/monitor /opt/yunion/bin/monitor
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
COPY ./build/notify/root/opt/ /opt/
|
||||
ADD ./_output/alpine-build/bin/notify /opt/yunion/bin/notify
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
# TODO: use 3.14 will lead 'apk add qemu-img fail on arm64'
|
||||
FROM alpine:3.13.5
|
||||
FROM alpine:3.11
|
||||
|
||||
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
|
||||
|
||||
ENV TZ UTC
|
||||
ENV TZ Asia/Shanghai
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache tzdata curl busybox-extras tcpdump strace ca-certificates && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
FROM alpine:3.15.4
|
||||
|
||||
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
|
||||
|
||||
ENV TZ UTC
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache tzdata curl busybox-extras tcpdump strace ca-certificates && \
|
||||
rm -rf /var/cache/apk/*
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
COPY ./build/region/root/opt/ /opt/
|
||||
ADD ./_output/alpine-build/bin/region /opt/yunion/bin/region
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
ADD ./_output/alpine-build/bin/region-dns /opt/yunion/bin/region-dns
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
ADD ./_output/alpine-build/bin/s3gateway /opt/yunion/bin/s3gateway
|
||||
ADD ./_output/alpine-build/bin/s3gateway /opt/yunion/bin/s3gateway
|
||||
@@ -1,3 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
|
||||
ADD ./_output/alpine-build/bin/scheduledtask /opt/yunion/bin/scheduledtask
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
ADD ./_output/alpine-build/bin/scheduler /opt/yunion/bin/scheduler
|
||||
ADD ./_output/alpine-build/bin/scheduler /opt/yunion/bin/scheduler
|
||||
@@ -1,3 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/yunion-rootfs:v1.1
|
||||
|
||||
ADD ./_output/centos-build/bin/telegraf-raid-plugin /opt/yunion/bin/telegraf-raid-plugin
|
||||
@@ -1,15 +1,15 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
MAINTAINER "Zexi Li <zexi.li@icloud.com>"
|
||||
|
||||
# HACK: use v3.14 alpine mirror to upgrade qemu-img
|
||||
RUN echo http://dl-cdn.alpinelinux.org/alpine/v3.14/main > /etc/apk/repositories
|
||||
RUN echo http://dl-cdn.alpinelinux.org/alpine/v3.14/community >> /etc/apk/repositories
|
||||
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache qemu-img && \
|
||||
apk add --no-cache tzdata ca-certificates qemu-img && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
ENV TZ Asia/Shanghai
|
||||
|
||||
# add executable file torrent
|
||||
# make cmd/torrent
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.10.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.10.4-1
|
||||
|
||||
MAINTAINER "Yousong Zhou <zhouyousong@yunion.cn>"
|
||||
|
||||
ENV TZ UTC
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
ADD ./_output/alpine-build/bin/vpcagent /opt/yunion/bin/vpcagent
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/webconsole-base:20230731.2
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/webconsole-base:v0.2
|
||||
|
||||
ADD ./_output/alpine-build/bin/webconsole /opt/yunion/bin/webconsole
|
||||
ADD ./_output/alpine-build/bin/webconsole /opt/yunion/bin/webconsole
|
||||
@@ -2,9 +2,11 @@ FROM registry.cn-beijing.aliyuncs.com/yunionio/kubectl:1.18.6
|
||||
|
||||
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
|
||||
|
||||
ENV TZ UTC
|
||||
ENV TZ Asia/Shanghai
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
RUN apk add --no-cache sshpass ipmitool openssh-client tzdata ca-certificates && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
ADD ./_output/alpine-build/bin/yunionconf /opt/yunion/bin/yunionconf
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
REGISTRY ?= "registry.cn-beijing.aliyuncs.com/yunionio"
|
||||
DOCKER_BUILD = docker build -t $(REGISTRY)
|
||||
DOCKER_BUILDX = docker buildx build --platform linux/arm64,linux/amd64 --push -t $(REGISTRY)
|
||||
|
||||
|
||||
debian10-base:
|
||||
docker buildx build --platform linux/arm64,linux/amd64 --push \
|
||||
-t registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0 -f ./Dockerfile.debian-base .
|
||||
|
||||
ONECLOUD_BASE_VERSION = v0.3-3.13.5
|
||||
ONECLOUD_BASE_VERSION_3-15-4 = v3.15.4-0
|
||||
|
||||
onecloud-base:
|
||||
$(DOCKER_BUILDX)/onecloud-base:$(ONECLOUD_BASE_VERSION) -f ./Dockerfile.onecloud-base .
|
||||
onecloud-base-3-15-4:
|
||||
$(DOCKER_BUILDX)/onecloud-base:$(ONECLOUD_BASE_VERSION_3-15-4) -f ./Dockerfile.onecloud-base-3-15-4 .
|
||||
|
||||
ANSIBLESERVER_BASE = v1.1.2
|
||||
|
||||
ansibleserver-base:
|
||||
$(DOCKER_BUILDX)/ansibleserver-base:$(ANSIBLESERVER_BASE) -f ./Dockerfile.ansibleserver-base .
|
||||
|
||||
CLIMC_BASE_VERSION = 20230731.5
|
||||
|
||||
climc-base:
|
||||
docker buildx build --platform linux/arm64,linux/amd64 --push \
|
||||
-t registry.cn-beijing.aliyuncs.com/yunionio/climc-base:$(CLIMC_BASE_VERSION) -f ./Dockerfile.climc-base .
|
||||
|
||||
WEBCONSOLE_BASE_VERSION = 20230731.2
|
||||
webconsole-base:
|
||||
$(DOCKER_BUILDX)/webconsole-base:$(WEBCONSOLE_BASE_VERSION) -f ./Dockerfile.webconsole-base .
|
||||
|
||||
BAREMETAL_BASE_VERSION = v0.3.9-20231219.1
|
||||
|
||||
baremetal-base:
|
||||
$(DOCKER_BUILDX)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base .
|
||||
#docker push $(REGISTRY)/baremetal-base:$(BAREMETAL_BASE_VERSION)
|
||||
|
||||
TORRENT_VERSION = 20210815.0
|
||||
torrent:
|
||||
$(DOCKER_BUILDX)/torrent:$(TORRENT_VERSION) -f ./Dockerfile.torrent .
|
||||
|
||||
GLANCE_BASE_VERSION = v0.0.1
|
||||
glance-base:
|
||||
$(DOCKER_BUILDX)/glance-base:$(GLANCE_BASE_VERSION) -f ./Dockerfile.glance-base .
|
||||
|
||||
FILE_REPO_VERSION = v0.5.2
|
||||
|
||||
file-repo:
|
||||
$(DOCKER_BUILDX)/file-repo:$(FILE_REPO_VERSION) -f ./Dockerfile.file-repo .
|
||||
|
||||
HOST_IMAGE_VERSION ?= v1.0.2
|
||||
HOST_IMAGE_NAME = $(REGISTRY)/host-image:$(HOST_IMAGE_VERSION)
|
||||
host-image:
|
||||
docker pull $(HOST_IMAGE_NAME)-amd64 --platform amd64
|
||||
docker pull $(HOST_IMAGE_NAME)-arm64 --platform arm64
|
||||
docker manifest create $(HOST_IMAGE_NAME) \
|
||||
$(HOST_IMAGE_NAME)-amd64 \
|
||||
$(HOST_IMAGE_NAME)-arm64
|
||||
docker manifest annotate $(HOST_IMAGE_NAME) $(HOST_IMAGE_NAME)-amd64 --arch amd64
|
||||
docker manifest annotate $(HOST_IMAGE_NAME) $(HOST_IMAGE_NAME)-arm64 --arch arm64
|
||||
docker manifest push $(HOST_IMAGE_NAME)
|
||||
|
||||
LBAGENT_BASE_VERSION = v0.0.3
|
||||
lbagent-base:
|
||||
$(DOCKER_BUILDX)/lbagent-base:$(LBAGENT_BASE_VERSION) -f ./Dockerfile.lbagent-base .
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
BASHRC=/root/.bashrc
|
||||
|
||||
source $BASHRC
|
||||
|
||||
climc sshkeypair-inject --admin
|
||||
|
||||
mkdir -p /etc/dropbear
|
||||
|
||||
mkdir -p /var/run/dropbear
|
||||
|
||||
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
|
||||
|
||||
dropbear -RFEjk -G root -p 22
|
||||
16
build/docker/multi-arch/Dockerfile.esxi-agent
Normal file
16
build/docker/multi-arch/Dockerfile.esxi-agent
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-3 as build
|
||||
ARG TARGETPLATFORM
|
||||
ARG BUILDPLATFORM
|
||||
RUN mkdir -p /root/go/src/yunion.io/x/onecloud
|
||||
COPY . /root/go/src/yunion.io/x/onecloud
|
||||
|
||||
WORKDIR /root/go/src/yunion.io/x/onecloud
|
||||
RUN make cmd/esxi-agent
|
||||
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
COPY --from=build /root/go/src/yunion.io/x/onecloud/build/esxi-agent/root/opt/ /opt/
|
||||
COPY --from=build /root/go/src/yunion.io/x/onecloud/_output/bin/esxi-agent /opt/yunion/bin/esxi-agent
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:3.16.0-go-1.18.2-0 as build
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-3 as build
|
||||
ARG TARGETPLATFORM
|
||||
ARG BUILDPLATFORM
|
||||
RUN mkdir -p /root/go/src/yunion.io/x/onecloud
|
||||
@@ -7,11 +7,12 @@ COPY . /root/go/src/yunion.io/x/onecloud
|
||||
WORKDIR /root/go/src/yunion.io/x/onecloud
|
||||
RUN make cmd/host
|
||||
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.4.0
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.3
|
||||
|
||||
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
|
||||
|
||||
ENV TZ Asia/Shanghai
|
||||
|
||||
RUN apk add librados librbd
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
COPY --from=build /root/go/src/yunion.io/x/onecloud/_output/bin/host /opt/yunion/bin/host
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
_output/alpine-build/_cache
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-5 as build
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-3 as build
|
||||
ARG TARGETPLATFORM
|
||||
ARG BUILDPLATFORM
|
||||
|
||||
RUN mkdir -p /root/go/src/yunion.io/x/onecloud
|
||||
COPY . /root/go/src/yunion.io/x/onecloud
|
||||
RUN cd /root/go/src/yunion.io/x/onecloud && make cmd/torrent
|
||||
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
|
||||
WORKDIR /root/go/src/yunion.io/x/onecloud
|
||||
RUN make cmd/torrent
|
||||
|
||||
MAINTAINER "Zexi Li <zexi.li@icloud.com>"
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
# HACK: use v3.14 alpine mirror to upgrade qemu-img
|
||||
RUN echo http://dl-cdn.alpinelinux.org/alpine/v3.14/main > /etc/apk/repositories
|
||||
RUN echo http://dl-cdn.alpinelinux.org/alpine/v3.14/community >> /etc/apk/repositories
|
||||
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache qemu-img && \
|
||||
apk add --no-cache tzdata ca-certificates qemu-img && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
# TAG=20210815.0
|
||||
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
ENV TZ Asia/Shanghai
|
||||
|
||||
# add executable file torrent
|
||||
# make cmd/torrent
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user