# minio-ruby [MinIO](https://min.io) is an open-source S3-compatible object store. This gem provides a Ruby interface to MinIO. ## Installation Install the gem and add to the application's Gemfile by executing: ```sh bundle add minio ``` If bundler is not being used to manage dependencies, install the gem by executing: ```sh gem install minio ``` Supported platforms are: * arm64-darwin (darwin-arm64) * arm64-linux (linux-arm64) * x86_64-darwin (darwin-amd64) * x86_64-linux (linux-amd64) * x86_64-windows (windows-amd64) ### Using a local installation of `minio` If you are not able to use the vendored standalone executables (for example, if you're on an unsupported platform), you can use a local installation of the `minio` executable by setting an environment variable named `MINIO_INSTALL_DIR` to the directory containing the executable. For example, if you've installed `minio` so that the executable is found at `/usr/local/bin/minio`, then you should set your environment variable like so: ``` sh MINIO_INSTALL_DIR=/usr/local/bin ``` This also works with relative paths. If you've installed into your app's directory at `./.bin/minio`: ``` sh MINIO_INSTALL_DIR=.bin ``` ## Usage ```shell $ minio --help NAME: minio - High Performance Object Storage DESCRIPTION: Build high performance data infrastructure for machine learning, analytics and application data workloads with MinIO USAGE: minio [FLAGS] COMMAND [ARGS...] COMMANDS: server start object storage server FLAGS: --certs-dir value, -S value path to certs directory --quiet disable startup and info messages --anonymous hide sensitive information from logging --json output logs in JSON format --help, -h show help --version, -v print the version VERSION: RELEASE.2024-04-18T19-09-19Z ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`. For maintainers, to release a new version, run `bin/release $VERSION`, which will create a git tag for the version, push git commits and tags, and push all of the platform-specific `.gem` files to [rubygems.org](https://rubygems.org). ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/fractaledmind/minio-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/fractaledmind/minio-ruby/blob/main/CODE_OF_CONDUCT.md). ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). ## Code of Conduct Everyone interacting in the Sqlpkg::Ruby project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fractaledmind/minio-ruby/blob/main/CODE_OF_CONDUCT.md).