create cert dir
This commit is contained in:
parent
926345c331
commit
ba9362ec8c
|
@ -1,8 +1,10 @@
|
||||||
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
|
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
|
||||||
|
|
||||||
RUN mkdir -p /app/code \
|
RUN mkdir -p /app/code \
|
||||||
&& wget https://dl.minio.io/server/minio/release/linux-amd64/minio.RELEASE.2019-01-10T00-21-20Z -O /app/code/minio \
|
&& wget https://dl.minio.io/server/minio/release/linux-amd64/minio.RELEASE.2019-01-16T21-44-08Z -O /app/code/minio \
|
||||||
&& chmod +x /app/code/minio
|
&& chmod +x /app/code/minio \
|
||||||
|
&& wget https://dl.minio.io/client/mc/release/linux-amd64/mc.RELEASE.2019-01-10T00-38-22Z -O /app/code/mc \
|
||||||
|
&& chmod +x /app/code/mc
|
||||||
|
|
||||||
WORKDIR /app/code
|
WORKDIR /app/code
|
||||||
|
|
||||||
|
|
63
config.json
63
config.json
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "10",
|
"version": "33",
|
||||||
"credential": {
|
"credential": {
|
||||||
"accessKey": "admin",
|
"accessKey": "admin",
|
||||||
"secretKey": "secretkey"
|
"secretKey": "secretkey"
|
||||||
|
@ -9,67 +9,6 @@
|
||||||
"console": {
|
"console": {
|
||||||
"enable": true,
|
"enable": true,
|
||||||
"level": "error"
|
"level": "error"
|
||||||
},
|
|
||||||
"file": {
|
|
||||||
"enable": false,
|
|
||||||
"fileName": "",
|
|
||||||
"level": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notify": {
|
|
||||||
"amqp": {
|
|
||||||
"1": {
|
|
||||||
"enable": false,
|
|
||||||
"url": "",
|
|
||||||
"exchange": "",
|
|
||||||
"routingKey": "",
|
|
||||||
"exchangeType": "",
|
|
||||||
"mandatory": false,
|
|
||||||
"immediate": false,
|
|
||||||
"durable": false,
|
|
||||||
"internal": false,
|
|
||||||
"noWait": false,
|
|
||||||
"autoDeleted": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nats": {
|
|
||||||
"1": {
|
|
||||||
"enable": false,
|
|
||||||
"address": "",
|
|
||||||
"subject": "",
|
|
||||||
"username": "",
|
|
||||||
"password": "",
|
|
||||||
"token": "",
|
|
||||||
"secure": false,
|
|
||||||
"pingInterval": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"elasticsearch": {
|
|
||||||
"1": {
|
|
||||||
"enable": false,
|
|
||||||
"url": "",
|
|
||||||
"index": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"redis": {
|
|
||||||
"1": {
|
|
||||||
"enable": false,
|
|
||||||
"address": "",
|
|
||||||
"password": "",
|
|
||||||
"key": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"postgresql": {
|
|
||||||
"1": {
|
|
||||||
"enable": false,
|
|
||||||
"connectionString": "",
|
|
||||||
"table": "",
|
|
||||||
"host": "",
|
|
||||||
"port": "",
|
|
||||||
"user": "",
|
|
||||||
"password": "",
|
|
||||||
"database": ""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
8
start.sh
8
start.sh
|
@ -2,12 +2,16 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
mkdir -p /app/data/data /app/data/config
|
mkdir -p /app/data/data /app/data/certs /app/data/config
|
||||||
|
|
||||||
if ! [ -f /app/data/config/config.json ]; then
|
if ! [ -f /app/data/config/config.json ]; then
|
||||||
cp /app/code/config.json /app/data/config/config.json
|
cp /app/code/config.json /app/data/config/config.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec ./minio server -C /app/data/config --address :8000 /app/data/data
|
echo "Changing ownership"
|
||||||
|
chown -R cloudron:cloudron /app/data
|
||||||
|
|
||||||
|
echo "Starting minio"
|
||||||
|
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio server --config-dir /app/data/config --certs-dir /app/data/certs --address :8000 /app/data/data
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue