mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 15:39:50 -05:00
📎 Improve reporting of mc client on start-dev and repl scripts
This commit is contained in:
parent
39635cf5df
commit
4a4713ba82
2 changed files with 15 additions and 8 deletions
|
@ -45,10 +45,13 @@ export PENPOT_FLAGS="\
|
||||||
# export PENPOT_AUDIT_LOG_ARCHIVE_URI="http://localhost:6070/api/audit"
|
# export PENPOT_AUDIT_LOG_ARCHIVE_URI="http://localhost:6070/api/audit"
|
||||||
|
|
||||||
# Initialize MINIO config
|
# Initialize MINIO config
|
||||||
mc alias set penpot-s3/ http://minio:9000 minioadmin minioadmin
|
mc alias set penpot-s3/ http://minio:9000 minioadmin minioadmin -q
|
||||||
mc admin user add penpot-s3 penpot-devenv penpot-devenv
|
mc admin user add penpot-s3 penpot-devenv penpot-devenv -q
|
||||||
mc admin policy attach penpot-s3 readwrite --user=penpot-devenv
|
mc admin policy list penpot-s3 | grep -F -q -x "readwrite"
|
||||||
mc mb penpot-s3/penpot -p
|
if [ "$?" = "1" ]; then
|
||||||
|
mc admin policy attach penpot-s3 readwrite --user=penpot-devenv -q
|
||||||
|
fi
|
||||||
|
mc mb penpot-s3/penpot -p -q
|
||||||
|
|
||||||
export AWS_ACCESS_KEY_ID=penpot-devenv
|
export AWS_ACCESS_KEY_ID=penpot-devenv
|
||||||
export AWS_SECRET_ACCESS_KEY=penpot-devenv
|
export AWS_SECRET_ACCESS_KEY=penpot-devenv
|
||||||
|
|
|
@ -23,11 +23,15 @@ export PENPOT_FLAGS="\
|
||||||
disable-soft-file-schema-validation \
|
disable-soft-file-schema-validation \
|
||||||
disable-soft-file-validation";
|
disable-soft-file-validation";
|
||||||
|
|
||||||
|
|
||||||
# Initialize MINIO config
|
# Initialize MINIO config
|
||||||
mc alias set penpot-s3/ http://minio:9000 minioadmin minioadmin
|
mc alias set penpot-s3/ http://minio:9000 minioadmin minioadmin -q
|
||||||
mc admin user add penpot-s3 penpot-devenv penpot-devenv
|
mc admin user add penpot-s3 penpot-devenv penpot-devenv -q
|
||||||
mc admin policy attach penpot-s3 readwrite --user=penpot-devenv
|
mc admin policy list penpot-s3 | grep -F -q -x "readwrite"
|
||||||
mc mb penpot-s3/penpot -p
|
if [ "$?" = "1" ]; then
|
||||||
|
mc admin policy attach penpot-s3 readwrite --user=penpot-devenv -q
|
||||||
|
fi
|
||||||
|
mc mb penpot-s3/penpot -p -q
|
||||||
|
|
||||||
export AWS_ACCESS_KEY_ID=penpot-devenv
|
export AWS_ACCESS_KEY_ID=penpot-devenv
|
||||||
export AWS_SECRET_ACCESS_KEY=penpot-devenv
|
export AWS_SECRET_ACCESS_KEY=penpot-devenv
|
||||||
|
|
Loading…
Add table
Reference in a new issue