mirror of
https://github.com/YunoHost-Apps/minio_ynh.git
synced 2024-09-03 19:46:18 +02:00
75 lines
3.3 KiB
Markdown
75 lines
3.3 KiB
Markdown
<!--
|
|
NOTA: Este README foi creado automáticamente por <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
|
NON debe editarse manualmente.
|
|
-->
|
|
|
|
# MinIO server para YunoHost
|
|
|
|
[](https://dash.yunohost.org/appci/app/minio)  
|
|
|
|
[](https://install-app.yunohost.org/?app=minio)
|
|
|
|
*[Le este README en outros idiomas.](./ALL_README.md)*
|
|
|
|
> *Este paquete permíteche instalar MinIO server de xeito rápido e doado nun servidor YunoHost.*
|
|
> *Se non usas YunoHost, le a [documentación](https://yunohost.org/install) para saber como instalalo.*
|
|
|
|
## Vista xeral
|
|
|
|
MinIO is a High Performance Object Storage released under GNU Affero General Public License v3.0. It is API compatible with Amazon S3 cloud storage service. Use MinIO to build high performance infrastructure for machine learning, analytics and application data workloads.
|
|
|
|
## How to create a YunoHost app using MinIO
|
|
During the install process, MinIO will install both the MinIO server and MinIO client.
|
|
If your app needs to use an Amazon S3 storage, I recommend to use the MinIO client to create and setup buckets as per your app's requirements. You can have a look at outline_ynh app for reference.
|
|
|
|
### First step: retrieve MinIO credentials
|
|
```
|
|
#=================================================
|
|
# SETUP MINIO CREDENTIALS
|
|
#=================================================
|
|
minio_domain=$(ynh_app_setting_get --app="minio" --key=domain)
|
|
minio_admin=$(ynh_app_setting_get --app="minio" --key=admin)
|
|
minio_password=$(ynh_app_setting_get --app="minio" --key=password)
|
|
mc_path=$(ynh_app_setting_get --app="minio" --key=mc_path)
|
|
```
|
|
|
|
### Second step: create and setup your bucket
|
|
```
|
|
#=================================================
|
|
# SETUP MINIO BUCKET
|
|
#=================================================
|
|
ynh_script_progression --message="Setting up MinIO bucket for YOURAPP..." --weight=1
|
|
|
|
pushd "$mc_path"
|
|
ynh_exec_warn_less sudo -u minio ./mc mb minio/NAME_OF_YOUR_BUCKET --region "NAME_OF_YOUR_REGION"
|
|
ynh_exec_warn_less sudo -u minio ./mc policy set NEEDED_POLICY minio/NAME_OF_YOUR_BUCKET
|
|
popd
|
|
```
|
|
|
|
**Versión proporcionada:** 2023.09.07~ynh2
|
|
|
|
## Capturas de pantalla
|
|
|
|

|
|
|
|
## Documentación e recursos
|
|
|
|
- Web oficial da app: <https://min.io>
|
|
- Documentación oficial para admin: <https://docs.min.io/>
|
|
- Repositorio de orixe do código: <https://github.com/minio/minio>
|
|
- Tenda YunoHost: <https://apps.yunohost.org/app/minio>
|
|
- Informar dun problema: <https://github.com/YunoHost-Apps/minio_ynh/issues>
|
|
|
|
## Info de desenvolvemento
|
|
|
|
Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/minio_ynh/tree/testing).
|
|
|
|
Para probar a rama `testing`, procede deste xeito:
|
|
|
|
```bash
|
|
sudo yunohost app install https://github.com/YunoHost-Apps/minio_ynh/tree/testing --debug
|
|
ou
|
|
sudo yunohost app upgrade minio -u https://github.com/YunoHost-Apps/minio_ynh/tree/testing --debug
|
|
```
|
|
|
|
**Máis info sobre o empaquetado da app:** <https://yunohost.org/packaging_apps>
|