项目作者: madrisan

项目描述 :
Specfile for MinIO Object Storage Service
高级语言:
项目地址: git://github.com/madrisan/specfile-minio.git
创建时间: 2020-03-17T18:30:16Z
项目社区:https://github.com/madrisan/specfile-minio

开源协议:Apache License 2.0

下载


Specfile for MinIO server

Release Status
License

MinIO

MinIO is a open source, S3 compatible, enterprise hardened and high performance distributed object storage system.

This repository contains the specfiles that you can use to build MinIO server and client from the sources.

Usage

Pre-Requiments

  1. sudo dnf install -y rpm-build golang git

Note that git 2.x is required (tested with version 2.25.1 on Fedora 31 and with git provided by the WANDisco’s CentOS repository on CentOS7, see stackoverflow).

Build instructions

MinIO server

  1. mkdir -p ~/rpmbuild/{SPECS,SOURCES}
  2. for f in minio.conf minio.service; do
  3. curl -# https://raw.githubusercontent.com/madrisan/specfile-minio/master/$f \
  4. -o ~/rpmbuild/SOURCES/$f
  5. done
  6. curl -# https://raw.githubusercontent.com/madrisan/specfile-minio/master/minio.spec \
  7. -o ~/rpmbuild/SPECS/minio.spec
  8. curl -# -L https://github.com/minio/minio/archive/RELEASE.2020-03-14T02-21-58Z.tar.gz \
  9. -o ~/rpmbuild/SOURCES/RELEASE.2020-03-14T02-21-58Z.tar.gz
  10. rpmbuild -ba ~/rpmbuild/SPECS/minio.spec

Minio client (minio-mc)

  1. mkdir -p ~/rpmbuild/{SPECS,SOURCES}
  2. curl -# https://raw.githubusercontent.com/madrisan/specfile-minio/master/mc.spec \
  3. -o ~/rpmbuild/SPECS/minio-mc.spec
  4. curl -# -L https://github.com/minio/minio/archive/RELEASE.2020-03-14T01-23-37Z.tar.gz \
  5. -o ~/rpmbuild/SOURCES/RELEASE.2020-03-14T01-23-37Z.tar.gz
  6. rpmbuild -ba ~/rpmbuild/SPECS/minio-mc.spec

Note that the binary has been renamed from mc to minio-mc to avoid a conflict name with the Midnight Commander binary.

Installation

The resulting .rpm packages can be installed with rpm of dnf.

Before starting the systemd service minio.service you need to customize the configuration file /etc/sysconfig/minio.
The volumes managed by MinIO must be configured in the variable MINIO_VOLUMES.
You can optionally pass some extra options at service startup by modifying the variable MINIO_OPTIONS.

To improve the security you should also create the file /etc/systemd/system/minio.service.d/environment.confowned by root, with a file mode 0640, declaring the following two secrets:

  1. [Service]
  2. Environment=MINIO_ACCESS_KEY=ADD_A_KEY_HERE
  3. Environment=MINIO_SECRET_KEY=ADD_A_SECRET_HERE

Here’s a simple way to generate a random character sequence:

  1. cat /dev/urandom | tr -dc '0-9a-zA-Z-._' | head -c 24; echo

Security

See the official documentation pages: