From f088e8960b85ddfc96445b57937e5fe3b61991ce Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 14 Feb 2022 08:50:42 -0800 Subject: [PATCH] docs: turn-on more markdown rules and fix them (#14301) --- .github/workflows/markdown-lint.yaml | 2 +- README.md | 34 ++++++++++++++-------------- browser/.dockerignore | 18 --------------- docs/bucket/versioning/DESIGN.md | 2 +- docs/disk-caching/README.md | 2 +- docs/distributed/README.md | 6 ++--- docs/docker/README.md | 8 +++---- docs/federation/lookup/README.md | 2 +- docs/gateway/s3.md | 4 ++-- docs/select/README.md | 8 +++---- docs/shared-backend/README.md | 2 +- docs/tls/README.md | 2 +- helm/minio/README.md | 1 + 13 files changed, 37 insertions(+), 54 deletions(-) delete mode 100644 browser/.dockerignore diff --git a/.github/workflows/markdown-lint.yaml b/.github/workflows/markdown-lint.yaml index 3851d6848..a68e515ea 100644 --- a/.github/workflows/markdown-lint.yaml +++ b/.github/workflows/markdown-lint.yaml @@ -22,4 +22,4 @@ jobs: - name: Lint all docs run: | npm install -g markdownlint-cli - markdownlint --fix '**/*.md' --disable MD013 MD025 MD040 MD024 + markdownlint --fix '**/*.md' --disable MD013 MD040 diff --git a/README.md b/README.md index 71a8ae176..2977121dd 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ MinIO is a High Performance Object Storage released under GNU Affero General Pub This README provides quickstart instructions on running MinIO on bare metal hardware, including container-based installations. For Kubernetes environments, use the [MinIO Kubernetes Operator](https://github.com/minio/operator/blob/master/README.md). -# Container Installation +## Container Installation Use the following commands to run a standalone MinIO server as a container. @@ -17,7 +17,7 @@ require distributed deploying MinIO with Erasure Coding. For extended developmen with a *minimum* of 4 drives per MinIO server. See [MinIO Erasure Code Quickstart Guide](https://docs.min.io/docs/minio-erasure-code-quickstart-guide.html) for more complete documentation. -## Stable +### Stable Run the following command to run the latest stable image of MinIO as a container using an ephemeral data volume: @@ -36,13 +36,13 @@ see and click **MinIO SDKs** in the navigation to vi > NOTE: To deploy MinIO on with persistent storage, you must map local persistent directories from the host OS to the container using the `podman -v` option. For example, `-v /mnt/data:/data` maps the host OS drive at `/mnt/data` to `/data` on the container. -# macOS +## macOS Use the following commands to run a standalone MinIO server on macOS. Standalone MinIO servers are best suited for early development and evaluation. Certain features such as versioning, object locking, and bucket replication require distributed deploying MinIO with Erasure Coding. For extended development and production, deploy MinIO with Erasure Coding enabled - specifically, with a *minimum* of 4 drives per MinIO server. See [MinIO Erasure Code Quickstart Guide](https://docs.min.io/docs/minio-erasure-code-quickstart-guide.html) for more complete documentation. -## Homebrew (recommended) +### Homebrew (recommended) Run the following command to install the latest stable MinIO package using [Homebrew](https://brew.sh/). Replace ``/data`` with the path to the drive or directory in which you want MinIO to store data. @@ -62,7 +62,7 @@ The MinIO deployment starts using default root credentials `minioadmin:minioadmi You can also connect using any S3-compatible tool, such as the MinIO Client `mc` commandline tool. See [Test using MinIO Client `mc`](#test-using-minio-client-mc) for more information on using the `mc` commandline tool. For application developers, see and click **MinIO SDKs** in the navigation to view MinIO SDKs for supported languages. -## Binary Download +### Binary Download Use the following command to download and run a standalone MinIO server on macOS. Replace ``/data`` with the path to the drive or directory in which you want MinIO to store data. @@ -76,7 +76,7 @@ The MinIO deployment starts using default root credentials `minioadmin:minioadmi You can also connect using any S3-compatible tool, such as the MinIO Client `mc` commandline tool. See [Test using MinIO Client `mc`](#test-using-minio-client-mc) for more information on using the `mc` commandline tool. For application developers, see and click **MinIO SDKs** in the navigation to view MinIO SDKs for supported languages. -# GNU/Linux +## GNU/Linux Use the following command to run a standalone MinIO server on Linux hosts running 64-bit Intel/AMD architectures. Replace ``/data`` with the path to the drive or directory in which you want MinIO to store data. @@ -103,7 +103,7 @@ You can also connect using any S3-compatible tool, such as the MinIO Client `mc` > NOTE: Standalone MinIO servers are best suited for early development and evaluation. Certain features such as versioning, object locking, and bucket replication require distributed deploying MinIO with Erasure Coding. For extended development and production, deploy MinIO with Erasure Coding enabled - specifically, with a *minimum* of 4 drives per MinIO server. See [MinIO Erasure Code Quickstart Guide](https://docs.min.io/docs/minio-erasure-code-quickstart-guide.html) for more complete documentation. -# Microsoft Windows +## Microsoft Windows To run MinIO on 64-bit Windows hosts, download the MinIO executable from the following URL: @@ -123,7 +123,7 @@ You can also connect using any S3-compatible tool, such as the MinIO Client `mc` > NOTE: Standalone MinIO servers are best suited for early development and evaluation. Certain features such as versioning, object locking, and bucket replication require distributed deploying MinIO with Erasure Coding. For extended development and production, deploy MinIO with Erasure Coding enabled - specifically, with a *minimum* of 4 drives per MinIO server. See [MinIO Erasure Code Quickstart Guide](https://docs.min.io/docs/minio-erasure-code-quickstart-guide.html) for more complete documentation. -# Install from Source +## Install from Source Use the following commands to compile and run a standalone MinIO server from source. Source installation is only intended for developers and advanced users. If you do not have a working Golang environment, please follow [How to install Golang](https://golang.org/doc/install). Minimum version required is [go1.17](https://golang.org/dl/#stable) @@ -139,9 +139,9 @@ You can also connect using any S3-compatible tool, such as the MinIO Client `mc` MinIO strongly recommends *against* using compiled-from-source MinIO servers for production environments. -# Deployment Recommendations +## Deployment Recommendations -## Allow port access for Firewalls +### Allow port access for Firewalls By default MinIO uses the port 9000 to listen for incoming connections. If your platform blocks the port by default, you may need to enable access to the port. @@ -202,9 +202,9 @@ When deployed on a single drive, MinIO server lets clients access any pre-existi The above statement is also valid for all gateway backends. -# Test MinIO Connectivity +## Test MinIO Connectivity -## Test using MinIO Console +### Test using MinIO Console MinIO Server comes with an embedded web based object browser. Point your web browser to to ensure your server has started successfully. @@ -230,7 +230,7 @@ For example: `export MINIO_SERVER_URL="https://minio.example.net"` `mc` provides a modern alternative to UNIX commands like ls, cat, cp, mirror, diff etc. It supports filesystems and Amazon S3 compatible cloud storage services. Follow the MinIO Client [Quickstart Guide](https://docs.min.io/docs/minio-client-quickstart-guide) for further instructions. -# Upgrading MinIO +## Upgrading MinIO Upgrades require zero downtime in MinIO, all upgrades are non-disruptive, all transactions on MinIO are atomic. So upgrading all the servers simultaneously is the recommended way to upgrade MinIO. @@ -246,7 +246,7 @@ mc admin update - For RPM/DEB installations, upgrade packages **parallelly** on all servers. Once upgraded, perform `systemctl restart minio` across all nodes in **parallel**. RPM/DEB based installations are usually automated using [`ansible`](https://github.com/minio/ansible-minio). -## Upgrade Checklist +### Upgrade Checklist - Test all upgrades in a lower environment (DEV, QA, UAT) before applying to production. Performing blind upgrades in production environments carries significant risk. - Read the release notes for the targeted MinIO release *before* performing any installation, there is no forced requirement to upgrade to latest releases every week. If it has a bug fix you are looking for then yes, else avoid actively upgrading a running production system. @@ -254,7 +254,7 @@ mc admin update - `mc admin update` is not supported in kubernetes/container environments, container environments provide their own mechanisms for container updates. - **We do not recommend upgrading one MinIO server at a time, the product is designed to support parallel upgrades please follow our recommended guidelines.** -# Explore Further +## Explore Further - [MinIO Erasure Code QuickStart Guide](https://docs.min.io/docs/minio-erasure-code-quickstart-guide) - [Use `mc` with MinIO Server](https://docs.min.io/docs/minio-client-quickstart-guide) @@ -263,11 +263,11 @@ mc admin update - [Use `minio-go` SDK with MinIO Server](https://docs.min.io/docs/golang-client-quickstart-guide) - [The MinIO documentation website](https://docs.min.io) -# Contribute to MinIO Project +## Contribute to MinIO Project Please follow MinIO [Contributor's Guide](https://github.com/minio/minio/blob/master/CONTRIBUTING.md) -# License +## License - MinIO source is licensed under the GNU AGPLv3 license that can be found in the [LICENSE](https://github.com/minio/minio/blob/master/LICENSE) file. - MinIO [Documentation](https://github.com/minio/minio/tree/master/docs) © 2021 by MinIO, Inc is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). diff --git a/browser/.dockerignore b/browser/.dockerignore deleted file mode 100644 index 38edf38cf..000000000 --- a/browser/.dockerignore +++ /dev/null @@ -1,18 +0,0 @@ -**/*.swp -cover.out -*~ -minio -!*/ -site/ -**/*.test -**/*.sublime-workspace -/.idea/ -/Minio.iml -**/access.log -build -vendor/**/*.js -vendor/**/*.json -.DS_Store -*.syso -coverage.txt -node_modules diff --git a/docs/bucket/versioning/DESIGN.md b/docs/bucket/versioning/DESIGN.md index 2af0905ea..b78eae45c 100644 --- a/docs/bucket/versioning/DESIGN.md +++ b/docs/bucket/versioning/DESIGN.md @@ -124,7 +124,7 @@ const ( The "Metadata" section contains a single version, encoded in similar fashion as each version in the `Versions` array of the previous version. -# Inline Data +## Inline Data Inline data is optional. If no inline data is present, it is encoded as 0 bytes. diff --git a/docs/disk-caching/README.md b/docs/disk-caching/README.md index 6a309389c..2020d3b5a 100644 --- a/docs/disk-caching/README.md +++ b/docs/disk-caching/README.md @@ -36,7 +36,7 @@ In the example above this means that `MINIO_CACHE_WATERMARK_LOW` is effectively To test this setup, access the MinIO gateway via browser or [`mc`](https://docs.min.io/docs/minio-client-quickstart-guide). You’ll see the uploaded files are accessible from all the MinIO endpoints. -# Explore Further +## Explore Further - [Disk cache design](https://github.com/minio/minio/blob/master/docs/disk-caching/DESIGN.md) - [Use `mc` with MinIO Server](https://docs.min.io/docs/minio-client-quickstart-guide) diff --git a/docs/distributed/README.md b/docs/distributed/README.md index 4c21ee9ae..ae5e01e64 100644 --- a/docs/distributed/README.md +++ b/docs/distributed/README.md @@ -26,15 +26,15 @@ MinIO follows strict **read-after-write** and **list-after-write** consistency m **If MinIO distributed setup is using NFS volumes underneath it is not guaranteed MinIO will provide these consistency guarantees since NFS is not consistent filesystem by design (If you must use NFS we recommend that you atleast use NFSv4 instead of NFSv3).** -# Get started +## Get started If you're aware of stand-alone MinIO set up, the process remains largely the same. MinIO server automatically switches to stand-alone or distributed mode, depending on the command line parameters. -## 1. Prerequisites +### 1. Prerequisites Install MinIO - [MinIO Quickstart Guide](https://docs.min.io/docs/minio-quickstart-guide). -## 2. Run distributed MinIO +### 2. Run distributed MinIO To start a distributed MinIO instance, you just need to pass drive locations as parameters to the minio server command. Then, you’ll need to run the same command on all the participating nodes. diff --git a/docs/docker/README.md b/docs/docker/README.md index e0e1b03fb..73f17e755 100644 --- a/docs/docker/README.md +++ b/docs/docker/README.md @@ -63,7 +63,7 @@ Distributed MinIO can be deployed via [Docker Compose](https://docs.min.io/docs/ To override MinIO's auto-generated keys, you may pass secret and access keys explicitly as environment variables. MinIO server also allows regular strings as access and secret keys. -#### GNU/Linux and macOS +#### GNU/Linux and macOS (custom access and secret keys) ```sh docker run \ @@ -76,7 +76,7 @@ docker run \ quay.io/minio/minio server /data --console-address ":9001" ``` -#### Windows +#### Windows (custom access and secret keys) ```powershell docker run \ @@ -93,7 +93,7 @@ docker run \ Docker provides standardized mechanisms to run docker containers as non-root users. -#### GNU/Linux and macOS +#### GNU/Linux and macOS (regular user) On Linux and macOS you can use `--user` to run the container as regular user. @@ -112,7 +112,7 @@ docker run \ quay.io/minio/minio server /data ``` -#### Windows +#### Windows (regular user) On windows you would need to use [Docker integrated windows authentication](https://success.docker.com/article/modernizing-traditional-dot-net-applications#integratedwindowsauthentication) and [Create a container with Active Directory Support](https://blogs.msdn.microsoft.com/containerstuff/2017/01/30/create-a-container-with-active-directory-support/) diff --git a/docs/federation/lookup/README.md b/docs/federation/lookup/README.md index e1c88974e..32f6fe388 100644 --- a/docs/federation/lookup/README.md +++ b/docs/federation/lookup/README.md @@ -78,7 +78,7 @@ it is randomized which cluster might provision the bucket. To test this setup, access the MinIO server via browser or [`mc`](https://docs.min.io/docs/minio-client-quickstart-guide). You’ll see the uploaded files are accessible from the all the MinIO endpoints. -# Explore Further +## Explore Further - [Use `mc` with MinIO Server](https://docs.min.io/docs/minio-client-quickstart-guide) - [Use `aws-cli` with MinIO Server](https://docs.min.io/docs/aws-cli-with-minio) diff --git a/docs/gateway/s3.md b/docs/gateway/s3.md index 5e78f067e..71ebef871 100644 --- a/docs/gateway/s3.md +++ b/docs/gateway/s3.md @@ -113,7 +113,7 @@ export MINIO_KMS_KES_KEY_NAME=my-minio-key minio gateway s3 ``` -### Using Docker +### Using Docker (double encryption) ``` podman run -p 9000:9000 --name minio-s3 \ @@ -122,7 +122,7 @@ podman run -p 9000:9000 --name minio-s3 \ quay.io/minio/minio gateway s3 https://s3_compatible_service_endpoint:port ``` -### Using Binary +### Using Binary (double encryption) ``` export MINIO_ROOT_USER=access_key diff --git a/docs/select/README.md b/docs/select/README.md index 6a7560ab9..98c6d21e4 100644 --- a/docs/select/README.md +++ b/docs/select/README.md @@ -23,19 +23,19 @@ Parquet is DISABLED by default since hostile crafted input can easily crash the If you are in a controlled environment where it is safe to assume no hostile content can be uploaded to your cluster you can safely enable Parquet. To enable Parquet set the environment variable `MINIO_API_SELECT_PARQUET=on`. -# Example using Python API +## Example using Python API -## 1. Prerequisites +### 1. Prerequisites - Install MinIO Server from [here](https://docs.min.io/docs/minio-quickstart-guide). - Familiarity with AWS S3 API. - Familiarity with Python and installing dependencies. -## 2. Install boto3 +### 2. Install boto3 Install `aws-sdk-python` from AWS SDK for Python official docs [here](https://aws.amazon.com/sdk-for-python/) -## 3. Example +### 3. Example As an example, let us take a gzip compressed CSV file. Without S3 Select, we would need to download, decompress and process the entire CSV to get the data you needed. With Select API, can use a simple SQL expression to return only the data from the CSV you’re interested in, instead of retrieving the entire object. Following Python example shows how to retrieve the first column `Location` from an object containing data in CSV format. diff --git a/docs/shared-backend/README.md b/docs/shared-backend/README.md index 52597f20f..8807befc0 100644 --- a/docs/shared-backend/README.md +++ b/docs/shared-backend/README.md @@ -12,7 +12,7 @@ MinIO shared mode is developed to solve several real world use cases, without an With a proxy running in front of multiple, shared mode MinIO servers, it is very easy to create a Highly Available, load balanced, AWS S3 compatible storage system. -# Get started +## Get started If you're aware of stand-alone MinIO set up, the installation and running remains the same. diff --git a/docs/tls/README.md b/docs/tls/README.md index 8ed116876..b2c7e14a3 100644 --- a/docs/tls/README.md +++ b/docs/tls/README.md @@ -237,7 +237,7 @@ MinIO can connect to other servers, including MinIO nodes or other server types * **Linux:** `~/.minio/certs/CAs/` * **Windows**: `C:\Users\\.minio\certs\CAs` -# Explore Further +## Explore Further * [TLS Configuration for MinIO server on Kubernetes](https://github.com/minio/minio/tree/master/docs/tls/kubernetes) * [MinIO Client Complete Guide](https://docs.min.io/docs/minio-client-complete-guide) diff --git a/helm/minio/README.md b/helm/minio/README.md index 504da59c0..ad3eb7df7 100644 --- a/helm/minio/README.md +++ b/helm/minio/README.md @@ -203,6 +203,7 @@ Description of the configuration parameters used above - - `policies[].statements[].actions[]` - list of actions granted ### Create user after install + Install the chart, specifying the users you want to create after install: ```bash