mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-13 08:19:12 +00:00
Compare commits
63 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e8ac931f8d | ||
|
f2eb088b8c | ||
|
515aecd5c5 | ||
|
1d1ee9ecfb | ||
|
f1eefbb501 | ||
|
a0952074c5 | ||
|
c848988e99 | ||
|
3e62f036a3 | ||
|
8f3c6357f5 | ||
|
eaa2b6e2b4 | ||
|
92856faf70 | ||
|
1302e71321 | ||
|
c3195428df | ||
|
99f10e9b3e | ||
|
136f41b004 | ||
|
541185cfa6 | ||
|
8b6fd80d74 | ||
|
c6f0bdc5ef | ||
|
63747ef487 | ||
|
8272354a77 | ||
|
5e15088198 | ||
|
0535814733 | ||
|
7cb935a0c4 | ||
|
e263bde545 | ||
|
5f31e7fd2f | ||
|
582fda2720 | ||
|
ea2898c1b2 | ||
|
b6acac345b | ||
|
91c29432e3 | ||
|
5e83c9cf88 | ||
|
9834ec1c8e | ||
|
7ed03bef1b | ||
|
d6958e05db | ||
|
588125b5f4 | ||
|
891169e87b | ||
|
38f24649fe | ||
|
7f8ae63c00 | ||
|
4ee1e0e8ad | ||
|
02b00f4476 | ||
|
b524016d72 | ||
|
e8ee533d1f | ||
|
ed0250199a | ||
|
7a3c6f9efd | ||
|
e0ce87b291 | ||
|
f28d63d0b9 | ||
|
af0e17d5b0 | ||
|
c662d0caab | ||
|
1f76bbfd77 | ||
|
f7c784c228 | ||
|
ee7795df9a | ||
|
6dd64a829c | ||
|
75e7154353 | ||
|
3b8576093e | ||
|
5dd4f2d8e3 | ||
|
00a2c3569b | ||
|
cc7890f71d | ||
|
f156ab5168 | ||
|
0b2d206655 | ||
|
4c01df72b5 | ||
|
ada7671d81 | ||
|
5a0ec69dfd | ||
|
bf4f230766 | ||
|
49b6a854f9 |
82
CHANGELOG
82
CHANGELOG
@@ -381,3 +381,85 @@
|
|||||||
[1.80.0]
|
[1.80.0]
|
||||||
* Update minio to 2019-09-18T21-55-05Z
|
* Update minio to 2019-09-18T21-55-05Z
|
||||||
|
|
||||||
|
[1.81.0]
|
||||||
|
* Update minio to 2019-09-25T18-25-51Z
|
||||||
|
|
||||||
|
[1.82.0]
|
||||||
|
* Update minio to 2019-09-26T19-42-35Z
|
||||||
|
|
||||||
|
[1.83.0]
|
||||||
|
* Update minio to 2019-10-02T21-19-38Z
|
||||||
|
|
||||||
|
[1.84.0]
|
||||||
|
* Update minio to 2019-10-11T00-38-09Z
|
||||||
|
|
||||||
|
[1.85.0]
|
||||||
|
* Update minio to 2019-10-12T01-39-57Z
|
||||||
|
|
||||||
|
[1.86.0]
|
||||||
|
* Update minio to 2019-12-19T22-52-26Z
|
||||||
|
|
||||||
|
[1.87.0]
|
||||||
|
* Update minio to 2019-12-30T05-45-39Z
|
||||||
|
|
||||||
|
[1.88.0]
|
||||||
|
* Update minio to 2020-01-03T19-12-21Z
|
||||||
|
|
||||||
|
[1.89.0]
|
||||||
|
* Update minio to 2020-01-16T03-05-44Z
|
||||||
|
|
||||||
|
[1.90.0]
|
||||||
|
* Update minio to 2020-01-16T22-40-29Z
|
||||||
|
|
||||||
|
[1.91.0]
|
||||||
|
* Update minio to 2020-01-25T02-50-51Z
|
||||||
|
|
||||||
|
[1.92.0]
|
||||||
|
* Update minio to 2020-02-07T23-28-16Z
|
||||||
|
|
||||||
|
[1.93.0]
|
||||||
|
* Update minio to 2020-02-20T22-51-23Z
|
||||||
|
|
||||||
|
[1.94.0]
|
||||||
|
* Update minio to 2020-02-27T00-23-05Z
|
||||||
|
|
||||||
|
[1.95.0]
|
||||||
|
* Update minio to 2020-03-06T22-23-56Z
|
||||||
|
|
||||||
|
[1.96.0]
|
||||||
|
* Update minio to 2020-03-09T18-26-53Z
|
||||||
|
|
||||||
|
[1.97.0]
|
||||||
|
* Update minio to 2020-03-14T02-21-58Z
|
||||||
|
|
||||||
|
[1.98.0]
|
||||||
|
* Update minio to 2020-03-19T21-49-00Z
|
||||||
|
|
||||||
|
[1.99.0]
|
||||||
|
* Update minio to 2020-03-25T07-03-04Z
|
||||||
|
|
||||||
|
[1.100.0]
|
||||||
|
* Update minio to 2020-04-02T21-34-49Z
|
||||||
|
|
||||||
|
[1.101.0]
|
||||||
|
* Update minio to 2020-04-04T05-39-31Z
|
||||||
|
|
||||||
|
[1.102.0]
|
||||||
|
* Update minio to 2020-04-10T03-34-42Z
|
||||||
|
|
||||||
|
[1.103.0]
|
||||||
|
* Update minio to 2020-04-15T00-39-01Z
|
||||||
|
|
||||||
|
[1.104.0]
|
||||||
|
* Update minio to 2020-04-15T19-42-18Z
|
||||||
|
|
||||||
|
[1.105.0]
|
||||||
|
* Update minio to 2020-04-23T00-58-49Z
|
||||||
|
* Use latest docker image
|
||||||
|
|
||||||
|
[1.106.0]
|
||||||
|
* Update minio to 2020-04-28T23-56-56Z
|
||||||
|
|
||||||
|
[1.107.0]
|
||||||
|
* Update minio to 2020-05-01T22-19-14Z
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"changelog": "file://CHANGELOG",
|
"changelog": "file://CHANGELOG",
|
||||||
"tagline": "Distributed object storage",
|
"tagline": "Distributed object storage",
|
||||||
"version": "1.80.0",
|
"version": "1.107.0",
|
||||||
"healthCheckPath": "/minio/login",
|
"healthCheckPath": "/minio/login",
|
||||||
"httpPort": 8000,
|
"httpPort": 8000,
|
||||||
"addons": {
|
"addons": {
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
This app packages Minio <upstream>2019-09-18T21-55-05Z</upstream>.
|
This app packages Minio <upstream>2020-05-01T22-19-14Z</upstream>.
|
||||||
|
|
||||||
Minio is a distributed object storage server built for cloud applications and devops.
|
Minio is a distributed object storage server built for cloud applications and devops.
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
|
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
|
||||||
|
|
||||||
ARG VERSION=RELEASE.2019-09-18T21-55-05Z
|
ARG VERSION=RELEASE.2020-05-01T22-19-14Z
|
||||||
|
|
||||||
RUN mkdir -p /app/code \
|
RUN mkdir -p /app/code \
|
||||||
&& wget https://dl.minio.io/server/minio/release/linux-amd64/minio.${VERSION} -O /app/code/minio \
|
&& wget https://dl.minio.io/server/minio/release/linux-amd64/minio.${VERSION} -O /app/code/minio \
|
||||||
@@ -8,7 +8,7 @@ RUN mkdir -p /app/code \
|
|||||||
|
|
||||||
WORKDIR /app/code
|
WORKDIR /app/code
|
||||||
|
|
||||||
ADD config.json /app/code/config.json
|
|
||||||
ADD start.sh /app/code/start.sh
|
ADD start.sh /app/code/start.sh
|
||||||
|
ADD minio-credentials /app/code/minio-credentials
|
||||||
|
|
||||||
CMD [ "/app/code/start.sh" ]
|
CMD [ "/app/code/start.sh" ]
|
||||||
|
@@ -2,7 +2,7 @@ This application does not integrate with Cloudron authentication.
|
|||||||
|
|
||||||
Please use the following credentials to login:
|
Please use the following credentials to login:
|
||||||
|
|
||||||
* AccessKey: `admin`
|
* AccessKey: `minioadmin`
|
||||||
* SecretKey: `secretkey`
|
* SecretKey: `minioadmin`
|
||||||
|
|
||||||
**Please change the credentials immediately**
|
**Please change the credentials immediately following the docs**
|
||||||
|
14
config.json
14
config.json
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "33",
|
|
||||||
"credential": {
|
|
||||||
"accessKey": "admin",
|
|
||||||
"secretKey": "secretkey"
|
|
||||||
},
|
|
||||||
"region": "us-east-1",
|
|
||||||
"logger": {
|
|
||||||
"console": {
|
|
||||||
"enable": true,
|
|
||||||
"level": "error"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
41
minio-credentials
Executable file
41
minio-credentials
Executable file
@@ -0,0 +1,41 @@
|
|||||||
|
#!/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();
|
||||||
|
}
|
||||||
|
|
13
start.sh
13
start.sh
@@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
mkdir -p /app/data/data /app/data/certs /app/data/config
|
mkdir -p /app/data/data /run/minio/config /run/minio/certs
|
||||||
|
|
||||||
if ! [ -f /app/data/config/config.json ]; then
|
echo "==> Changing ownership"
|
||||||
cp /app/code/config.json /app/data/config/config.json
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Changing ownership"
|
|
||||||
chown -R cloudron:cloudron /app/data
|
chown -R cloudron:cloudron /app/data
|
||||||
|
|
||||||
echo "Starting minio"
|
# the --config-dir is deprecated and not used. but without it, minio will try to create $HOME/.minio :/ same for --certs-dir
|
||||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio server --config-dir /app/data/config --certs-dir /app/data/certs --address :8000 /app/data/data
|
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
|
||||||
|
|
||||||
|
|
||||||
|
1299
test/package-lock.json
generated
1299
test/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,14 +9,14 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chromedriver": "^76.0.0",
|
"chromedriver": "^81.0.0",
|
||||||
"ejs": "^2.6.2",
|
"ejs": "^3.0.2",
|
||||||
"expect.js": "^0.3.1",
|
"expect.js": "^0.3.1",
|
||||||
"mkdirp": "^0.5.1",
|
"mkdirp": "^1.0.4",
|
||||||
"mocha": "^6.2.0",
|
"mocha": "^7.1.1",
|
||||||
"rimraf": "^2.6.3",
|
"rimraf": "^3.0.2",
|
||||||
"selenium-server-standalone-jar": "^3.141.5",
|
"selenium-server-standalone-jar": "^3.141.59",
|
||||||
"selenium-webdriver": "^3.6.0",
|
"selenium-webdriver": "^3.6.0",
|
||||||
"superagent": "^5.1.0"
|
"superagent": "^5.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
32
test/test.js
32
test/test.js
@@ -14,14 +14,10 @@ var by = require('selenium-webdriver').By,
|
|||||||
Key = require('selenium-webdriver').Key,
|
Key = require('selenium-webdriver').Key,
|
||||||
Builder = require('selenium-webdriver').Builder;
|
Builder = require('selenium-webdriver').Builder;
|
||||||
|
|
||||||
var accessKey = 'admin',
|
|
||||||
secretKey = 'secretkey';
|
|
||||||
|
|
||||||
var bucket = 'cloudrontestbucket';
|
var bucket = 'cloudrontestbucket';
|
||||||
|
|
||||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||||
|
|
||||||
|
|
||||||
describe('Application life cycle test', function () {
|
describe('Application life cycle test', function () {
|
||||||
this.timeout(0);
|
this.timeout(0);
|
||||||
|
|
||||||
@@ -56,7 +52,7 @@ describe('Application life cycle test', function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function login(callback) {
|
function login(accessKey, secretKey, callback) {
|
||||||
browser.manage().deleteAllCookies();
|
browser.manage().deleteAllCookies();
|
||||||
browser.get('https://' + app.fqdn).then(function () {
|
browser.get('https://' + app.fqdn).then(function () {
|
||||||
return visible(by.id('accessKey'));
|
return visible(by.id('accessKey'));
|
||||||
@@ -151,7 +147,7 @@ describe('Application life cycle test', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('install app', function () {
|
it('install app', function () {
|
||||||
execSync('cloudron install --new --wait --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron install --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can get app information', function () {
|
it('can get app information', function () {
|
||||||
@@ -162,17 +158,21 @@ describe('Application life cycle test', function () {
|
|||||||
expect(app).to.be.an('object');
|
expect(app).to.be.an('object');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can login', login);
|
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||||
it('can add bucket', addBucket);
|
it('can add bucket', addBucket);
|
||||||
it('can open settings', openSettings);
|
it('can open settings', openSettings);
|
||||||
it('can logout', logout);
|
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' });
|
||||||
|
});
|
||||||
|
|
||||||
it('can restart app', function (done) {
|
it('can restart app', function (done) {
|
||||||
execSync('cloudron restart --wait');
|
execSync('cloudron restart');
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can login', login);
|
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||||
it('has bucket', checkBucket);
|
it('has bucket', checkBucket);
|
||||||
it('can logout', logout);
|
it('can logout', logout);
|
||||||
|
|
||||||
@@ -184,20 +184,20 @@ describe('Application life cycle test', function () {
|
|||||||
execSync('cloudron restore --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron restore --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can login', login);
|
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||||
it('has bucket', checkBucket);
|
it('has bucket', checkBucket);
|
||||||
it('can open settings', openSettings);
|
it('can open settings', openSettings);
|
||||||
it('can logout', logout);
|
it('can logout', logout);
|
||||||
|
|
||||||
it('move to different location', function () {
|
it('move to different location', function () {
|
||||||
browser.manage().deleteAllCookies();
|
browser.manage().deleteAllCookies();
|
||||||
execSync('cloudron configure --wait --location ' + LOCATION + '2', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron configure --location ' + LOCATION + '2', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||||
app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0];
|
app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0];
|
||||||
expect(app).to.be.an('object');
|
expect(app).to.be.an('object');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can login', login);
|
it('can login', login.bind(null, 'minioakey', 'minioskey'));
|
||||||
it('has bucket', checkBucket);
|
it('has bucket', checkBucket);
|
||||||
it('can logout', logout);
|
it('can logout', logout);
|
||||||
|
|
||||||
@@ -207,19 +207,19 @@ describe('Application life cycle test', function () {
|
|||||||
|
|
||||||
// test update
|
// test update
|
||||||
it('can install app', function () {
|
it('can install app', function () {
|
||||||
execSync('cloudron install --new --wait --appstore-id io.minio.cloudronapp --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron install --appstore-id io.minio.cloudronapp --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
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 === LOCATION; })[0];
|
||||||
expect(app).to.be.an('object');
|
expect(app).to.be.an('object');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can login', login);
|
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||||
it('can add buckets', addBucket);
|
it('can add buckets', addBucket);
|
||||||
it('can logout', logout);
|
it('can logout', logout);
|
||||||
it('can update', function () {
|
it('can update', function () {
|
||||||
execSync('cloudron install --wait --app ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron update --app ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||||
});
|
});
|
||||||
it('can login', login);
|
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||||
it('has bucket', checkBucket);
|
it('has bucket', checkBucket);
|
||||||
it('can logout', logout);
|
it('can logout', logout);
|
||||||
it('uninstall app', function () {
|
it('uninstall app', function () {
|
||||||
|
Reference in New Issue
Block a user