0

quick, fast & dirty minio server using docker

I need a quick & fast method of standing up a not so fancy minio server to test some s3 functionality. Nothing fancy was needed nor the need for multiple nodes or large datastores, but I did need it something that is easily installed/cleanedup and repeated.

minio.sh was born!

Features

  • tested on macOS, linux, wsl
  • creates myminio directory in your ${HOME}
  • cleanup cleans off everything
  • do not need root just need to be part of the docker group

Requirements

  • docker is needed.
  • any kind of s3 client like mc, s3cmd is good to have

Installation

$ curl -fsSL https://raw.githubusercontent.com/jlim0930/scripts/master/minio.sh -o minio.sh
$ chmod a+x minio.sh

Commands

  • build - will perform a fresh install and create ${HOME}/mymino and start the conainer
  • start - will start the container if stopped or build a new one if it doesnt exist
  • stop - stop sthe container
  • cleanup - will remove the container and delete ${HOME}/myminio
$ ./minio.sh start
[DEBUG] myminio container doesnt exist. Building
64c067683dd0c921364351080f87c1d489cbea0420eb3e1e7b7da2d1e38f1369
[DEBUG] mmyinio started.  http://localhost:9000 or http://192.168.1.191:9000.  access_key: minio  secret_key: minio123

[DEBUG] Please visit https://dl.minio.io/client/mc/release/ and download the mc client for your machine and chmod a+x mc and place it in your path
[DEBUG] Add myminio server into mc: mc config host add myminio http://127.0.0.1:9000 minio minio123
[DEBUG] mc commands are located on https://dl.minio.io/client/mc/release/
[DEBUG] For quick use:  Create Bucket: mc mb myminio/bucketname
[DEBUG] You can use s3cmd as well.

The default login is minio and the password is minio123

minio will listen on port 9000 on localhost and on your IP.

If you've installed mc then you can run this to add the client

$ mc config host add myminio http://localhost:900 minio minio123

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.