Upload Prefabricated Files
Upload the contents of the Prefabricated File Package within the four folders (mdmedia, mdpic, mdpub, mdoc) to the corresponding buckets in object storage according to the bucketName mapping relationship.
For common cloud object storage services, you can refer to the documentation for initialization: Mingdao Private Deployment Alibaba Cloud OSS Initialization Instructions. The methods for uploading files to different cloud object storage services are similar.
For self-hosted local MinIO object storage, you can refer to the following example steps:
-
Download the prefabricated file package
wget https://pdpublic.mingdao.com/private-deployment/source/6.3.0/file_init.tar.gz -
Extract the prefabricated file package
tar xf file_init.tar.gz -
Copy the extracted
datadirectory into the MinIO container (For a MinIO cluster environment, you only need to copy it to any one container)docker cp data xxx:/tmp -
Enter this MinIO container
docker exec -it xxx bash -
Add MinIO service alias
mc alias set myminio http://127.0.0.1:9000 mingdao 123456789 -
Create buckets
mc mb myminio/mdmedia
mc mb myminio/mdoc
mc mb myminio/mdpic
mc mb myminio/mdpub -
Upload local prefabricated files to the corresponding buckets in MinIO object storage
mc cp -r /tmp/data/mdmedia/* myminio/mdmedia
mc cp -r /tmp/data/mdoc/* myminio/mdoc
mc cp -r /tmp/data/mdpic/* myminio/mdpic
mc cp -r /tmp/data/mdpub/* myminio/mdpub