Skip to content

simplicitesoftware/module-minio

Repository files navigation


Minio module definition

Minio S3 cloud storage example

Prerequisites

  1. Install Minio server

See this page. You should install both the server and the mc CLI client.

For a local deployment the storage server's S3 endpoint is http://127.0.0.1:9000

You can alias it as local:

mc alias set local http://127.0.0.1:9000 minioadmin minioadmin
mc admin info local

note: the objects browser UI is also available on http://127.0.0.1:9001.

  1. Create credentials
mc admin accesskey create local

The result should look like:

Access Key: <a random access key>
Secret Key: <a random secret key>
Expiration: NONE
Name:
Description:
  1. Create a test bucket
mc mb local/test
  1. Review the MINIO_CONFIG system param to comply with your Minio server configuration

The default value of the system parameter is using the follwoing environment variables:

  • MINIO_ENDPOINT: API endpoint (e.g. http://127.0.0.1:9000)
  • MINIO_BUCKET: bucket name (e.g. test)
  • MINIO_ACCESSKEY and MINIO_SECRETKEY: credentials

Docker

Add the minio service to you docker-compose.yml:

services:
  minio:
    image: quay.io/minio/minio:latest
    command: [ "server" ]
    ports:
      - 127.0.0.1:9000:9000
    volumes:
      - <your host volume spec>:/data

Create the credentials and the bucket locally using the mc CLI (once done you can remove the 9000 port mapping) and add the following environment variabled to your simplicite service:

    environment:
      MINIO_ENDPOINT: "http://minio:9000"
      MINIO_BUCKET: "<your bucket name, e.g. test>"
      MINIO_ACCESSKEY: "<your access key>"
      MINIO_SECRETKEY: "<your secret key>"

MinioTest business object definition

Fields

Name Type Required Updatable Personal Description
minioTstCode char(50) yes* yes -
minioTstLabel char(255) yes -
minioTstDocument document yes -

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages