Skip to content

Commit

Permalink
docs: ajout de la doc pour la creation d'un bucket minio
Browse files Browse the repository at this point in the history
  • Loading branch information
gmoocto committed Aug 1, 2023
1 parent 3c58170 commit 8b8354e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/docs/tuto/creer-nouveau-bucket-minio.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
sidebar_label: Comment créer un nouveau bucket sur Minio
sidebar_position: 7
---

# Comment créer un nouveau bucket sur Minio

_01 Août 2023_


## Contexte
Lors de la création d'une nouvelle étape d'Extract / Transform / Load, il faut créer les buckets correspondant sur Minio qui accueillera les fichiers correspondants.

Exemple pour les différentes étapes d'ETL des annonces de logements, je dois créer les buckets suivants :
```
HOUSING_MINIO_RAW_BUCKET_NAME=housing-raw-bucket
HOUSING_MINIO_TRANSFORMED_BUCKET_NAME=housing-transform-bucket
HOUSING_MINIO_RESULT_BUCKET_NAME=housing-result-bucket
```

## La commande
Pour cela, une fois l'application déployée, on lance la commande sous le modèle suivant via l'outil CLI scalingo :

```shell
scalingo --region osc-fr1 --app [NOM_APPLICATION_SCALINGO] run "npm run cli -- mkbucket -b [BUCKET_NAME]"
```

### Exemple
Exemple en _recette_ pour la création de `HOUSING_MINIO_RAW_BUCKET_NAME` qui vaut `housing-raw-bucket`:
```shell
scalingo --region osc-fr1 --app 1j1s-stage-orchestrateur-transform-load run "npm run cli -- mkbucket -b housing-raw-bucket"
```

0 comments on commit 8b8354e

Please sign in to comment.