mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-03 07:45:20 +00:00
Compare commits
591 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
42ecaf8662 | ||
|
7fb6950cab | ||
|
d952670c20 | ||
|
8239fd8ade | ||
|
41644f3c54 | ||
|
31da17a3e1 | ||
|
9a9a8b0b13 | ||
|
ab05d0a834 | ||
|
e0db747a08 | ||
|
eb0b1f9e79 | ||
|
d556596770 | ||
|
d6654f7e72 | ||
|
9e5494c2f4 | ||
|
042424145e | ||
|
f20ff8beba | ||
|
46eca06f85 | ||
|
060c0d0b9e | ||
|
1d94015a6d | ||
|
6158eb4dfb | ||
|
bb429dce76 | ||
|
9905f1ea9e | ||
|
9695742134 | ||
|
4dc7f3e9fc | ||
|
9acfaf24b2 | ||
|
453ff9f199 | ||
|
c8ca9511e0 | ||
|
5df913be43 | ||
|
b1a1791d4e | ||
|
ac2c9c41fc | ||
|
c0467b9eb6 | ||
|
824337583f | ||
|
99c29a629b | ||
|
4b5422208c | ||
|
3a7bdd5e39 | ||
|
2fd201cb32 | ||
|
12e40b8e6a | ||
|
e6901e02ff | ||
|
958a954c07 | ||
|
901d877b5f | ||
|
acc5e3c6be | ||
|
c17b207a70 | ||
|
0e681b6b1a | ||
|
0bfd368aa2 | ||
|
94abf5cd3e | ||
|
9a9b0588ae | ||
|
92a30fdd7c | ||
|
07f1df3a20 | ||
|
b624d6775c | ||
|
330f186821 | ||
|
72224538ea | ||
|
fb1f583f4c | ||
|
5699a05783 | ||
|
64222e227e | ||
|
8f7a046554 | ||
|
3717901b12 | ||
|
85f4a808be | ||
|
9d1b7e1a9d | ||
|
9bea0cc891 | ||
|
557a8acd3d | ||
|
fb1db2809a | ||
|
7fcfa2d793 | ||
|
2e71a424d6 | ||
|
d5ed478302 | ||
|
63240d9ef7 | ||
|
ea84113aa7 | ||
|
d70ab90edf | ||
|
47ca8d4426 | ||
|
a6c683af4d | ||
|
b64d0c834b | ||
|
8aab79757f | ||
|
4d0ed6744f | ||
|
5f7d71f028 | ||
|
26e95361b6 | ||
|
5cee1588f3 | ||
|
d8c7fa0d47 | ||
|
2f8caf38d4 | ||
|
51850a87d8 | ||
|
9a9367d5f4 | ||
|
bedc600aa5 | ||
|
368da33581 | ||
|
ca6eaad35d | ||
|
e47f31b8a8 | ||
|
05c08cdafe | ||
|
af2efcfd46 | ||
|
042e08f7ad | ||
|
5f6b3ef9c3 | ||
|
0e6b93f732 | ||
|
2b7aff15d3 | ||
|
febd561bfb | ||
|
abef481b63 | ||
|
2b0dcc7d38 | ||
|
0c32be8139 | ||
|
fd04e1b784 | ||
|
bd883b747c | ||
|
618c3c6736 | ||
|
fba9a4ff32 | ||
|
7878d690b9 | ||
|
623b291e62 | ||
|
74bc0cbbd2 | ||
|
316047b1d3 | ||
|
569e830514 | ||
|
7417ce44e5 | ||
|
88918c602a | ||
|
7b26be880d | ||
|
e966943be5 | ||
|
dd46a7f8e9 | ||
|
5295380629 | ||
|
22f00b1803 | ||
|
8315f77f5c | ||
|
e1a29850c8 | ||
|
c94a90e4ab | ||
|
d4ec80fab3 | ||
|
682dd521a1 | ||
|
cd7055c916 | ||
|
6d385533b3 | ||
|
36d669ad59 | ||
|
cc5e013c1f | ||
|
20bbaff551 | ||
|
d39b1cb50f | ||
|
0dec46fdc0 | ||
|
9d8938b7bf | ||
|
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 |
@@ -5,23 +5,35 @@
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"changelog": "file://CHANGELOG",
|
||||
"tagline": "Distributed object storage",
|
||||
"version": "1.135.0",
|
||||
"version": "3.13.38",
|
||||
"upstreamVersion": "RELEASE.2024-09-09T16-59-28Z",
|
||||
"healthCheckPath": "/minio/login",
|
||||
"memoryLimit": 2147483648,
|
||||
"httpPort": 8000,
|
||||
"addons": {
|
||||
"localstorage": {}
|
||||
"httpPorts": {
|
||||
"API_SERVER_DOMAIN": {
|
||||
"title": "API Server Domain",
|
||||
"description": "The domain name for MinIO (S3) API requests",
|
||||
"containerPort": 9000,
|
||||
"defaultValue": "minio-api"
|
||||
}
|
||||
},
|
||||
"addons": {
|
||||
"localstorage": {},
|
||||
"oidc": { "loginRedirectUri": "/oauth_callback" }
|
||||
},
|
||||
"optionalSso": true,
|
||||
"manifestVersion": 2,
|
||||
"website": "http://www.minio.io",
|
||||
"minBoxVersion": "5.3.0",
|
||||
"minBoxVersion": "7.1.2",
|
||||
"forumUrl": "https://forum.cloudron.io/category/69/minio",
|
||||
"documentationUrl": "https://cloudron.io/documentation/apps/minio/",
|
||||
"documentationUrl": "https://docs.cloudron.io/apps/minio/",
|
||||
"contactEmail": "support@cloudron.io",
|
||||
"icon": "logo.png",
|
||||
"tags": [ "storage", "hosting", "s3", "objectstore" ],
|
||||
"mediaLinks": [
|
||||
"https://screenshots.cloudron.io/io.minio.cloudronapp/minio-browser-gateway.png",
|
||||
"https://screenshots.cloudron.io/io.minio.cloudronapp/minio-browser.png"
|
||||
"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>2020-09-08T23-05-18Z</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.
|
||||
|
20
Dockerfile
20
Dockerfile
@@ -1,14 +1,16 @@
|
||||
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
|
||||
|
||||
ARG VERSION=RELEASE.2020-09-08T23-05-18Z
|
||||
|
||||
RUN mkdir -p /app/code \
|
||||
&& wget https://dl.min.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 start.sh /app/code/start.sh
|
||||
ADD minio-credentials /app/code/minio-credentials
|
||||
ARG VERSION=RELEASE.2024-09-09T16-59-28Z
|
||||
|
||||
# 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.template start.sh /app/code/
|
||||
|
||||
CMD [ "/app/code/start.sh" ]
|
||||
|
@@ -1,7 +1,19 @@
|
||||
<nosso>
|
||||
Please use the following credentials to login:
|
||||
|
||||
**Username**: minioadmin<br/>
|
||||
**Password**: minioadmin<br/>
|
||||
|
||||
Please change the credentials immediately by following this [guide](https://cloudron.io/documentation/apps/minio/#admin-credentials).
|
||||
</nosso>
|
||||
|
||||
<sso>
|
||||
|
||||
Please use the following credentials to login via 'Other Authentication Methods' -> 'Use Credentials':
|
||||
|
||||
**Username**: minioadmin<br/>
|
||||
**Password**: See `MINIO_ROOT_PASSWORD` in `/app/data/env.sh` <a href="/frontend/filemanager.html#/viewer/app/$CLOUDRON-APP-ID/env.sh">Open File Manager</a><br/>
|
||||
|
||||
Cloudron users have `readwrite` access policy. See the [docs](https://cloudron.io/documentation/apps/minio/#admin-credentials) on how to change it.
|
||||
|
||||
</nosso>
|
||||
|
@@ -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.
|
||||
|
||||
|
4
env.sh.template
Normal file
4
env.sh.template
Normal file
@@ -0,0 +1,4 @@
|
||||
# Add custom minio configuration to this file. Restart the app for changes to take effect.
|
||||
|
||||
export CLOUDRON_MINIO_STARTUP_ARGS='server /app/data/data'
|
||||
|
@@ -1,41 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
const MINIO_CONFIG = '/app/data/data/.minio.sys/config/config.json';
|
||||
|
||||
function usage() {
|
||||
console.log('Usage:\n');
|
||||
console.log('\tminio-credentials get');
|
||||
console.log('\tminio-credentials set <access key> <secret key>');
|
||||
console.log();
|
||||
}
|
||||
|
||||
let config = JSON.parse(fs.readFileSync(MINIO_CONFIG, 'utf8'));
|
||||
let adminCredentials = config['credentials']['_'];
|
||||
let accessKey = adminCredentials.filter(kv => kv.key === 'access_key')[0];
|
||||
let secretKey = adminCredentials.filter(kv => kv.key === 'secret_key')[0];
|
||||
|
||||
if (process.argv[2] === 'get') {
|
||||
console.log('Access Key:', accessKey.value);
|
||||
console.log('Secret Key:', secretKey.value);
|
||||
} else if (process.argv[2] === 'set') {
|
||||
if (process.argv.length !== 5) return usage();
|
||||
|
||||
// https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateAccessKey.html
|
||||
if (process.argv[4].length < 5) return console.log('secret key must be atleast 5 characters');
|
||||
if (!/^[\w+=,.@-]+$/.test(process.argv[3])) return console.log('access key has invalid characters');
|
||||
|
||||
accessKey.value = process.argv[3];
|
||||
if (process.argv[4].length < 8) return console.log('secret key must be atleast 8 characters');
|
||||
|
||||
secretKey.value = process.argv[4];
|
||||
|
||||
fs.writeFileSync(MINIO_CONFIG, JSON.stringify(config), 'utf8');
|
||||
console.log('Credentials updated. Restart minio app for new credentials to take effect.\n');
|
||||
} else {
|
||||
usage();
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 111 KiB |
Binary file not shown.
Before Width: | Height: | Size: 106 KiB |
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 |
44
start.sh
44
start.sh
@@ -4,11 +4,47 @@ set -eu
|
||||
|
||||
mkdir -p /app/data/data /run/minio/config /run/minio/certs
|
||||
|
||||
# env vars take precedence over config.yaml (https://github.com/minio/minio/blob/master/docs/distributed/CONFIG.md#things-to-know)
|
||||
if [[ ! -f /app/data/env.sh ]]; then
|
||||
echo "=> First run"
|
||||
cp /app/code/env.sh.template /app/data/env.sh
|
||||
# minio does not show the password login by default when OIDC is setup (https://github.com/minio/minio/discussions/16928)
|
||||
# we generate a dynamic password because users might forget to change the admin password (with the oidc login being so click friendly)
|
||||
if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
|
||||
echo -e "export MINIO_ROOT_USER=minioadmin\nexport MINIO_ROOT_PASSWORD=$(pwgen -1s 20)\n\n" >> /app/data/env.sh
|
||||
else
|
||||
echo -e "export MINIO_ROOT_USER=minioadmin\nexport MINIO_ROOT_PASSWORD=minioadmin\n\n" >> /app/data/env.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
|
||||
export MINIO_IDENTITY_OPENID_DISPLAY_NAME="Cloudron"
|
||||
export MINIO_IDENTITY_OPENID_CONFIG_URL="${CLOUDRON_OIDC_DISCOVERY_URL}"
|
||||
export MINIO_IDENTITY_OPENID_CLIENT_ID="${CLOUDRON_OIDC_CLIENT_ID}"
|
||||
export MINIO_IDENTITY_OPENID_CLIENT_SECRET="${CLOUDRON_OIDC_CLIENT_SECRET}"
|
||||
export MINIO_IDENTITY_OPENID_SCOPES="openid profile email"
|
||||
if [[ -z "${MINIO_IDENTITY_OPENID_ROLE_POLICY:-}" ]]; then
|
||||
export MINIO_IDENTITY_OPENID_ROLE_POLICY="readwrite"
|
||||
fi
|
||||
|
||||
export MINIO_IDENTITY_OPENID_COMMENT="Cloudron OIDC"
|
||||
fi
|
||||
|
||||
# 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"
|
||||
chown -R cloudron:cloudron /app/data
|
||||
[[ $(stat --format '%U' /app/data/data) != "cloudron" ]] && chown -R cloudron:cloudron /app/data
|
||||
|
||||
# the --config-dir is deprecated and not used. but without it, minio will try to create $HOME/.minio :/ same for --certs-dir
|
||||
echo "==> Starting minio"
|
||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio --certs-dir /run/minio/certs --config-dir /run/minio/config --quiet server --address :8000 /app/data/data
|
||||
|
||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio --quiet ${CLOUDRON_MINIO_STARTUP_ARGS} --address :9000 --console-address :8000
|
||||
|
||||
|
3727
test/package-lock.json
generated
3727
test/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,14 +9,10 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"chromedriver": "^85.0.0",
|
||||
"ejs": "^3.1.5",
|
||||
"chromedriver": "^128.0.1",
|
||||
"expect.js": "^0.3.1",
|
||||
"mkdirp": "^1.0.4",
|
||||
"mocha": "^8.1.3",
|
||||
"rimraf": "^3.0.2",
|
||||
"selenium-server-standalone-jar": "^3.141.59",
|
||||
"selenium-webdriver": "^3.6.0",
|
||||
"superagent": "^6.1.0"
|
||||
"mocha": "^10.7.3",
|
||||
"selenium-webdriver": "^4.24.0",
|
||||
"superagent": "^10.1.0"
|
||||
}
|
||||
}
|
||||
|
418
test/test.js
418
test/test.js
@@ -1,234 +1,296 @@
|
||||
#!/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');
|
||||
superagent = require('superagent'),
|
||||
timers = require('timers/promises'),
|
||||
{ Builder, By, until } = require('selenium-webdriver'),
|
||||
{ Options } = require('selenium-webdriver/chrome');
|
||||
|
||||
var by = require('selenium-webdriver').By,
|
||||
until = require('selenium-webdriver').until,
|
||||
Key = require('selenium-webdriver').Key,
|
||||
Builder = require('selenium-webdriver').Builder;
|
||||
|
||||
var bucket = 'cloudrontestbucket';
|
||||
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
if (!process.env.USERNAME || !process.env.PASSWORD) {
|
||||
console.log('USERNAME and PASSWORD env vars need to be set');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
describe('Application life cycle test', function () {
|
||||
this.timeout(0);
|
||||
|
||||
var server, browser = new Builder().forBrowser('chrome').build();
|
||||
const LOCATION = 'test';
|
||||
const TEST_TIMEOUT = parseInt(process.env.TIMEOUT, 10) || 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;
|
||||
let athenticated_by_oidc = false, rootPassword;
|
||||
let username = process.env.USERNAME;
|
||||
let password = process.env.PASSWORD;
|
||||
|
||||
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(accessKey, secretKey, 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-plus'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.className('fa-plus')).click();
|
||||
}).then(function () {
|
||||
const c = 'fa-hdd';
|
||||
return visible(by.className(c));
|
||||
}).then(function () {
|
||||
const c = 'fa-hdd';
|
||||
return browser.findElement(by.className(c)).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 --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(username, password, expandLoginForm=true) {
|
||||
await browser.manage().deleteAllCookies();
|
||||
await browser.get('about:blank');
|
||||
await browser.sleep(2000);
|
||||
await browser.get(`https://${app.fqdn}/login`);
|
||||
await browser.sleep(2000);
|
||||
|
||||
if (expandLoginForm) {
|
||||
await waitForElement(By.xpath('//div[@id="alternativeMethods-select"]/div[contains(., "Other Authentication Methods")]'));
|
||||
await browser.findElement(By.xpath('//div[@id="alternativeMethods-select"]/div[contains(., "Other Authentication Methods")]')).click();
|
||||
await browser.sleep(2000);
|
||||
await browser.findElement(By.xpath('//li[contains(., "Use Credentials")] | //div[@label="Use Credentials"]')).click();
|
||||
await browser.sleep(2000);
|
||||
}
|
||||
await waitForElement(By.id('accessKey'));
|
||||
await browser.findElement(By.id('accessKey')).sendKeys(username);
|
||||
await browser.findElement(By.id('secretKey')).sendKeys(password);
|
||||
await browser.findElement(By.xpath('//button[@id="do-login"]')).click();
|
||||
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
|
||||
await timers.setTimeout(5000);
|
||||
}
|
||||
|
||||
async function loginOIDC(username, password) {
|
||||
browser.manage().deleteAllCookies();
|
||||
await browser.get(`https://${app.fqdn}/login`);
|
||||
await browser.sleep(10000);
|
||||
|
||||
await browser.findElement(By.xpath('//button[contains(., "Cloudron")]')).click();
|
||||
await browser.sleep(10000);
|
||||
|
||||
if (!athenticated_by_oidc) {
|
||||
await waitForElement(By.xpath('//input[@name="username"]'));
|
||||
await browser.findElement(By.xpath('//input[@name="username"]')).sendKeys(username);
|
||||
await browser.findElement(By.xpath('//input[@name="password"]')).sendKeys(password);
|
||||
await browser.sleep(2000);
|
||||
await browser.findElement(By.id('loginSubmitButton')).click();
|
||||
await browser.sleep(2000);
|
||||
|
||||
athenticated_by_oidc = true;
|
||||
}
|
||||
|
||||
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
|
||||
}
|
||||
|
||||
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 browser.sleep(10000); // needed!
|
||||
await waitForElement(By.xpath('//*[@id="accessKey"] | //button[contains(., "Cloudron")]'));
|
||||
}
|
||||
|
||||
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>');
|
||||
}
|
||||
|
||||
async function changeAdminCredentials() {
|
||||
let data = fs.readFileSync(path.join(__dirname, '../env.sh.template'), 'utf8');
|
||||
data += '\nexport MINIO_ROOT_USER=minioakey\nexport MINIO_ROOT_PASSWORD=minioskey\n';
|
||||
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);
|
||||
}
|
||||
|
||||
async function getAdminCredentials() {
|
||||
execSync(`cloudron pull --app ${app.id} /app/data/env.sh /tmp/env.sh`, EXEC_ARGS);
|
||||
const data = fs.readFileSync('/tmp/env.sh', 'utf8');
|
||||
const m = data.match(/MINIO_ROOT_PASSWORD=(.*)/);
|
||||
if (!m) throw new Error('Could not detect root password');
|
||||
rootPassword = m[1].trim();
|
||||
console.log(`root password is [${rootPassword}]`);
|
||||
}
|
||||
|
||||
xit('build app', function () { execSync('cloudron build', EXEC_ARGS); });
|
||||
|
||||
// // no SSO
|
||||
it('install app (no SSO)', async function () {
|
||||
execSync(`cloudron install --no-sso --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
it('can get app information', getAppInfo);
|
||||
|
||||
it('can admin login', login.bind(null, 'minioadmin', 'minioadmin', false));
|
||||
it('can add bucket', addBucket);
|
||||
it('can open settings', openSettings);
|
||||
it('can logout', logout);
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('can change credentials', function () {
|
||||
execSync('cloudron exec --app ' + app.id + ' -- /app/code/minio-credentials set minioakey minioskey', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
it('can change admin credentials', changeAdminCredentials);
|
||||
it('can restart app', async function () {
|
||||
execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
|
||||
it('can restart app', function (done) {
|
||||
execSync('cloudron restart');
|
||||
done();
|
||||
it('can admin login', login.bind(null, 'minioakey', 'minioskey', false));
|
||||
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, EXEC_ARGS); });
|
||||
|
||||
// SSO
|
||||
it('install app (SSO)', async function () {
|
||||
execSync(`cloudron install --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('can get app information', getAppInfo);
|
||||
it('can get admin credentials', getAdminCredentials);
|
||||
it('can admin login', async function () { await login('minioadmin', rootPassword); });
|
||||
it('can add bucket', addBucket);
|
||||
it('can logout', logout);
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('can OIDC login', loginOIDC.bind(null, username, password));
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
|
||||
it('backup app', function () {
|
||||
execSync('cloudron backup create --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
it('can change admin credentials', changeAdminCredentials);
|
||||
|
||||
it('can restart app', async function () {
|
||||
execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
|
||||
it('restore app', function () {
|
||||
const backups = JSON.parse(execSync('cloudron backup list --raw'));
|
||||
execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
execSync('cloudron install --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];
|
||||
execSync(`cloudron restore --backup ${backups[0].id} --app ${app.id}`, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('can admin login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('can OIDC login', loginOIDC.bind(null, username, password));
|
||||
it('has bucket', checkBucket);
|
||||
it('can open settings', openSettings);
|
||||
it('can logout', logout);
|
||||
|
||||
it('move to different location', function () {
|
||||
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('can get app information', getAppInfo);
|
||||
it('can admin login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
|
||||
it('can OIDC login', loginOIDC.bind(null, username, password));
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('move to different location', async function () {
|
||||
browser.manage().deleteAllCookies();
|
||||
execSync('cloudron configure --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.bind(null, 'minioakey', 'minioskey'));
|
||||
it('can admin login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
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('can OIDC login', loginOIDC.bind(null, username, password));
|
||||
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, EXEC_ARGS); });
|
||||
|
||||
// test update
|
||||
it('can install app', function () {
|
||||
execSync('cloudron install --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 for update', function () { execSync('cloudron install --appstore-id io.minio.cloudronapp --location ' + LOCATION, EXEC_ARGS); });
|
||||
it('can get app information', getAppInfo);
|
||||
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
it('can get admin credentials', getAdminCredentials);
|
||||
it('can admin login', async function () { await login('minioadmin', rootPassword); });
|
||||
it('can add buckets', addBucket);
|
||||
it('can logout', logout);
|
||||
it('can update', function () {
|
||||
execSync('cloudron update --app ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
|
||||
it('can OIDC login', loginOIDC.bind(null, username, password));
|
||||
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('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 admin login', async function () { await login('minioadmin', rootPassword); });
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
|
||||
it('can OIDC login', loginOIDC.bind(null, username, password));
|
||||
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, EXEC_ARGS); });
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user