mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-02 23:35:29 +00:00
Compare commits
610 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
4f43bc611e | ||
|
db768973d6 | ||
|
db0d84862d | ||
|
0e70c439cf | ||
|
59ed1a0fc1 | ||
|
6542475614 | ||
|
9cffe692df | ||
|
eeac9f0af4 | ||
|
b1fe43b656 | ||
|
eb93b292fa | ||
|
aea86c627d | ||
|
454d83318c | ||
|
fed871de22 | ||
|
648231e821 | ||
|
927cdbb0a2 | ||
|
cb61faa569 | ||
|
cf11bcd7e6 | ||
|
669976c293 | ||
|
951a874909 | ||
|
0bb46d9867 | ||
|
540ad857fd | ||
|
c06f2d9e9d | ||
|
0d96abc3c8 | ||
|
63f6910f5f | ||
|
b09a9cc6ea | ||
|
b0f6a030f3 | ||
|
84b4ebeac4 | ||
|
c5404f53c1 | ||
|
cacf9d9441 | ||
|
3b1eecfd73 | ||
|
237a7747d9 | ||
|
ce4f12fbd6 | ||
|
7e14939670 | ||
|
1de078ee2a | ||
|
533b6d91e6 | ||
|
ef4bdec677 | ||
|
da470851f7 | ||
|
242ed4386b | ||
|
11bb0c8edc | ||
|
4ac71ff8e7 | ||
|
05cbddd40e | ||
|
1ecb2e3593 | ||
|
124bc9e833 | ||
|
c5a3a190b2 | ||
|
97e6ae5a6f | ||
|
dfa728d7a5 | ||
|
f06d703fce | ||
|
c78df06cb7 | ||
|
87859252ce | ||
|
9ef74c45d5 | ||
|
e551d6535d | ||
|
9a97ef5913 | ||
|
ac937559e0 | ||
|
3b4e8d04de | ||
|
4d3cd5ed61 | ||
|
9e5aa33e09 | ||
|
4f3e70f3e0 | ||
|
270a7cd6ee | ||
|
da87188fad | ||
|
16df482288 | ||
|
0524be735e | ||
|
a4451ecb22 | ||
|
f452505ae7 | ||
|
1fe052d819 | ||
|
ba1a52dc5e | ||
|
5b7a96134f | ||
|
1366fc8932 | ||
|
d9bdf5749e | ||
|
2c30861af0 | ||
|
37157e6538 | ||
|
38e110edc7 | ||
|
758b98fc20 | ||
|
b92644ffdd | ||
|
3b9e31f363 | ||
|
17d5977c74 | ||
|
d898eba22e | ||
|
9c6a787df9 | ||
|
9f4fc4c2f2 | ||
|
2f271c7db9 | ||
|
30f7bbf53b | ||
|
b246112d3f | ||
|
986df393a1 | ||
|
d5b3bd9c2f | ||
|
c1ce6031f7 | ||
|
9c5f6b5636 | ||
|
7fa5fa0427 | ||
|
55711af940 | ||
|
7a3ee2504f | ||
|
c2388d2710 | ||
|
81186e53f4 | ||
|
f37fd6a660 | ||
|
365254e971 | ||
|
665851a84a | ||
|
a625014aeb | ||
|
25ff8b66f6 | ||
|
2fbefac3a9 | ||
|
2bbf11f795 | ||
|
ca3aebef4a | ||
|
effb90c2ac | ||
|
e8972242ca | ||
|
e84ef0cddf | ||
|
594b45051d | ||
|
ed8e041180 | ||
|
f9c0870c59 | ||
|
550ea43e59 | ||
|
832f1f26a8 | ||
|
293beffadc | ||
|
29f3101513 | ||
|
ef6edee2a1 | ||
|
e00e95eb94 | ||
|
f6a78ee7cb | ||
|
c32fc59b39 | ||
|
78913a6f02 | ||
|
9964fd0db8 | ||
|
86ebec77eb | ||
|
281ec626e3 | ||
|
6f76e442fc | ||
|
c720de4dcf | ||
|
32a649b52a | ||
|
08f1230582 | ||
|
eda4dd653f | ||
|
d49de43f6b | ||
|
d385379da8 | ||
|
40f6e1675d | ||
|
19d114beda | ||
|
13329afe50 | ||
|
8feb8dd0e3 | ||
|
1370d93592 | ||
|
d24e4b9896 | ||
|
b279130d74 | ||
|
3504fc48f9 | ||
|
1ac3bbe134 | ||
|
fe7fd0147c | ||
|
0047b6bd3b | ||
|
b4e59c928c | ||
|
d33cff8f0a | ||
|
4eb440baaf | ||
|
96e54e6b3c | ||
|
bfbe792135 | ||
|
31bbeed39f | ||
|
9a175b6685 | ||
|
a6e36be63d | ||
|
9a348b2de6 | ||
|
c696512b49 | ||
|
cc1385c856 | ||
|
89a6b2407b | ||
|
36d5d82e88 | ||
|
8252a3ee75 | ||
|
c71586f092 | ||
|
09408ff9d4 | ||
|
661c07147e | ||
|
02d58cec8b | ||
|
e43de3a0e0 | ||
|
e391ed9d85 | ||
|
2c9a35effb | ||
|
9ee3f02a10 | ||
|
15f02a8d0f | ||
|
48ffc5257c | ||
|
7fad1aea6d | ||
|
aeb58c292f | ||
|
bcee168e84 | ||
|
150b220bf2 | ||
|
43403829eb | ||
|
75b4da6645 | ||
|
e0f1511552 | ||
|
338371b948 | ||
|
efa30f5115 | ||
|
90fa9036cb | ||
|
15b4ed267b | ||
|
67294dd890 | ||
|
aad0197fff | ||
|
b4a820e079 | ||
|
20cc0c935f | ||
|
b7f575fcf9 | ||
|
7f3a0acab2 | ||
|
6e9d718f4c | ||
|
00b781abe3 | ||
|
4800f84077 | ||
|
d6fc505561 | ||
|
b95c494758 | ||
|
2fc891a5ea | ||
|
f65641edce | ||
|
79b941eb4c | ||
|
f55d0e6b40 | ||
|
2c423db822 | ||
|
a6352ab7d8 | ||
|
01d9c176ce | ||
|
0828f5a2e8 | ||
|
d4341084da | ||
|
a6a23d7023 | ||
|
b3bc027a10 | ||
|
d2a23f97ce | ||
|
d1fa4ee583 | ||
|
3bacd89adc | ||
|
a8805259b5 | ||
|
bcf271abc9 | ||
|
101195f02f | ||
|
bd58749e91 | ||
|
19ff6a62a4 | ||
|
b0d5963549 | ||
|
3d98790d90 | ||
|
a0a9824424 | ||
|
966be1a13e | ||
|
00f3eb3d69 | ||
|
fce20e1783 | ||
|
f18c49de7b | ||
|
7de060613a | ||
|
466dcff1d8 | ||
|
73ebc5b10e | ||
|
352f9250d3 | ||
|
f92fc952af | ||
|
b3b18d1b18 | ||
|
ffedc9db25 | ||
|
d8064088ce | ||
|
695806c300 | ||
|
1a3a0f18b9 | ||
|
f8f48ee71c | ||
|
381c362e84 | ||
|
e064370467 | ||
|
88cf43708d | ||
|
e83c637e08 | ||
|
f48251e55c | ||
|
b0edebfba8 | ||
|
4f76314872 | ||
|
12c3b3ec2c | ||
|
7298aad053 | ||
|
3c4b7290db | ||
|
33803ec2d6 | ||
|
acbc45a26f | ||
|
78abd09c30 | ||
|
4898a75d5b | ||
|
251f8d18a5 | ||
|
4174832c63 | ||
|
c95b7ec69c | ||
|
765ac6c810 | ||
|
68e6b92c08 | ||
|
49190b074c | ||
|
7e29cf3ca6 | ||
|
3dc1454fd7 | ||
|
08ee194809 | ||
|
a95014bef5 | ||
|
6f8c2823a3 | ||
|
e0a95c19f3 | ||
|
add3c0728c | ||
|
ab082d612a | ||
|
b732aa9833 | ||
|
e68520b2cd | ||
|
83a9ffe9bd | ||
|
56e76c6098 | ||
|
4172a77c28 | ||
|
62b482f6de | ||
|
a3e521d243 | ||
|
7b5a6629b3 | ||
|
0b3787bb4c | ||
|
4485660f19 | ||
|
198a7ba2d8 | ||
|
694ea1a835 | ||
|
ae7b78e2d7 | ||
|
f5b85c7dfa | ||
|
6148966516 | ||
|
9967b12167 | ||
|
5574cc464a | ||
|
794538bbe9 | ||
|
a1e5589dca | ||
|
f7d9d69187 | ||
|
2762522066 | ||
|
4c6b99857c | ||
|
6c788ded2d | ||
|
542b8a4412 | ||
|
4b3b4b9d4d | ||
|
a0c9c76bd8 | ||
|
d23b35e1b8 | ||
|
32684767b6 | ||
|
ad93f49467 | ||
|
52b7e49b44 | ||
|
ab20e34d26 | ||
|
522cfeff67 | ||
|
d7b08ca48c | ||
|
058673d882 | ||
|
8c3ea72c86 | ||
|
74eea35e18 | ||
|
eafdc900b3 | ||
|
0ec3052ad8 | ||
|
c10b3888f0 | ||
|
8d2b9d84ce | ||
|
13a4de046d | ||
|
d030ce00cc | ||
|
a2ea852bd4 | ||
|
aeeb7473b9 | ||
|
a988358a84 | ||
|
76e75b2421 | ||
|
51bd508a5e | ||
|
4e042bb62f | ||
|
00fc4851bc | ||
|
fb0dae799d | ||
|
a68bdeeade | ||
|
c1dbd2139f | ||
|
fe88ff7d1c | ||
|
fecebfd7e1 | ||
|
0d171ddb5a | ||
|
a5736bba2b | ||
|
f1181e9383 | ||
|
6346e564f9 | ||
|
4843a8345a | ||
|
fd7c75da9f | ||
|
327ede57c3 | ||
|
179628163f | ||
|
dfcab10abe | ||
|
642f1860d2 | ||
|
bc6656111f | ||
|
53371d5428 | ||
|
444d1972e2 | ||
|
1f51564fc7 | ||
|
f49c69d566 | ||
|
80802dc892 | ||
|
c23815b757 | ||
|
b195eb7e21 | ||
|
2386aa1325 | ||
|
b64685aeee | ||
|
6f845a87c5 | ||
|
0a772c4f23 | ||
|
69bf7496e7 | ||
|
8925843f34 | ||
|
1ef2baf396 | ||
|
20706ccaf4 | ||
|
4100d16964 | ||
|
a85c1935bc | ||
|
f4996c9fc9 | ||
|
5e1f06e1e9 | ||
|
a89ff592f0 | ||
|
9471c04cb9 | ||
|
20dbe5de5a | ||
|
c0a34431df | ||
|
ce95621eb4 | ||
|
cd4fec9029 | ||
|
d1677d9ef9 | ||
|
131038a255 | ||
|
0b59adbb35 | ||
|
76ba09cd4b | ||
|
9820e5bf90 | ||
|
7d38995613 | ||
|
6162ff540b | ||
|
c0b9c4167f | ||
|
fa8f08f760 | ||
|
84072d9227 | ||
|
0f877a2d95 | ||
|
44ed6f8aee | ||
|
10c6c019fd | ||
|
93853449f9 | ||
|
16de972113 | ||
|
f9ca8a265e | ||
|
e82c8db22d | ||
|
e38d1020ac | ||
|
f814368e12 | ||
|
8713b30b79 | ||
|
9683b980b0 | ||
|
9272b4fa7b | ||
|
b6f66e8e25 | ||
|
612d47f4ac | ||
|
c65ab2057f | ||
|
03d7a890c3 | ||
|
1f9617699a | ||
|
17265598fd | ||
|
ab3caee22d | ||
|
e9c6aad49f | ||
|
5e92ec256f | ||
|
b1732c5fe7 | ||
|
cce40f5225 | ||
|
07c38643cc | ||
|
ca9c3a6034 | ||
|
2c7ca16313 | ||
|
8135c8bab4 | ||
|
c89a1e1d62 | ||
|
ba9f0e152f | ||
|
c106b7f078 | ||
|
25ff011c14 | ||
|
98b2ecc550 | ||
|
7042b7a23c | ||
|
acda6fc0d6 | ||
|
f7096a7f9d | ||
|
70ca0ce938 | ||
|
b969cab785 | ||
|
952f430b34 | ||
|
c558f913ed | ||
|
0cb1f22fdc | ||
|
f482dc2807 | ||
|
ac9551bfc1 | ||
|
b83414cda6 | ||
|
fa7d329def | ||
|
ebeb8079d7 | ||
|
2a585c7ac4 | ||
|
6d97db31e8 | ||
|
b4cc5a68a7 | ||
|
427db11d69 | ||
|
1b74681053 | ||
|
5416718efd | ||
|
2e0f47fc40 | ||
|
57a0495d79 | ||
|
d0fa31be3c | ||
|
5bce9a300d | ||
|
3793fd4106 | ||
|
1a24f9436c | ||
|
582f0c3986 | ||
|
9d2b5a932a | ||
|
03bbd29700 | ||
|
ad8d9a1e06 | ||
|
746b026890 | ||
|
43b5ff4725 | ||
|
5070aa1980 | ||
|
d2e9ae39d0 | ||
|
0f3c5be8d9 | ||
|
a9c7acb12a | ||
|
aa34496126 | ||
|
20c175c974 | ||
|
30b6cb0313 | ||
|
d7df9a864a | ||
|
1d3df7a757 | ||
|
c675583694 | ||
|
a58a08c3ab | ||
|
9383f04ed9 | ||
|
ff27ffcf60 | ||
|
9702f8b220 | ||
|
0d3fe267ed | ||
|
4bce3ea796 | ||
|
4bbe8f40b4 | ||
|
369d25f615 | ||
|
9d63fc3fe0 | ||
|
ce694b9cdb | ||
|
a0d8fabeea | ||
|
9d61db56b3 | ||
|
d48dca5e2f | ||
|
e23c2a728b | ||
|
8a151ff784 | ||
|
d3fd0b1d7b | ||
|
d97140c83e | ||
|
eb196a96fa | ||
|
c792b2646f | ||
|
fdb9011120 | ||
|
f4878ab442 | ||
|
1cbf80465f | ||
|
7b9ebba5dd | ||
|
508ce1d809 | ||
|
880c49c0ec | ||
|
78d2b4b146 | ||
|
74a4c25dc9 | ||
|
1bd9cea00b | ||
|
a82850a2c2 | ||
|
6ad7cbf5fd | ||
|
75a9554e11 | ||
|
907fda9cf6 | ||
|
c7b2bfd874 | ||
|
8a2502a149 | ||
|
c0933ab67f | ||
|
e62900974c | ||
|
38e4036876 | ||
|
38edc214a3 | ||
|
c1186748cf | ||
|
d0d13eccaf | ||
|
d94de7a13b | ||
|
6fdcff1acf | ||
|
5d228c2a49 | ||
|
09db61f549 | ||
|
2e340f386d | ||
|
440834cf09 | ||
|
05eaf385d5 | ||
|
3f27a31f65 | ||
|
fe1e252764 | ||
|
6391c53196 | ||
|
4dc37ac1aa | ||
|
fbeaf26fec | ||
|
9d46d755c0 | ||
|
3d3c799657 | ||
|
abf59caf8f | ||
|
38f8c55cc8 | ||
|
fb847996cc | ||
|
4399e68b2c | ||
|
ae264cf62f | ||
|
de69bdbb88 | ||
|
cc4c6df171 | ||
|
19c99f5ac0 | ||
|
1fe81c8b1f | ||
|
f0563df051 | ||
|
0f63d156be | ||
|
0003906ab9 | ||
|
46f6b579e5 | ||
|
ca1940cece | ||
|
85654cc1aa | ||
|
f72de1798f | ||
|
6eb1e7b4b9 | ||
|
5e85881327 | ||
|
1784ab0d7f | ||
|
de07f898c6 | ||
|
f0b11f50a5 | ||
|
494a408af6 | ||
|
13f98c0ec9 | ||
|
310348b307 | ||
|
96fa67400e | ||
|
cdd708e750 | ||
|
4cc9ff1112 | ||
|
989e9102d4 | ||
|
00093d376c | ||
|
9126170c3c | ||
|
2848dc79da | ||
|
5b177d7488 | ||
|
d212c71b83 | ||
|
1756fe4dc8 | ||
|
3d9cb9f5cc | ||
|
79fcb3ee2e | ||
|
5f8c83149e | ||
|
d7bf887392 | ||
|
6796795bbd | ||
|
4907d117bf | ||
|
40023c08ab | ||
|
a147e0807e | ||
|
4fd3e8d3ef | ||
|
a81608d939 | ||
|
690b82eaf6 | ||
|
5f6a35a428 | ||
|
01345ab520 | ||
|
1fcd92e537 | ||
|
5a434588e5 | ||
|
85605f86c2 | ||
|
a6ae74f4e8 | ||
|
10589cb03b | ||
|
8622d4e85d | ||
|
6ce3234dc5 | ||
|
738a33e065 | ||
|
6fdd82b245 | ||
|
98c0cac655 | ||
|
8ae7b5bb81 | ||
|
9ba551d7de | ||
|
5010d97eb4 | ||
|
fb0c6e5dd7 | ||
|
8ff2a98394 | ||
|
e8ac931f8d | ||
|
f2eb088b8c | ||
|
515aecd5c5 | ||
|
1d1ee9ecfb | ||
|
f1eefbb501 | ||
|
a0952074c5 | ||
|
c848988e99 | ||
|
3e62f036a3 | ||
|
8f3c6357f5 | ||
|
eaa2b6e2b4 | ||
|
92856faf70 | ||
|
1302e71321 | ||
|
c3195428df | ||
|
99f10e9b3e | ||
|
136f41b004 | ||
|
541185cfa6 | ||
|
8b6fd80d74 | ||
|
c6f0bdc5ef | ||
|
63747ef487 | ||
|
8272354a77 | ||
|
5e15088198 | ||
|
0535814733 | ||
|
7cb935a0c4 | ||
|
e263bde545 | ||
|
5f31e7fd2f | ||
|
582fda2720 | ||
|
ea2898c1b2 | ||
|
b6acac345b | ||
|
91c29432e3 | ||
|
5e83c9cf88 | ||
|
9834ec1c8e | ||
|
7ed03bef1b | ||
|
d6958e05db | ||
|
588125b5f4 | ||
|
891169e87b | ||
|
38f24649fe | ||
|
7f8ae63c00 | ||
|
4ee1e0e8ad | ||
|
02b00f4476 | ||
|
b524016d72 | ||
|
e8ee533d1f | ||
|
ed0250199a | ||
|
7a3c6f9efd | ||
|
e0ce87b291 | ||
|
f28d63d0b9 | ||
|
af0e17d5b0 | ||
|
c662d0caab | ||
|
1f76bbfd77 | ||
|
f7c784c228 | ||
|
ee7795df9a | ||
|
6dd64a829c | ||
|
75e7154353 | ||
|
3b8576093e | ||
|
5dd4f2d8e3 | ||
|
00a2c3569b | ||
|
cc7890f71d | ||
|
f156ab5168 | ||
|
0b2d206655 | ||
|
4c01df72b5 | ||
|
ada7671d81 | ||
|
5a0ec69dfd | ||
|
bf4f230766 | ||
|
49b6a854f9 | ||
|
5f72ec0c47 | ||
|
fc2a5016eb | ||
|
52d85d06a8 | ||
|
2e87474fc0 | ||
|
252ffc4128 | ||
|
a591960982 | ||
|
371db41bac | ||
|
ea4c66ea9e | ||
|
34e7ea8a94 | ||
|
1bf20110ce | ||
|
d58be51a79 | ||
|
0e8e1525d0 | ||
|
f362df6f92 |
@@ -5,24 +5,33 @@
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"changelog": "file://CHANGELOG",
|
||||
"tagline": "Distributed object storage",
|
||||
"version": "1.74.0",
|
||||
"version": "3.12.6",
|
||||
"upstreamVersion": "2024-01-29T03-56-32Z",
|
||||
"healthCheckPath": "/minio/login",
|
||||
"memoryLimit": 805306368,
|
||||
"httpPort": 8000,
|
||||
"httpPorts": {
|
||||
"API_SERVER_DOMAIN": {
|
||||
"title": "API Server Domain",
|
||||
"description": "The domain name for MinIO (S3) API requests",
|
||||
"containerPort": 9000,
|
||||
"defaultValue": "minio-api"
|
||||
}
|
||||
},
|
||||
"addons": {
|
||||
"localstorage": {}
|
||||
},
|
||||
"manifestVersion": 2,
|
||||
"website": "http://www.minio.io",
|
||||
"minBoxVersion": "4.1.4",
|
||||
"documentationUrl": "https://cloudron.io/documentation/apps/minio/",
|
||||
"minBoxVersion": "7.1.2",
|
||||
"forumUrl": "https://forum.cloudron.io/category/69/minio",
|
||||
"documentationUrl": "https://docs.cloudron.io/apps/minio/",
|
||||
"contactEmail": "support@cloudron.io",
|
||||
"icon": "logo.png",
|
||||
"tags": [
|
||||
"storage",
|
||||
"hosting"
|
||||
],
|
||||
"tags": [ "storage", "hosting", "s3", "objectstore" ],
|
||||
"mediaLinks": [
|
||||
"https://raw.githubusercontent.com/minio/minio/master/docs/screenshots/minio-browser.jpg"
|
||||
"https://screenshots.cloudron.io/io.minio.cloudronapp/pic1.png",
|
||||
"https://screenshots.cloudron.io/io.minio.cloudronapp/pic2.png"
|
||||
],
|
||||
"postInstallMessage": "file://POSTINSTALL.md"
|
||||
}
|
||||
|
@@ -1,29 +1,29 @@
|
||||
This app packages Minio <upstream>2019-08-07T01-59-21Z</upstream>.
|
||||
## About
|
||||
|
||||
Minio is a distributed object storage server built for cloud applications and devops.
|
||||
|
||||
### Features
|
||||
## Features
|
||||
|
||||
#### Amazon S3 Compatible
|
||||
### Amazon S3 Compatible
|
||||
|
||||
Minio implements Amazon S3 v4 APIs. Minio also includes client SDKs and a console utility.
|
||||
|
||||
#### Minimalist Design
|
||||
### Minimalist Design
|
||||
|
||||
Minio is deeply influenced by minimalism. We believe that only simple things scale.
|
||||
|
||||
#### Apache License 2.0
|
||||
### Apache License 2.0
|
||||
|
||||
Minio is free software, released under Apache license v2.0. Minio has an active developer and user community.
|
||||
|
||||
#### Lambda Functions
|
||||
### Lambda Functions
|
||||
|
||||
Minio triggers Lambda functions through event notification service. In addition Minio also supports simple queueing service for AMQP, Elasticsearch, Redis, NATS and Postgres targets.
|
||||
|
||||
#### Erasure Code & Bitrot Protection
|
||||
### Erasure Code & Bitrot Protection
|
||||
|
||||
Minio protects data against hardware failures and silent data corruption using erasure code and checksums. You may lose half the number of drives and still recover from it.
|
||||
|
||||
#### Written in Go
|
||||
### Written in Go
|
||||
|
||||
Go is an emerging language of choice for modern cloud infrastructure projects. Go language enables Minio to be highly concurrent and lightweight.
|
||||
|
19
Dockerfile
19
Dockerfile
@@ -1,13 +1,16 @@
|
||||
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
|
||||
|
||||
ARG VERSION=RELEASE.2019-08-07T01-59-21Z
|
||||
RUN mkdir -p /app/code \
|
||||
&& wget https://dl.minio.io/server/minio/release/linux-amd64/minio.${VERSION} -O /app/code/minio \
|
||||
&& chmod +x /app/code/minio
|
||||
FROM cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768ba473078319a47f4
|
||||
|
||||
RUN mkdir -p /app/code
|
||||
WORKDIR /app/code
|
||||
|
||||
ADD config.json /app/code/config.json
|
||||
ADD start.sh /app/code/start.sh
|
||||
ARG VERSION=RELEASE.2024-01-29T03-56-32Z
|
||||
|
||||
# sometimes here https://dl.min.io/server/minio/release/linux-amd64/archive/
|
||||
# RUN wget https://dl.min.io/server/minio/release/linux-amd64/minio.${VERSION} -O /app/code/minio && chmod +x /app/code/minio
|
||||
RUN wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio.${VERSION} -O /app/code/minio && chmod +x /app/code/minio
|
||||
# https://dl.min.io/client/mc/release/linux-amd64/
|
||||
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /app/code/mc && chmod +x /app/code/mc
|
||||
|
||||
COPY env.sh start.sh /app/code/
|
||||
|
||||
CMD [ "/app/code/start.sh" ]
|
||||
|
202
LICENSE.txt
202
LICENSE.txt
@@ -1,202 +0,0 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
@@ -1,8 +1,7 @@
|
||||
This application does not integrate with Cloudron authentication.
|
||||
|
||||
Please use the following credentials to login:
|
||||
|
||||
* AccessKey: `admin`
|
||||
* SecretKey: `secretkey`
|
||||
**Username**: minioadmin<br/>
|
||||
**Password**: minioadmin<br/>
|
||||
|
||||
Please change the credentials immediately by following this [guide](https://cloudron.io/documentation/apps/minio/#admin-credentials).
|
||||
|
||||
**Please change the credentials immediately**
|
||||
|
@@ -34,3 +34,11 @@ npm install
|
||||
PATH=$PATH:node_modules/.bin mocha --bail test.js
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
MinIO Console is an embedded web-based object browser built into MinIO Server
|
||||
|
||||
## Multi-domain
|
||||
|
||||
MINIO_DOMAIN=domain.com env var can be set to server DNS style requests as bucket.domain.com . This requires the platform code to set aliases for the httpPorts and not the primaryport.
|
||||
|
||||
|
14
config.json
14
config.json
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"version": "33",
|
||||
"credential": {
|
||||
"accessKey": "admin",
|
||||
"secretKey": "secretkey"
|
||||
},
|
||||
"region": "us-east-1",
|
||||
"logger": {
|
||||
"console": {
|
||||
"enable": true,
|
||||
"level": "error"
|
||||
}
|
||||
}
|
||||
}
|
9
env.sh
Normal file
9
env.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
# Add custom minio configuration to this file. Restart the app for changes to take effect.
|
||||
|
||||
export CLOUDRON_MINIO_STARTUP_ARGS='server /app/data/data'
|
||||
|
||||
# See https://docs.min.io/minio/baremetal/reference/minio-server/minio-server.html#envvar.MINIO_ROOT_USER
|
||||
# You can use pwgen -1s 64 to generate usernames and passwords
|
||||
export MINIO_ROOT_USER=minioadmin
|
||||
export MINIO_ROOT_PASSWORD=minioadmin
|
||||
|
BIN
screenshots/pic1.png
Normal file
BIN
screenshots/pic1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 MiB |
BIN
screenshots/pic2.png
Normal file
BIN
screenshots/pic2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 MiB |
25
start.sh
25
start.sh
@@ -2,16 +2,25 @@
|
||||
|
||||
set -eu
|
||||
|
||||
mkdir -p /app/data/data /app/data/certs /app/data/config
|
||||
mkdir -p /app/data/data /run/minio/config /run/minio/certs
|
||||
|
||||
if ! [ -f /app/data/config/config.json ]; then
|
||||
cp /app/code/config.json /app/data/config/config.json
|
||||
# env vars take precedence over config.yaml (https://github.com/minio/minio/blob/master/docs/distributed/CONFIG.md#things-to-know)
|
||||
[[ ! -f /app/data/env.sh ]] && cp /app/code/env.sh /app/data/env.sh
|
||||
source /app/data/env.sh
|
||||
|
||||
# https://docs.min.io/minio/baremetal/reference/minio-server/minio-server.html#envvar.MINIO_SERVER_URL
|
||||
export MINIO_SERVER_URL="https://${API_SERVER_DOMAIN}"
|
||||
export MINIO_BROWSER_REDIRECT_URL="https://${CLOUDRON_APP_DOMAIN}"
|
||||
|
||||
if [[ ! -d /app/data/mc_config ]]; then
|
||||
mkdir -p /app/data/mc_config
|
||||
/app/code/mc --config-dir /app/data/mc_config &> /dev/null || true
|
||||
fi
|
||||
|
||||
echo "Changing ownership"
|
||||
chown -R cloudron:cloudron /app/data
|
||||
|
||||
echo "Starting minio"
|
||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio server --config-dir /app/data/config --certs-dir /app/data/certs --address :8000 /app/data/data
|
||||
# minio is used for backups at times and has a large number of files. optimize by checking if files are actually in correct chown state
|
||||
echo "==> Changing ownership"
|
||||
[[ $(stat --format '%U' /app/data/data) != "cloudron" ]] && chown -R cloudron:cloudron /app/data
|
||||
|
||||
echo "==> Starting minio"
|
||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio --quiet ${CLOUDRON_MINIO_STARTUP_ARGS} --address :9000 --console-address :8000
|
||||
|
||||
|
3330
test/package-lock.json
generated
3330
test/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,14 +9,10 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"chromedriver": "^76.0.0",
|
||||
"ejs": "^2.6.2",
|
||||
"chromedriver": "^121.0.0",
|
||||
"expect.js": "^0.3.1",
|
||||
"mkdirp": "^0.5.1",
|
||||
"mocha": "^6.2.0",
|
||||
"rimraf": "^2.6.3",
|
||||
"selenium-server-standalone-jar": "^3.141.5",
|
||||
"selenium-webdriver": "^3.6.0",
|
||||
"superagent": "^5.1.0"
|
||||
"mocha": "^10.2.0",
|
||||
"selenium-webdriver": "^4.17.0",
|
||||
"superagent": "^8.1.2"
|
||||
}
|
||||
}
|
||||
|
303
test/test.js
303
test/test.js
@@ -1,227 +1,182 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/* jshint esversion: 8 */
|
||||
/* global describe */
|
||||
/* global before */
|
||||
/* global after */
|
||||
/* global it */
|
||||
/* global xit */
|
||||
|
||||
'use strict';
|
||||
|
||||
require('chromedriver');
|
||||
|
||||
var execSync = require('child_process').execSync,
|
||||
const execSync = require('child_process').execSync,
|
||||
expect = require('expect.js'),
|
||||
fs = require('fs'),
|
||||
path = require('path'),
|
||||
webdriver = require('selenium-webdriver');
|
||||
|
||||
var by = require('selenium-webdriver').By,
|
||||
until = require('selenium-webdriver').until,
|
||||
Key = require('selenium-webdriver').Key,
|
||||
Builder = require('selenium-webdriver').Builder;
|
||||
|
||||
var accessKey = 'admin',
|
||||
secretKey = 'secretkey';
|
||||
|
||||
var bucket = 'cloudrontestbucket';
|
||||
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
|
||||
superagent = require('superagent'),
|
||||
timers = require('timers/promises'),
|
||||
{ Builder, By, until } = require('selenium-webdriver'),
|
||||
{ Options } = require('selenium-webdriver/chrome');
|
||||
|
||||
describe('Application life cycle test', function () {
|
||||
this.timeout(0);
|
||||
|
||||
var server, browser = new Builder().forBrowser('chrome').build();
|
||||
const LOCATION = 'test';
|
||||
const TEST_TIMEOUT = 30000;
|
||||
const BUCKET = 'cloudrontestbucket';
|
||||
const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
|
||||
|
||||
before(function (done) {
|
||||
var seleniumJar= require('selenium-server-standalone-jar');
|
||||
var SeleniumServer = require('selenium-webdriver/remote').SeleniumServer;
|
||||
server = new SeleniumServer(seleniumJar.path, { port: 4444 });
|
||||
server.start();
|
||||
let browser, app;
|
||||
|
||||
done();
|
||||
before(function () {
|
||||
browser = new Builder().forBrowser('chrome').setChromeOptions(new Options().windowSize({ width: 1280, height: 1024 })).build();
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
after(function () {
|
||||
browser.quit();
|
||||
server.stop();
|
||||
done();
|
||||
});
|
||||
|
||||
var LOCATION = 'test';
|
||||
var TEST_TIMEOUT = 10000;
|
||||
var app;
|
||||
|
||||
function pageLoaded() {
|
||||
return browser.wait(until.elementLocated(by.className('page-load pl-0 pl-1')), TEST_TIMEOUT);
|
||||
async function waitForElement(elem) {
|
||||
await browser.wait(until.elementLocated(elem), TEST_TIMEOUT);
|
||||
await browser.wait(until.elementIsVisible(browser.findElement(elem)), TEST_TIMEOUT);
|
||||
}
|
||||
|
||||
function visible(selector) {
|
||||
return browser.wait(until.elementLocated(selector), TEST_TIMEOUT).then(function () {
|
||||
return browser.wait(until.elementIsVisible(browser.findElement(selector)), TEST_TIMEOUT);
|
||||
});
|
||||
}
|
||||
|
||||
function login(callback) {
|
||||
browser.manage().deleteAllCookies();
|
||||
browser.get('https://' + app.fqdn).then(function () {
|
||||
return visible(by.id('accessKey'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('accessKey')).sendKeys(accessKey);
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('secretKey')).sendKeys(secretKey);
|
||||
}).then(function () {
|
||||
// return browser.findElement(by.className('lw-btn')).click();
|
||||
return browser.findElement(by.tagName('form')).submit();
|
||||
}).then(function () {
|
||||
return browser.wait(until.elementLocated(by.id('top-right-menu')), TEST_TIMEOUT);
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function logout(callback) {
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded().then(function () {
|
||||
return visible(by.id('top-right-menu'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('top-right-menu')).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[text()="Sign Out "]'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//*[text()="Sign Out "]')).click();
|
||||
}).then(function () {
|
||||
return browser.wait(until.elementLocated(by.id('accessKey')), TEST_TIMEOUT);
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function addBucket(callback) {
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded().then(function () {
|
||||
return visible(by.className('fa fa-plus'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.className('fa fa-plus')).click();
|
||||
}).then(function () {
|
||||
return visible(by.className('fa fa-hdd-o'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.className('fa fa-hdd-o')).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[@class="modal-body"]/form/div/input'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//*[@class="modal-body"]/form/div/input')).sendKeys(bucket);
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//*[@class="modal-body"]/form')).submit();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[@class="main"]/a[text()="' + bucket + '"]'));
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function checkBucket(callback) {
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded().then(function () {
|
||||
return browser.findElement(by.xpath(`//a[contains(text(), ${bucket})]`));
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function openSettings(callback) {
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded().then(function () {
|
||||
return visible(by.id('top-right-menu'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('top-right-menu')).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[contains(text(), "Change Password")]'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//*[contains(text(),"Change Password")]')).click();
|
||||
}).then(function () {
|
||||
return browser.wait(until.elementLocated(by.xpath('//*[contains(text(), "Change Password")]')), TEST_TIMEOUT);
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
xit('build app', function () {
|
||||
execSync('cloudron build', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
|
||||
it('install app', function () {
|
||||
execSync('cloudron install --new --wait --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
|
||||
it('can get app information', function () {
|
||||
function getAppInfo() {
|
||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||
|
||||
app = inspect.apps.filter(function (a) { return a.location === LOCATION; })[0];
|
||||
|
||||
app = inspect.apps.filter(function (a) { return a.location.indexOf(LOCATION) === 0; })[0];
|
||||
expect(app).to.be.an('object');
|
||||
}
|
||||
|
||||
async function login(accessKey='minioadmin', secretKey='minioadmin') {
|
||||
await browser.get(`https://${app.fqdn}/login`);
|
||||
await waitForElement(By.id('accessKey'));
|
||||
await browser.findElement(By.id('accessKey')).sendKeys(accessKey);
|
||||
await browser.findElement(By.id('secretKey')).sendKeys(secretKey);
|
||||
await browser.findElement(By.xpath('//button[@id="do-login"]')).click();
|
||||
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
|
||||
await timers.setTimeout(5000);
|
||||
}
|
||||
|
||||
async function logout() {
|
||||
await browser.get(`https://${app.fqdn}/`);
|
||||
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
|
||||
const button = await browser.findElement(By.xpath('//button[@id="sign-out"]'));
|
||||
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
|
||||
await button.click();
|
||||
await waitForElement(By.id('accessKey'));
|
||||
}
|
||||
|
||||
async function addBucket() {
|
||||
await browser.get(`https://${app.fqdn}/buckets`);
|
||||
await waitForElement(By.xpath('//button[@id="create-bucket"]'));
|
||||
await browser.findElement(By.xpath('//button[@id="create-bucket"]')).click();
|
||||
await browser.sleep(2000);
|
||||
await browser.findElement(By.xpath('//input[@id="bucket-name"]')).sendKeys(BUCKET);
|
||||
await browser.findElement(By.xpath('//button[@id="create-bucket"]')).click();
|
||||
await waitForElement(By.xpath(`//h1[contains(text(), "${BUCKET}")]`));
|
||||
await timers.setTimeout(5000);
|
||||
}
|
||||
|
||||
async function checkBucket() {
|
||||
await browser.get(`https://${app.fqdn}/buckets`);
|
||||
await waitForElement(By.xpath(`//h1[contains(text(), "${BUCKET}")]`));
|
||||
}
|
||||
|
||||
async function checkRedirect() {
|
||||
const response = await superagent.get(`https://${app.secondaryDomains[0].fqdn}`).set('User-Agent', 'Mozilla/5.0').redirects(0).ok(() => true);
|
||||
expect(response.status).to.be(307);
|
||||
expect(response.headers.location).to.be(`https://${app.fqdn}`);
|
||||
}
|
||||
|
||||
async function checkApi() {
|
||||
const response = await superagent.get(`https://${app.secondaryDomains[0].fqdn}`).ok(() => true);
|
||||
expect(response.status).to.be(403);
|
||||
expect(response.body.toString('utf8')).to.contain('<Code>AccessDenied</Code>');
|
||||
}
|
||||
|
||||
xit('build app', function () { execSync('cloudron build', EXEC_ARGS); });
|
||||
it('install app', async function () {
|
||||
execSync(`cloudron install --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can get app information', getAppInfo);
|
||||
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
it('can add bucket', addBucket);
|
||||
it('can open settings', openSettings);
|
||||
it('can logout', logout);
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('can restart app', function (done) {
|
||||
execSync('cloudron restart --wait');
|
||||
done();
|
||||
it('can change credentials', async function () {
|
||||
let data = fs.readFileSync(path.join(__dirname, '../env.sh'), 'utf8');
|
||||
data = data
|
||||
.replace(/MINIO_ROOT_USER=.*/, 'MINIO_ROOT_USER=minioakey')
|
||||
.replace(/MINIO_ROOT_PASSWORD=.*/, 'MINIO_ROOT_PASSWORD=minioskey');
|
||||
fs.writeFileSync('/tmp/env.sh', data);
|
||||
execSync(`cloudron push --app ${app.id} /tmp/env.sh /app/data/env.sh`, EXEC_ARGS);
|
||||
execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can restart app', function () { execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS); });
|
||||
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('backup app', function () {
|
||||
execSync('cloudron backup create --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
it('backup app', function () { execSync('cloudron backup create --app ' + app.id, EXEC_ARGS); });
|
||||
it('restore app', async function () {
|
||||
const backups = JSON.parse(execSync(`cloudron backup list --raw --app ${app.id}`));
|
||||
execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS);
|
||||
execSync('cloudron install --location ' + LOCATION, EXEC_ARGS);
|
||||
getAppInfo();
|
||||
execSync(`cloudron restore --backup ${backups[0].id} --app ${app.id}`, EXEC_ARGS);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
|
||||
it('restore app', function () {
|
||||
execSync('cloudron restore --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
|
||||
it('can login', login);
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('has bucket', checkBucket);
|
||||
it('can open settings', openSettings);
|
||||
it('can logout', logout);
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('move to different location', function () {
|
||||
it('move to different location', async function () {
|
||||
browser.manage().deleteAllCookies();
|
||||
execSync('cloudron configure --wait --location ' + LOCATION + '2', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||
app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0];
|
||||
expect(app).to.be.an('object');
|
||||
execSync('cloudron configure --location ' + LOCATION + '2', EXEC_ARGS);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
it('can get app information', getAppInfo);
|
||||
|
||||
it('can login', login);
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('uninstall app', function () {
|
||||
execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
|
||||
|
||||
// test update
|
||||
it('can install app', function () {
|
||||
execSync('cloudron install --new --wait --appstore-id io.minio.cloudronapp --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||
app = inspect.apps.filter(function (a) { return a.location === LOCATION; })[0];
|
||||
expect(app).to.be.an('object');
|
||||
});
|
||||
it('can install app', function () { execSync('cloudron install --appstore-id io.minio.cloudronapp --location ' + LOCATION, EXEC_ARGS); });
|
||||
it('can get app information', getAppInfo);
|
||||
|
||||
it('can login', login);
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
it('can add buckets', addBucket);
|
||||
it('can logout', logout);
|
||||
it('can update', function () {
|
||||
execSync('cloudron install --wait --app ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
it('can login', login);
|
||||
it('can update', function () { execSync(`cloudron update --app ${LOCATION}`, EXEC_ARGS); });
|
||||
it('can configure', function () { execSync(`cloudron configure --app ${LOCATION} --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS); });
|
||||
it('can get app information', getAppInfo);
|
||||
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
it('uninstall app', function () {
|
||||
execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user