mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-05 16:54:57 +00:00
Compare commits
72 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
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 |
218
CHANGELOG
218
CHANGELOG
@@ -91,7 +91,7 @@
|
||||
* Quorum based listing for XL (#5475)
|
||||
* fs.json file should be closed in CompleteMultipartUpload (#5482)
|
||||
* simplify storage class validation (#5470)
|
||||
* Remove stale code from minio server (#5479)
|
||||
* Remove stale code from minio server (#5479)
|
||||
|
||||
[1.8.0]
|
||||
* Update minio to 2018-03-12T21-25-28Z
|
||||
@@ -107,7 +107,7 @@
|
||||
* Support SSE-C multipart source objects in CopyObject (#5603)
|
||||
* Handle incoming proxy requests ip, scheme (#5591)
|
||||
* Make sure to filter out internal metadata (#5601)
|
||||
* Use toAPIErrorCode in HeadObject handler when decrypting request fails (#5600)
|
||||
* Use toAPIErrorCode in HeadObject handler when decrypting request fails (#5600)
|
||||
|
||||
[1.9.0]
|
||||
* Update minio to 2018-03-16T22-52-12Z
|
||||
@@ -144,7 +144,7 @@
|
||||
* Remove logging of redundant messages when running Minio server.
|
||||
* Upgrading to this release will automatically migrate any erroneous bucket policies to strict S3 compliant bucket policies. Please check all your bucket policies after upgrading to this release.
|
||||
* Fix s3 compatibility fixes for getBucketLocation,headBucket,deleteBucket (#5842) (04/23/18)
|
||||
* Disable "chunked" uploading by the GCS client for objects smaller than the chunk size. (#5835) (04/20/18)
|
||||
* Disable "chunked" uploading by the GCS client for objects smaller than the chunk size. (#5835) (04/20/18)
|
||||
|
||||
[1.15.0]
|
||||
* Update minio to 2018-05-04T23-13-12Z
|
||||
@@ -154,7 +154,7 @@
|
||||
* fs: fix logging by not logging common scenarios (#5882) (05/02/18)
|
||||
* Return NoSuchKey for anonReqs with s3:ListBucket policy (#5876) (05/01/18)
|
||||
* Remove s3:ListObjects policy action to be in sync with AWS-S3 (#5875) (05/01/18)
|
||||
* Copy an object without user-defined metadata for Azure gateway (#5872) (05/02/18)
|
||||
* Copy an object without user-defined metadata for Azure gateway (#5872) (05/02/18)
|
||||
|
||||
[1.16.0]
|
||||
* Update minio to 2018-05-11T00-29-24Z
|
||||
@@ -172,7 +172,7 @@
|
||||
* Update minio to 2018-06-09T03-43-35Z
|
||||
|
||||
[1.21.0]
|
||||
* Update minio to 2018-06-22T23-48-46Z
|
||||
* Update minio to 2018-06-22T23-48-46Z
|
||||
|
||||
[1.22.0]
|
||||
* Update minio to 2018-06-29T02-11-29Z
|
||||
@@ -197,7 +197,7 @@
|
||||
* Log x-amz-request-id as log and XML error response (#6173) (07/20/18)
|
||||
* Remove ppc64le support from .travis.yml (#6180) (07/20/18)
|
||||
* Remove unused functions and constants (#6175) (07/20/18)
|
||||
* Do not trace HTTP body of PostPolicyBuckethandler (#6177) (07/20/18)
|
||||
* Do not trace HTTP body of PostPolicyBuckethandler (#6177) (07/20/18)
|
||||
|
||||
[1.25.0]
|
||||
* Update minio to 2018-07-31T02-11-47Z
|
||||
@@ -305,7 +305,7 @@
|
||||
|
||||
[1.56.0]
|
||||
* Update miniot to 2019-04-04T18-31-46Z
|
||||
* (security) fix privilege escalation against inter-node communication
|
||||
* (security) fix privilege escalation against inter-node communication
|
||||
* (security) Validate if bucket names are internal
|
||||
* canonicalize ETag correctly
|
||||
|
||||
@@ -479,6 +479,208 @@
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-05-29T14-08-49Z)
|
||||
|
||||
[1.112.0]
|
||||
* Update minio to 020-06-01T17-28-03Z
|
||||
* Update minio to 2020-06-01T17-28-03Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-06-01T17-28-03Z)
|
||||
|
||||
[1.113.0]
|
||||
* Update minio to 2020-06-03T22-13-49Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-06-03T22-13-49Z)
|
||||
* Implement UploadPart-Copy API for Azure. See (#9747) for more details.
|
||||
* Concurrent loading of bucket metadata. See (#9749) for more details.
|
||||
* Delete dopped parts in multi-part upload. See (#9753) for more details.
|
||||
* Fix manually passing healing options. See (#9756) for more details.
|
||||
|
||||
[1.114.0]
|
||||
* Update minio to 2020-06-14T18-32-17Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-06-14T18-32-17Z)
|
||||
* Fixes a regression in timeout for local lockers, See #9828 for more details
|
||||
|
||||
[1.115.0]
|
||||
* Update minio to 2020-06-18T02-23-35Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-06-18T02-23-35Z)
|
||||
|
||||
[1.116.0]
|
||||
* Update minio to 2020-06-22T03-12-50Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-06-22T03-12-50Z)
|
||||
|
||||
[1.117.0]
|
||||
* Update minio to 2020-07-02T00-15-09Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-07-02T00-15-09Z)
|
||||
* fix: readiness needs to be like liveness. See (#9941) for more details.
|
||||
* Allow optionally to disable range caching. See (#9908) for more details.
|
||||
* Simplify background heal and trigger heal items early. See (#9928) for more details.
|
||||
* update gorilla deps for query parsing performance improvements. See (#9929) for more details.
|
||||
* Improvements to online status. See (#9858, #9808) for more details.
|
||||
* pop entries from each drives in parallel. See (#9918) for more details.
|
||||
|
||||
[1.118.0]
|
||||
* Update minio to 2020-07-12T19-14-17Z
|
||||
* Avoid startup lock-up when nodes are coming online, fixes an issue with healthcheck routine which ended up reusing a downed client resulting in pereptual offline of that node - see #10026 for more details.
|
||||
* Finally fix the CORS regression introduced by incompatible usage after gorilla/mux update
|
||||
* fix: avoid broken link when preview image (#10021) (07/12/20) (Harshavardhana)
|
||||
* fix: cors handling again for not just OPTIONS request (#10025) (07/12/20) (Harshavardhana)
|
||||
* fix: make sure to use new restClient for healthcheck (#10026) (07/11/20) (Harshavardhana)
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-07-12T19-14-17Z)
|
||||
|
||||
[1.119.0]
|
||||
* Update minio to 2020-07-14T19-14-30Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-07-14T19-14-30Z)
|
||||
* Handle array policies in JWT claim. See (#10041) for more details.
|
||||
* admin info was not correct in certain situations when nodes are offline, was also loosing information - this release fixes this - see #10015
|
||||
|
||||
[1.120.0]
|
||||
* Update minio to 2020-07-18T18-48-16Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-07-18T18-48-16Z)
|
||||
* Multiple disk healing related bug fixes are available in this release related PRs #10076, #10073, #10069, #10058
|
||||
* Federated setups now automatically figure out the online server to proxy the requests to.
|
||||
* S3 BucketLifecycle API compatibility fixes.
|
||||
* Quota checks now run continously piggy backing on the crawler.
|
||||
|
||||
[1.121.0]
|
||||
* Update minio to 2020-07-20T02-25-16Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-07-20T02-25-16Z)
|
||||
* SSE-C key rotation issue in CopyObject caused by a compatibility fix in previous release, refer #10085
|
||||
* Lifecycle AWS S3 API compatibility fixes #10083 #10084
|
||||
* Change TCP timeouts for incoming connections, internode is kept aggressive as necessary.
|
||||
|
||||
[1.122.0]
|
||||
* Update minio to 2020-07-22T00-26-33Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-07-22T00-26-33Z)
|
||||
|
||||
[1.123.0]
|
||||
* Update minio to 2020-07-24T22-43-05Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-07-24T22-43-05Z)
|
||||
* Fixes a regression in bucket usage metrics to remove double counting, see #10126
|
||||
* Add additional CORS such as Content-Encoding to be allowed as part of CORS requests, see #10124
|
||||
* Quota validation is more aggressive, to enforce quotas quickly, see #10127
|
||||
* Handle sudden removal of disks for on-going I/O, errors were not handled appropriately, see #10128
|
||||
|
||||
[1.124.0]
|
||||
* Update minio to RELEASE.2020-07-27T18-37-02Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-07-27T18-37-02Z)
|
||||
* Add missing Content-Disposition to CORS Handler. See (#10137) for more details.
|
||||
* Browser: Enforce bucket quota in the case of browser uploads. See (#10129) for more details.
|
||||
* Simplify JWKS decoding in OPenID. See (#10119) for more details.
|
||||
* Fix gateway walk implementation to list correctly. See (#10131) for more details.
|
||||
* Allow shareable URLs using rotating creds. See (#10135) for more details.
|
||||
|
||||
[1.125.0]
|
||||
* Update minio to 2020-07-31T03-39-05Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-07-31T03-39-05Z)
|
||||
* Improvements to OBD tests. See (#10141) for more details.
|
||||
* Rename replication target handler. See (#10154, #10142) for more details.
|
||||
* Turn off bucket usage metrics in Gateway mode. See (#10150) for more details.
|
||||
* Fix: Do not enforce policy claim if OPA is set. See (#10149) for more details.
|
||||
* Fix: Cache validation for offline drives. See (#10146) for more details.
|
||||
* Fix: avoid buffering of server sent events by proxies. See (#10164) for more details.
|
||||
* Fix: Pass context all the way down to the network call in lockers. See (#10161) for more details.
|
||||
* Fix: bucket usage metrics update in fs mode. See (#10152) for more details.
|
||||
|
||||
[1.126.0]
|
||||
* Update minio to 2020-08-05T21-34-13Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-08-05T21-34-13Z)
|
||||
* Fixes an important issue in asymmetric setups standard storage class was miscalcuated, leading to incorrect quorum expectations, make this uniform see #10208
|
||||
|
||||
[1.127.0]
|
||||
* Update minio to 2020-08-08T04-50-06Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-08-08T04-50-06Z)
|
||||
* Fixes regression in remote ENV parsing to allow for special characters in MinIO secrets, see #10223
|
||||
|
||||
[1.128.0]
|
||||
* Update minio to 2020-08-13T02-39-50Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag//RELEASE.2020-08-13T02-39-50Z)
|
||||
* Security Fix to remove insecure custom headers. See (#10244) for more details.
|
||||
* Web env related improvements. See (#10246, #10251 ) for more details.
|
||||
* Enforce replication in web handler. See (#10249) for more details.
|
||||
* Use correct endpoints for offline drives.
|
||||
|
||||
[1.129.0]
|
||||
* Update minio to 2020-08-18T19-41-00Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-08-18T19-41-00Z)
|
||||
* Web UI Regression: Set default retention for uploaded objects. See (#10285) for more details.
|
||||
* Single timeout for most locked API/heal ops. See (#10275) for more details.
|
||||
* List common prefixes in ListObjectVersions. See (#10286) for more details.
|
||||
|
||||
[1.130.0]
|
||||
* Update minio to 2020-08-25T00-21-20Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-08-25T00-21-20Z)
|
||||
|
||||
[1.131.0]
|
||||
* Update minio to 2020-08-26T00-00-49Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-08-26T00-00-49Z)
|
||||
|
||||
[1.132.0]
|
||||
* Update minio to 2020-08-27T05-16-20Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-08-27T05-16-20Z)
|
||||
|
||||
[1.133.0]
|
||||
* Update minio to 2020-09-02T18-19-50Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-09-02T18-19-50Z)
|
||||
* Delete marker compatibility on a version suspended bucket. See (#10395) for more details.
|
||||
* Fix: ListObjectsV1 failure with offline nodes. See (#10386) for more details.
|
||||
* Improvements to healing to check for truncated parts. See (#10399) for more details.
|
||||
* Fix: write quorum calculation for bucket operation when erasure set size is odd. See (#10364) for more details.
|
||||
|
||||
[1.134.0]
|
||||
* Update minio to 2020-09-05T07-14-49Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-09-05T07-14-49Z)
|
||||
* Listing improvements with parallel disk.Walk calls across many nodes, refer #10420
|
||||
* Context now passed around at storage layer for future context support, refer #10321
|
||||
|
||||
[1.135.0]
|
||||
* Update minio to 2020-09-08T23-05-18Z
|
||||
* Minor integer overflow bug in S3 Select. See (#10437) for more details.
|
||||
* Cleanup temp directory of older entries automatically. See (#10439) for more details.
|
||||
* Remove MaxConnsPerHost settings to avoid potential hangs. See (#10438) for more details.
|
||||
* Ignore config values from unknown subsystems. See (#10432) for more details.
|
||||
|
||||
[1.136.0]
|
||||
* Update minio to 2020-09-10T22-02-45Z
|
||||
* Change permissions only when required
|
||||
|
||||
[1.137.0]
|
||||
* Update minio to 2020-09-17T04-49-20Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-09-17T04-49-20Z)
|
||||
* fix background disk healing. See (#10502) for more details.
|
||||
* Minor fixes in listing, replication and ilm.
|
||||
|
||||
[1.138.0]
|
||||
* Update minio to 2020-09-21T22-31-59Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-09-21T22-31-59Z)
|
||||
* Support for "directory" objects. See (#10499) for more details.
|
||||
* Improve performance in listobjectparts and completemultipartupload in FS mode. See (#10522, #10510) for more details.
|
||||
* More fixes in FS mode. See (#10512, #10533) for more details.
|
||||
* Replication improvements. See (#10498, #10525) for more details.
|
||||
* Browser: Support for searching objects. See (#10424) for more details.
|
||||
* Miscellaneous fixes in ilm, healing, obd, and request start time logging. See (#10532, #10530, #10504, #10516) for more details.
|
||||
* Changes related to locks. See (#10509, #10508) for more details.
|
||||
|
||||
[1.139.0]
|
||||
* Update minio to 2020-09-23T19-18-30Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-09-23T19-18-30Z)
|
||||
* Improvements to replication. See (#10542, #10552) for more details.
|
||||
* Change "disks" node to "drives" in OBD/info output. See (#10540) for more details.
|
||||
* Please use mc version RELEASE.2020-09-23T20-02-13Z or newer along with this version of minio.
|
||||
* Fix: uploads when quota is enabled. See (#10551) for more details.
|
||||
* Fix: reduce healthcheck interval for storage rest client. See (#10544) for more details.
|
||||
|
||||
[1.140.0]
|
||||
* Update minio to 2020-09-26T03-44-56Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-09-26T03-44-56Z)
|
||||
* Lock related improvements. See (#10571) for more details.
|
||||
* Faster disconnects and improvements to network error checks. See (#10567, #10562) for more details.
|
||||
* Improvements to healing. See (#10569, #10561) for more details.
|
||||
* federation: Honor range with UploadObjectPart to a different cluster. See (#10570) for more details.
|
||||
* avoid ListBuckets returning quorum errors when node is down. See (#10555) for more details.
|
||||
|
||||
[1.141.0]
|
||||
* Update minio to 2020-10-03T02-19-42Z
|
||||
* Source configuration from /app/data/env.sh
|
||||
|
||||
[1.142.0]
|
||||
* Update minio to 2020-10-09T22-55-05Z
|
||||
* [Full changelog](https://github.com/minio/minio/releases/tag/RELEASE.2020-10-09T22-55-05Z)
|
||||
* Improvements to locking. See (#10644, #10640, #10637) for more details.
|
||||
* remove safeMode behavior in startup. See (#10645) for more details.
|
||||
* fix: cleanup old directory handling code. See (#10633) for more details.
|
||||
* Fix replication slowness. See (#10632) for more details.
|
||||
|
@@ -5,7 +5,7 @@
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"changelog": "file://CHANGELOG",
|
||||
"tagline": "Distributed object storage",
|
||||
"version": "1.112.0",
|
||||
"version": "1.142.0",
|
||||
"healthCheckPath": "/minio/login",
|
||||
"httpPort": 8000,
|
||||
"addons": {
|
||||
@@ -13,16 +13,15 @@
|
||||
},
|
||||
"manifestVersion": 2,
|
||||
"website": "http://www.minio.io",
|
||||
"minBoxVersion": "4.1.4",
|
||||
"documentationUrl": "https://cloudron.io/documentation/apps/minio/",
|
||||
"minBoxVersion": "5.3.0",
|
||||
"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/minio-browser-gateway.png",
|
||||
"https://screenshots.cloudron.io/io.minio.cloudronapp/minio-browser.png"
|
||||
],
|
||||
"postInstallMessage": "file://POSTINSTALL.md"
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
This app packages Minio <upstream>2020-06-01T17-28-03Z</upstream>.
|
||||
This app packages Minio <upstream>2020-10-09T22-55-05Z</upstream>.
|
||||
|
||||
Minio is a distributed object storage server built for cloud applications and devops.
|
||||
|
||||
|
@@ -1,9 +1,9 @@
|
||||
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
|
||||
|
||||
ARG VERSION=RELEASE.2020-06-01T17-28-03Z
|
||||
ARG VERSION=RELEASE.2020-10-09T22-55-05Z
|
||||
|
||||
RUN mkdir -p /app/code \
|
||||
&& wget https://dl.minio.io/server/minio/release/linux-amd64/minio.${VERSION} -O /app/code/minio \
|
||||
&& wget https://dl.min.io/server/minio/release/linux-amd64/minio.${VERSION} -O /app/code/minio \
|
||||
&& chmod +x /app/code/minio
|
||||
|
||||
WORKDIR /app/code
|
||||
|
@@ -1,8 +1,7 @@
|
||||
This application does not integrate with Cloudron authentication.
|
||||
|
||||
Please use the following credentials to login:
|
||||
|
||||
* AccessKey: `minioadmin`
|
||||
* SecretKey: `minioadmin`
|
||||
**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 following the docs**
|
||||
|
BIN
screenshots/minio-browser-gateway.png
Normal file
BIN
screenshots/minio-browser-gateway.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 111 KiB |
BIN
screenshots/minio-browser.png
Normal file
BIN
screenshots/minio-browser.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 106 KiB |
11
start.sh
11
start.sh
@@ -4,11 +4,16 @@ set -eu
|
||||
|
||||
mkdir -p /app/data/data /run/minio/config /run/minio/certs
|
||||
|
||||
# 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
|
||||
|
||||
[[ ! -f /app/data/env.sh ]] && echo -e "# Add custom minio configuration to this file. Restart the app for changes to take effect.\n\nexport CLOUDRON_MINIO_STARTUP_ARGS='server /app/data/data'" > /app/data/env.sh
|
||||
|
||||
source /app/data/env.sh
|
||||
|
||||
# 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 --certs-dir /run/minio/certs --config-dir /run/minio/config --quiet ${CLOUDRON_MINIO_STARTUP_ARGS} --address :8000
|
||||
|
||||
|
866
test/package-lock.json
generated
866
test/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,14 +9,9 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"chromedriver": "^83.0.0",
|
||||
"ejs": "^3.1.3",
|
||||
"chromedriver": "^86.0.0",
|
||||
"expect.js": "^0.3.1",
|
||||
"mkdirp": "^1.0.4",
|
||||
"mocha": "^7.2.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"selenium-server-standalone-jar": "^3.141.59",
|
||||
"selenium-webdriver": "^3.6.0",
|
||||
"superagent": "^5.2.2"
|
||||
"mocha": "^8.1.3",
|
||||
"selenium-webdriver": "^3.6.0"
|
||||
}
|
||||
}
|
||||
|
177
test/test.js
177
test/test.js
@@ -1,5 +1,10 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/* global describe */
|
||||
/* global before */
|
||||
/* global after */
|
||||
/* global it */
|
||||
|
||||
'use strict';
|
||||
|
||||
require('chromedriver');
|
||||
@@ -7,43 +12,37 @@ require('chromedriver');
|
||||
var execSync = require('child_process').execSync,
|
||||
expect = require('expect.js'),
|
||||
path = require('path'),
|
||||
webdriver = require('selenium-webdriver');
|
||||
{ Builder, By, Key, 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';
|
||||
|
||||
describe('Application life cycle test', function () {
|
||||
this.timeout(0);
|
||||
|
||||
var server, browser = new Builder().forBrowser('chrome').build();
|
||||
const LOCATION = 'test';
|
||||
const TEST_TIMEOUT = 10000;
|
||||
const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
|
||||
const BUCKET = 'cloudrontestbucket';
|
||||
|
||||
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();
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
browser.quit();
|
||||
server.stop();
|
||||
done();
|
||||
});
|
||||
|
||||
var LOCATION = 'test';
|
||||
var TEST_TIMEOUT = 10000;
|
||||
var app;
|
||||
var browser;
|
||||
|
||||
before(function () {
|
||||
browser = new Builder().forBrowser('chrome').setChromeOptions(new Options().windowSize({ width: 1280, height: 1024 })).build();
|
||||
});
|
||||
|
||||
after(function () {
|
||||
browser.quit();
|
||||
});
|
||||
|
||||
function getAppInfo() {
|
||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||
app = inspect.apps.filter(function (a) { return a.location.indexOf(LOCATION) === 0; })[0];
|
||||
expect(app).to.be.an('object');
|
||||
}
|
||||
|
||||
function pageLoaded() {
|
||||
return browser.wait(until.elementLocated(by.className('page-load pl-0 pl-1')), TEST_TIMEOUT);
|
||||
return browser.wait(until.elementLocated(By.className('page-load pl-0 pl-1')), TEST_TIMEOUT);
|
||||
}
|
||||
|
||||
function visible(selector) {
|
||||
@@ -55,16 +54,16 @@ describe('Application life cycle test', function () {
|
||||
function login(accessKey, secretKey, callback) {
|
||||
browser.manage().deleteAllCookies();
|
||||
browser.get('https://' + app.fqdn).then(function () {
|
||||
return visible(by.id('accessKey'));
|
||||
return visible(By.id('accessKey'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('accessKey')).sendKeys(accessKey);
|
||||
return browser.findElement(By.id('accessKey')).sendKeys(accessKey);
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('secretKey')).sendKeys(secretKey);
|
||||
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();
|
||||
// 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);
|
||||
return browser.wait(until.elementLocated(By.id('top-right-menu')), TEST_TIMEOUT);
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
@@ -74,15 +73,23 @@ describe('Application life cycle test', function () {
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded().then(function () {
|
||||
return visible(by.id('top-right-menu'));
|
||||
return visible(By.id('top-right-menu'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('top-right-menu')).click();
|
||||
return browser.findElement(By.id('top-right-menu')).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[text()="Sign Out "]'));
|
||||
if (app.manifest.version === '1.137.0') {
|
||||
return visible(By.xpath('//*[text()="Sign Out "]'));
|
||||
} else {
|
||||
return visible(By.xpath('//*[contains(text(), "Logout")]'));
|
||||
}
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//*[text()="Sign Out "]')).click();
|
||||
if (app.manifest.version === '1.137.0') {
|
||||
return browser.findElement(By.xpath('//*[text()="Sign Out "]')).click();
|
||||
} else {
|
||||
return browser.findElement(By.xpath('//*[contains(text(),"Logout")]')).click();
|
||||
}
|
||||
}).then(function () {
|
||||
return browser.wait(until.elementLocated(by.id('accessKey')), TEST_TIMEOUT);
|
||||
return browser.wait(until.elementLocated(By.id('accessKey')), TEST_TIMEOUT);
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
@@ -92,23 +99,23 @@ describe('Application life cycle test', function () {
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded().then(function () {
|
||||
return visible(by.className('fa-plus'));
|
||||
return visible(By.className('fa-plus'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.className('fa-plus')).click();
|
||||
return browser.findElement(By.className('fa-plus')).click();
|
||||
}).then(function () {
|
||||
const c = 'fa-hdd';
|
||||
return visible(by.className(c));
|
||||
return visible(By.className(c));
|
||||
}).then(function () {
|
||||
const c = 'fa-hdd';
|
||||
return browser.findElement(by.className(c)).click();
|
||||
return browser.findElement(By.className(c)).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[@class="modal-body"]/form/div/input'));
|
||||
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);
|
||||
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();
|
||||
return browser.findElement(By.xpath('//*[@class="modal-body"]/form')).submit();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[@class="main"]/a[text()="' + bucket + '"]'));
|
||||
return visible(By.xpath('//*[@class="main"]/a[text()="' + BUCKET + '"]'));
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
@@ -118,7 +125,7 @@ describe('Application life cycle test', function () {
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded().then(function () {
|
||||
return browser.findElement(by.xpath(`//a[contains(text(), ${bucket})]`));
|
||||
return browser.findElement(By.xpath(`//a[contains(text(), ${BUCKET})]`));
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
@@ -128,35 +135,24 @@ describe('Application life cycle test', function () {
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
pageLoaded().then(function () {
|
||||
return visible(by.id('top-right-menu'));
|
||||
return visible(By.id('top-right-menu'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('top-right-menu')).click();
|
||||
return browser.findElement(By.id('top-right-menu')).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[contains(text(), "Change Password")]'));
|
||||
return visible(By.xpath('//*[contains(text(), "Change Password")]'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//*[contains(text(),"Change Password")]')).click();
|
||||
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);
|
||||
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' });
|
||||
});
|
||||
xit('build app', function () { execSync('cloudron build', EXEC_ARGS); });
|
||||
it('install app', function () { execSync('cloudron install --location ' + LOCATION, EXEC_ARGS); });
|
||||
|
||||
it('install app', function () {
|
||||
execSync('cloudron install --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
|
||||
it('can get app information', function () {
|
||||
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 get app information', getAppInfo);
|
||||
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
it('can add bucket', addBucket);
|
||||
@@ -164,24 +160,22 @@ describe('Application life cycle test', function () {
|
||||
it('can logout', logout);
|
||||
|
||||
it('can change credentials', function () {
|
||||
execSync('cloudron exec --app ' + app.id + ' -- /app/code/minio-credentials set minioakey minioskey', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
execSync(`cloudron exec --app ${app.id} -- /app/code/minio-credentials set minioakey minioskey`, EXEC_ARGS);
|
||||
});
|
||||
|
||||
it('can restart app', function (done) {
|
||||
execSync('cloudron restart');
|
||||
done();
|
||||
});
|
||||
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('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', function () {
|
||||
execSync('cloudron restore --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
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);
|
||||
});
|
||||
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
@@ -191,39 +185,30 @@ describe('Application life cycle test', function () {
|
||||
|
||||
it('move to different location', 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);
|
||||
});
|
||||
it('can get app information', getAppInfo);
|
||||
|
||||
it('can 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('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', 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 add buckets', addBucket);
|
||||
it('can logout', logout);
|
||||
it('can update', function () {
|
||||
execSync('cloudron update --app ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
});
|
||||
it('can update', function () { execSync('cloudron update --app ' + LOCATION, 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('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user