TrivadisPF / platys-modern-data-platform

Support for generating modern platforms dynamically with services such as Kafka, Spark, Streamsets, HDFS, ....
Apache License 2.0
72 stars 15 forks source link

Use different way for creating buckets in Minio upon start? #952

Open gschmutz opened 1 week ago

gschmutz commented 1 week ago

From https://github.com/AlexMercedCoder/dremio-spark-nessie-demo-environment-template/blob/main/docker-compose.yml

    volumes:
      - ./minio-data:/minio-data  # Mount the local folder to container
    entrypoint: >
      /bin/sh -c "
      minio server /data --console-address ':9001' &
      sleep 5;
      mc alias set myminio http://localhost:9000 admin password;
      mc mb myminio/datalake;
      mc mb myminio/datalakehouse;
      mc mb myminio/warehouse;
      mc mb myminio/seed;
      mc cp /minio-data/* myminio/seed/;
      tail -f /dev/null"