mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2026-05-03 23:45:56 +00:00
Compare commits
425 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7794e2e65b | |||
| 81fd570645 | |||
| 5c0d97a220 | |||
| 216c70464b | |||
| f18b12a5ab | |||
| 0f83f74206 | |||
| 6744a8d9fc | |||
| ddc0135b08 | |||
| 90284553b2 | |||
| 11c5bb051b | |||
| 40f20c384c | |||
| 3ea19664d1 | |||
| 61a3b06dc3 | |||
| b0dad70e87 | |||
| fd3dee438d | |||
| b6fce9a3a7 | |||
| 1a8f99b140 | |||
| daad5e6942 | |||
| 88340ce812 | |||
| 60ea2849e1 | |||
| c021c66390 | |||
| 2d9ad57e0b | |||
| dcd3063a72 | |||
| 597feab31e | |||
| 49ef4e7e7d | |||
| 5e1370d29d | |||
| 092b769513 | |||
| 0775dc3071 | |||
| 151aeec9cd | |||
| 1e85285b69 | |||
| 024836d91c | |||
| fd100bda55 | |||
| 0a72a3bd3d | |||
| e16ce9c9ad | |||
| bc6a5cd7b4 | |||
| 7b14494230 | |||
| 6aba571eb7 | |||
| 2ef9e56703 | |||
| 819c9b1211 | |||
| 2c400adc2a | |||
| fd01bf3109 | |||
| 4d926a3058 | |||
| 47765f2800 | |||
| 45c1a6b503 | |||
| 7ee514ed29 | |||
| 1c9a94d79c | |||
| 4a81b58d6b | |||
| 1e41630b1d | |||
| 3d77021618 | |||
| 43bde46b81 | |||
| b44db98e35 | |||
| 52221cca35 | |||
| ea4dfaccf3 | |||
| bbcfa6b84e | |||
| 19866198e1 | |||
| 87c4917e82 | |||
| 0f0c70fe95 | |||
| 17670769fa | |||
| 038ebcd485 | |||
| 69894610e9 | |||
| 38d81367d3 | |||
| 8bfac72b10 | |||
| 6e0cf2f9d8 | |||
| fd48a26065 | |||
| ef398fbdeb | |||
| fb570b0256 | |||
| e2a4a1b594 | |||
| 242ca7052b | |||
| ecfd75afd1 | |||
| 6ac4576a7f | |||
| 635924b0e5 | |||
| bcde4b30d6 | |||
| e0a5ac3fe2 | |||
| 7ec1c63a02 | |||
| 9cefaa80be | |||
| 09e82cd3e3 | |||
| f75118e15a | |||
| 4f5fadaa8a | |||
| 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 |
+17
-6
@@ -5,10 +5,10 @@
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"changelog": "file://CHANGELOG",
|
||||
"tagline": "Distributed object storage",
|
||||
"version": "2.8.9",
|
||||
"upstreamVersion": "2022-08-05T23-27-09Z",
|
||||
"version": "5.3.0-1",
|
||||
"upstreamVersion": "RELEASE.2025-10-15T17-29-55Z",
|
||||
"healthCheckPath": "/minio/login",
|
||||
"memoryLimit": 805306368,
|
||||
"memoryLimit": 2147483648,
|
||||
"httpPort": 8000,
|
||||
"httpPorts": {
|
||||
"API_SERVER_DOMAIN": {
|
||||
@@ -21,14 +21,25 @@
|
||||
"addons": {
|
||||
"localstorage": {}
|
||||
},
|
||||
"optionalSso": true,
|
||||
"checklist": {
|
||||
"change-default-password": {
|
||||
"message": "Change the default admin credentials by following this [guide](https://docs.cloudron.io/packages/minio/#admin-credentials)"
|
||||
}
|
||||
},
|
||||
"manifestVersion": 2,
|
||||
"website": "http://www.minio.io",
|
||||
"minBoxVersion": "7.1.2",
|
||||
"minBoxVersion": "8.1.0",
|
||||
"forumUrl": "https://forum.cloudron.io/category/69/minio",
|
||||
"documentationUrl": "https://docs.cloudron.io/apps/minio/",
|
||||
"documentationUrl": "https://docs.cloudron.io/packages/minio/",
|
||||
"contactEmail": "support@cloudron.io",
|
||||
"icon": "logo.png",
|
||||
"tags": [ "storage", "hosting", "s3", "objectstore" ],
|
||||
"tags": [
|
||||
"storage",
|
||||
"hosting",
|
||||
"s3",
|
||||
"objectstore"
|
||||
],
|
||||
"mediaLinks": [
|
||||
"https://screenshots.cloudron.io/io.minio.cloudronapp/pic1.png",
|
||||
"https://screenshots.cloudron.io/io.minio.cloudronapp/pic2.png"
|
||||
|
||||
+19
-9
@@ -1,16 +1,26 @@
|
||||
FROM cloudron/base:3.2.0@sha256:ba1d566164a67c266782545ea9809dc611c4152e27686fd14060332dd88263ea
|
||||
FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c
|
||||
|
||||
RUN mkdir -p /app/code
|
||||
RUN mkdir -p /app/code/go
|
||||
WORKDIR /app/code
|
||||
|
||||
ARG VERSION=RELEASE.2022-08-05T23-27-09Z
|
||||
ARG MC_VERSION=RELEASE.2022-08-05T08-01-28Z
|
||||
# Go (https://golang.org/dl/)
|
||||
ARG GOVERSION=1.25.1
|
||||
ENV GOROOT /usr/local/go-${GOVERSION}
|
||||
ENV PATH $GOROOT/bin:$PATH
|
||||
ENV GOPATH=/app/code/go
|
||||
RUN mkdir -p /usr/local/go-${GOVERSION} && \
|
||||
curl -L https://storage.googleapis.com/golang/go${GOVERSION}.linux-amd64.tar.gz | tar zxf - -C /usr/local/go-${GOVERSION} --strip-components 1
|
||||
|
||||
# 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
|
||||
# https://dl.min.io/client/mc/release/linux-amd64/
|
||||
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc.${MC_VERSION} -O /app/code/mc && chmod +x /app/code/mc
|
||||
RUN ln -sf /usr/local/go-${GOVERSION} /usr/local/go
|
||||
|
||||
COPY env.sh start.sh /app/code/
|
||||
# renovate: datasource=github-releases depName=minio/minio versioning=regex:^RELEASE\.(?<major>\d{4})-(?<minor>\d{2})-(?<patch>\d{2})T(?<build>.+)
|
||||
ARG MINIO_VERSION=RELEASE.2025-10-15T17-29-55Z
|
||||
RUN go install github.com/minio/minio@${MINIO_VERSION} && \
|
||||
go clean -cache -modcache -testcache
|
||||
|
||||
# Latest CLI
|
||||
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" ]
|
||||
|
||||
@@ -3,5 +3,3 @@ 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).
|
||||
|
||||
|
||||
@@ -37,3 +37,8 @@ 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.
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# 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
|
||||
|
||||
@@ -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'
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="512"
|
||||
height="512"
|
||||
fill="#ffffff"
|
||||
version="1.1"
|
||||
id="svg3"
|
||||
sodipodi:docname="logo.svg"
|
||||
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
|
||||
inkscape:export-filename="logo.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs3" />
|
||||
<sodipodi:namedview
|
||||
id="namedview3"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:zoom="0.98823083"
|
||||
inkscape:cx="222.1141"
|
||||
inkscape:cy="376.93623"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1014"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg3" />
|
||||
<path
|
||||
d="m 156.67193,317.75421 a 286.44793,286.44793 0 0 1 56.74397,-80.47822 290.54005,290.54005 0 0 1 28.37199,-24.89369 v 61.3817 z m -49.10536,56.88038 134.22132,-68.20188 v 156.18233 l 30.21344,39.28427 V 290.47346 l 18.3463,-9.48007 a 91.049521,91.049521 0 0 0 25.0301,-144.04238 L 246.28921,64.725212 a 15.345425,15.345425 0 0 1 0.75022,-21.619998 15.413627,15.413627 0 0 1 21.6882,0.750221 l 9.68467,10.093879 20.46057,-19.914953 C 274.38839,2.2522814 244.31136,6.2761929 227.05628,22.167233 a 44.058422,44.058422 0 0 0 -1.90965,62.200124 l 69.83873,72.771413 a 62.336528,62.336528 0 0 1 -13.64038,96.02826 l -9.48006,4.91053 V 159.38943 A 315.97936,315.97936 0 0 0 107.56657,374.29359 Z"
|
||||
id="path2"
|
||||
style="fill:#cf163e;fill-opacity:1;stroke:none;stroke-width:6.82019" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["local>devops/renovator//default.renovate.json5"]
|
||||
}
|
||||
@@ -4,7 +4,13 @@ set -eu
|
||||
|
||||
mkdir -p /app/data/data /run/minio/config /run/minio/certs
|
||||
|
||||
[[ ! -f /app/data/env.sh ]] && cp /app/code/env.sh /app/data/env.sh
|
||||
# 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
|
||||
echo -e "export MINIO_ROOT_USER=minioadmin\nexport MINIO_ROOT_PASSWORD=minioadmin\n\n" >> /app/data/env.sh
|
||||
fi
|
||||
|
||||
source /app/data/env.sh
|
||||
|
||||
# https://docs.min.io/minio/baremetal/reference/minio-server/minio-server.html#envvar.MINIO_SERVER_URL
|
||||
@@ -20,7 +26,6 @@ fi
|
||||
echo "==> Changing ownership"
|
||||
[[ $(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 ${CLOUDRON_MINIO_STARTUP_ARGS} --address :9000 --console-address :8000
|
||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/go/bin/minio --quiet ${CLOUDRON_MINIO_STARTUP_ARGS} --address :9000 --console-address :8000
|
||||
|
||||
|
||||
Generated
+1300
-2183
File diff suppressed because it is too large
Load Diff
+5
-5
@@ -9,11 +9,11 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"chromedriver": "^103.0.0",
|
||||
"delay": "^5.0.0",
|
||||
"@eslint/js": "^9.37.0",
|
||||
"chromedriver": "^141.0.3",
|
||||
"expect.js": "^0.3.1",
|
||||
"mocha": "^10.0.0",
|
||||
"selenium-webdriver": "^4.3.1",
|
||||
"superagent": "^8.0.0"
|
||||
"mocha": "^11.7.4",
|
||||
"selenium-webdriver": "^4.36.0",
|
||||
"superagent": "^10.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
+125
-64
@@ -1,43 +1,62 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/* jshint esversion: 8 */
|
||||
/* global describe */
|
||||
/* global before */
|
||||
/* global after */
|
||||
/* global it */
|
||||
/* global xit */
|
||||
/* global it, xit, describe, before, after, afterEach */
|
||||
|
||||
'use strict';
|
||||
|
||||
require('chromedriver');
|
||||
|
||||
const delay = require('delay'),
|
||||
execSync = require('child_process').execSync,
|
||||
const execSync = require('child_process').execSync,
|
||||
expect = require('expect.js'),
|
||||
fs = require('fs'),
|
||||
path = require('path'),
|
||||
superagent = require('superagent'),
|
||||
timers = require('timers/promises'),
|
||||
{ Builder, By, until } = require('selenium-webdriver'),
|
||||
{ Options } = require('selenium-webdriver/chrome');
|
||||
|
||||
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);
|
||||
|
||||
const LOCATION = 'test';
|
||||
const TEST_TIMEOUT = 30000;
|
||||
const LOCATION = process.env.LOCATION || 'test';
|
||||
const TEST_TIMEOUT = parseInt(process.env.TIMEOUT, 10) || 30000;
|
||||
const BUCKET = 'cloudrontestbucket';
|
||||
const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
|
||||
|
||||
let browser, app;
|
||||
let rootPassword;
|
||||
const username = process.env.USERNAME;
|
||||
const password = process.env.PASSWORD;
|
||||
|
||||
before(function () {
|
||||
browser = new Builder().forBrowser('chrome').setChromeOptions(new Options().windowSize({ width: 1280, height: 1024 })).build();
|
||||
const chromeOptions = new Options().windowSize({ width: 1600, height: 1024 });
|
||||
chromeOptions.addArguments('guest'); // disable password checks
|
||||
if (process.env.CI) chromeOptions.addArguments('no-sandbox', 'disable-dev-shm-usage', 'headless');
|
||||
browser = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build();
|
||||
if (!fs.existsSync('./screenshots')) fs.mkdirSync('./screenshots');
|
||||
});
|
||||
|
||||
after(function () {
|
||||
browser.quit();
|
||||
});
|
||||
|
||||
afterEach(async function () {
|
||||
if (!process.env.CI || !app) return;
|
||||
|
||||
const currentUrl = await browser.getCurrentUrl();
|
||||
if (!currentUrl.includes(app.domain)) return;
|
||||
expect(this.currentTest.title).to.be.a('string');
|
||||
|
||||
const screenshotData = await browser.takeScreenshot();
|
||||
fs.writeFileSync(`./screenshots/${new Date().getTime()}-${this.currentTest.title.replaceAll(' ', '_')}.png`, screenshotData, 'base64');
|
||||
});
|
||||
|
||||
async function waitForElement(elem) {
|
||||
await browser.wait(until.elementLocated(elem), TEST_TIMEOUT);
|
||||
await browser.wait(until.elementIsVisible(browser.findElement(elem)), TEST_TIMEOUT);
|
||||
@@ -49,36 +68,61 @@ describe('Application life cycle test', function () {
|
||||
expect(app).to.be.an('object');
|
||||
}
|
||||
|
||||
async function login(accessKey='minioadmin', secretKey='minioadmin') {
|
||||
async function confirmLicense() {
|
||||
await timers.setTimeout(5000);
|
||||
await waitForElement(By.id('acknowledge-confirm'));
|
||||
const button = await browser.findElement(By.id('acknowledge-confirm'));
|
||||
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
|
||||
await browser.sleep(4000);
|
||||
await button.click();
|
||||
await browser.sleep(4000);
|
||||
}
|
||||
|
||||
async function login(username, password, acceptLicense=false) {
|
||||
await browser.manage().deleteAllCookies();
|
||||
await browser.get('about:blank');
|
||||
await browser.sleep(2000);
|
||||
await browser.get(`https://${app.fqdn}/login`);
|
||||
await browser.sleep(2000);
|
||||
|
||||
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[contains(text(), "Login")]')).click();
|
||||
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
|
||||
await delay(5000);
|
||||
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();
|
||||
|
||||
if (acceptLicense) await confirmLicense();
|
||||
|
||||
await waitForElement(By.xpath('//button[contains(., "Create Bucket")]'));
|
||||
await timers.setTimeout(5000);
|
||||
}
|
||||
|
||||
async function logout() {
|
||||
await browser.get(`https://${app.fqdn}/`);
|
||||
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
|
||||
await browser.findElement(By.xpath('//div/span[contains(text(), "Logout")]')).click();
|
||||
await waitForElement(By.id('accessKey'));
|
||||
await browser.sleep(10000);
|
||||
// await browser.get(`https://${app.fqdn}/`);
|
||||
await waitForElement(By.xpath('//button[contains(., "Create Bucket")]'));
|
||||
|
||||
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"]'));
|
||||
}
|
||||
|
||||
async function addBucket() {
|
||||
await browser.get(`https://${app.fqdn}/buckets`);
|
||||
await waitForElement(By.xpath('//button/span[text()="Create Bucket"]'));
|
||||
await browser.findElement(By.xpath('//button/span[text()="Create Bucket"]')).click();
|
||||
await browser.sleep(2000);
|
||||
// await browser.get(`https://${app.fqdn}/buckets`);
|
||||
await waitForElement(By.xpath('//button[contains(., "Create Bucket")]'));
|
||||
await browser.findElement(By.xpath('//button[contains(., "Create Bucket")]')).click();
|
||||
await browser.sleep(1000);
|
||||
await waitForElement(By.xpath('//input[@id="bucket-name"]'));
|
||||
await browser.findElement(By.xpath('//input[@id="bucket-name"]')).sendKeys(BUCKET);
|
||||
await browser.findElement(By.xpath('//button[text()="Create Bucket"]')).click();
|
||||
await waitForElement(By.xpath(`//a[contains(text(), "${BUCKET}")]`));
|
||||
await delay(5000);
|
||||
await browser.findElement(By.xpath('//button[@id="create-bucket"]')).click();
|
||||
// await browser.get(`https://${app.fqdn}/buckets`);
|
||||
await waitForElement(By.xpath(`//h1[contains(text(), "${BUCKET}")]`));
|
||||
}
|
||||
|
||||
async function checkBucket() {
|
||||
await browser.get(`https://${app.fqdn}/buckets`);
|
||||
await browser.sleep(10000);
|
||||
// await browser.get(`https://${app.fqdn}/buckets`);
|
||||
await waitForElement(By.xpath(`//h1[contains(text(), "${BUCKET}")]`));
|
||||
}
|
||||
|
||||
@@ -94,34 +138,46 @@ describe('Application life cycle test', function () {
|
||||
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); });
|
||||
|
||||
it('install app', async function () {
|
||||
execSync(`cloudron install --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS);
|
||||
await delay(10000);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
|
||||
it('can get app information', getAppInfo);
|
||||
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
it('can admin login', login.bind(null, 'minioadmin', 'minioadmin', true));
|
||||
it('can add bucket', addBucket);
|
||||
it('can logout', logout);
|
||||
it('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
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);
|
||||
it('can change admin credentials', changeAdminCredentials);
|
||||
|
||||
it('can restart app', async function () {
|
||||
execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS);
|
||||
await delay(10000);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
|
||||
it('can restart app', function () { execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS); });
|
||||
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('can admin login', login.bind(null, 'minioakey', 'minioskey', false));
|
||||
it('has bucket', checkBucket);
|
||||
it('can logout', logout);
|
||||
it('does redirect', checkRedirect);
|
||||
@@ -134,47 +190,52 @@ describe('Application life cycle test', function () {
|
||||
execSync('cloudron install --location ' + LOCATION, EXEC_ARGS);
|
||||
getAppInfo();
|
||||
execSync(`cloudron restore --backup ${backups[0].id} --app ${app.id}`, EXEC_ARGS);
|
||||
await delay(10000);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
|
||||
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
it('can get app information', getAppInfo);
|
||||
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('move to different location', async function () {
|
||||
browser.manage().deleteAllCookies();
|
||||
execSync('cloudron configure --location ' + LOCATION + '2', EXEC_ARGS);
|
||||
await delay(10000);
|
||||
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', true));
|
||||
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, 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}`, 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('does redirect', checkRedirect);
|
||||
it('check api', checkApi);
|
||||
|
||||
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
|
||||
// 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 get admin credentials', getAdminCredentials);
|
||||
// it('can admin login', async () => await login('minioadmin', rootPassword, true));
|
||||
// it('can add buckets', addBucket);
|
||||
// it('can logout', logout);
|
||||
//
|
||||
// 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 () => await login('minioadmin', rootPassword, true));
|
||||
// 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