2021.10.7-debian-10-r12 release
This commit is contained in:
parent
e1d5c715a9
commit
eead5a2637
|
|
@ -16,7 +16,7 @@ RUN chmod g+rwX /opt/bitnami
|
|||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/minio-client/postunpack.sh
|
||||
ENV BITNAMI_APP_NAME="minio-client" \
|
||||
BITNAMI_IMAGE_VERSION="2021.10.7-debian-10-r11" \
|
||||
BITNAMI_IMAGE_VERSION="2021.10.7-debian-10-r12" \
|
||||
PATH="/opt/bitnami/minio-client/bin:/opt/bitnami/common/bin:$PATH"
|
||||
|
||||
WORKDIR /opt/bitnami/minio-client
|
||||
|
|
|
|||
|
|
@ -140,3 +140,24 @@ parse_uri() {
|
|||
esac
|
||||
[[ "$uri" =~ $URI_REGEX ]] && echo "${BASH_REMATCH[${index}]}"
|
||||
}
|
||||
|
||||
########################
|
||||
# Wait for a HTTP connection to succeed
|
||||
# Globals:
|
||||
# *
|
||||
# Arguments:
|
||||
# $1 - URL to wait for
|
||||
# $2 - Maximum amount of retries (optional)
|
||||
# $3 - Time between retries (optional)
|
||||
# Returns:
|
||||
# true if the HTTP connection succeeded, false otherwise
|
||||
#########################
|
||||
wait_for_http_connection() {
|
||||
local url="${1:?missing url}"
|
||||
local retries="${2:-}"
|
||||
local sleep_time="${3:-}"
|
||||
if ! retry_while "debug_execute curl --silent ${url}" "$retries" "$sleep_time"; then
|
||||
error "Could not connect to ${url}"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ remove_cron_conf() {
|
|||
# $3 - Start command
|
||||
# $4 - Stop command
|
||||
# Flags:
|
||||
# --disabled - Whether to disable the monit configuration
|
||||
# --disable - Whether to disable the monit configuration
|
||||
# Returns:
|
||||
# None
|
||||
#########################
|
||||
|
|
@ -174,9 +174,8 @@ generate_monit_conf() {
|
|||
shift 4
|
||||
while [[ "$#" -gt 0 ]]; do
|
||||
case "$1" in
|
||||
--disabled)
|
||||
shift
|
||||
disabled="$1"
|
||||
--disable)
|
||||
disabled="yes"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid command line flag ${1}" >&2
|
||||
|
|
|
|||
|
|
@ -164,11 +164,14 @@ web_server_reload() {
|
|||
# Arguments:
|
||||
# $1 - App name
|
||||
# Flags:
|
||||
# --hosts - Hosts to enable
|
||||
# --type - Application type, which has an effect on which configuration template to use
|
||||
# --hosts - Host listen addresses
|
||||
# --server-name - Server name
|
||||
# --server-aliases - Server aliases
|
||||
# --allow-remote-connections - Whether to allow remote connections or to require local connections
|
||||
# --disabled - Whether to render the file with a .disabled prefix
|
||||
# --enable-https - Enable app configuration on HTTPS port
|
||||
# --disable - Whether to render server configurations with a .disabled prefix
|
||||
# --disable-http - Whether to render the app's HTTP server configuration with a .disabled prefix
|
||||
# --disable-https - Whether to render the app's HTTPS server configuration with a .disabled prefix
|
||||
# --http-port - HTTP port number
|
||||
# --https-port - HTTPS port number
|
||||
# --document-root - Path to document root directory
|
||||
|
|
@ -198,11 +201,18 @@ ensure_web_server_app_configuration_exists() {
|
|||
while [[ "$#" -gt 0 ]]; do
|
||||
case "$1" in
|
||||
# Common flags
|
||||
--disable \
|
||||
| --disable-http \
|
||||
| --disable-https \
|
||||
)
|
||||
apache_args+=("$1")
|
||||
nginx_args+=("$1")
|
||||
;;
|
||||
--hosts \
|
||||
| --server-name \
|
||||
| --server-aliases \
|
||||
| --type \
|
||||
| --allow-remote-connections \
|
||||
| --disabled \
|
||||
| --enable-https \
|
||||
| --http-port \
|
||||
| --https-port \
|
||||
| --document-root \
|
||||
|
|
@ -347,8 +357,13 @@ ensure_web_server_prefix_configuration_exists() {
|
|||
# Arguments:
|
||||
# $1 - App name
|
||||
# Flags:
|
||||
# --hosts - Hosts to enable
|
||||
# --enable-https - Update HTTPS app configuration
|
||||
# --hosts - Host listen addresses
|
||||
# --server-name - Server name
|
||||
# --server-aliases - Server aliases
|
||||
# --enable-http - Enable HTTP app configuration (if not enabled already)
|
||||
# --enable-https - Enable HTTPS app configuration (if not enabled already)
|
||||
# --disable-http - Disable HTTP app configuration (if not disabled already)
|
||||
# --disable-https - Disable HTTPS app configuration (if not disabled already)
|
||||
# --http-port - HTTP port number
|
||||
# --https-port - HTTPS port number
|
||||
# Returns:
|
||||
|
|
@ -363,8 +378,20 @@ web_server_update_app_configuration() {
|
|||
while [[ "$#" -gt 0 ]]; do
|
||||
case "$1" in
|
||||
# Common flags
|
||||
--hosts \
|
||||
--enable-http \
|
||||
| --enable-https \
|
||||
| --disable-http \
|
||||
| --disable-https \
|
||||
)
|
||||
args+=("$1")
|
||||
;;
|
||||
--hosts \
|
||||
| --server-name \
|
||||
| --server-aliases \
|
||||
| --enable-http \
|
||||
| --enable-https \
|
||||
| --disable-http \
|
||||
| --disable-https \
|
||||
| --http-port \
|
||||
| --https-port \
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,32 +4,10 @@
|
|||
|
||||
# Functions
|
||||
|
||||
########################
|
||||
# Load global variables used on MinIO Client configuration
|
||||
# Globals:
|
||||
# MINIO_CLIENT_*
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
# Series of exports to be used as 'eval' arguments
|
||||
#########################
|
||||
minio_client_env() {
|
||||
cat <<"EOF"
|
||||
export MINIO_CLIENT_BASEDIR="/opt/bitnami/minio-client"
|
||||
export MINIO_CLIENT_CONFIGDIR="/.mc"
|
||||
export MINIO_SERVER_HOST="${MINIO_SERVER_HOST:-}"
|
||||
export MINIO_SERVER_PORT_NUMBER="${MINIO_SERVER_PORT_NUMBER:-9000}"
|
||||
export MINIO_SERVER_SCHEME="${MINIO_SERVER_SCHEME:-http}"
|
||||
export MINIO_SERVER_ACCESS_KEY="${MINIO_SERVER_ACCESS_KEY:-}"
|
||||
export MINIO_SERVER_SECRET_KEY="${MINIO_SERVER_SECRET_KEY:-}"
|
||||
export PATH="${MINIO_CLIENT_BASEDIR}/bin:$PATH"
|
||||
EOF
|
||||
}
|
||||
|
||||
########################
|
||||
# Check if a bucket already exists
|
||||
# Globals:
|
||||
# MINIO_CLIENT_CONFIGDIR
|
||||
# MINIO_CLIENT_CONF_DIR
|
||||
# Arguments:
|
||||
# $1 - Bucket name
|
||||
# Returns:
|
||||
|
|
@ -46,13 +24,13 @@ minio_client_bucket_exists() {
|
|||
########################
|
||||
# Execute an arbitrary MinIO client command
|
||||
# Globals:
|
||||
# MINIO_CLIENT_CONFIGDIR
|
||||
# MINIO_CLIENT_CONF_DIR
|
||||
# Arguments:
|
||||
# $@ - Command to execute
|
||||
# Returns:
|
||||
# None
|
||||
minio_client_execute() {
|
||||
local -r args=("--config-dir" "${MINIO_CLIENT_CONFIGDIR}" "--quiet" "$@")
|
||||
local -r args=("--config-dir" "${MINIO_CLIENT_CONF_DIR}" "--quiet" "$@")
|
||||
local exec
|
||||
exec=$(command -v mc)
|
||||
|
||||
|
|
@ -62,13 +40,13 @@ minio_client_execute() {
|
|||
########################
|
||||
# Execute an arbitrary MinIO client command with a 2s timeout
|
||||
# Globals:
|
||||
# MINIO_CLIENT_CONFIGDIR
|
||||
# MINIO_CLIENT_CONF_DIR
|
||||
# Arguments:
|
||||
# $@ - Command to execute
|
||||
# Returns:
|
||||
# None
|
||||
minio_client_execute_timeout() {
|
||||
local -r args=("--config-dir" "${MINIO_CLIENT_CONFIGDIR}" "--quiet" "$@")
|
||||
local -r args=("--config-dir" "${MINIO_CLIENT_CONF_DIR}" "--quiet" "$@")
|
||||
local exec
|
||||
exec=$(command -v mc)
|
||||
|
||||
|
|
@ -85,9 +63,9 @@ minio_client_execute_timeout() {
|
|||
# Series of exports to be used as 'eval' arguments
|
||||
#########################
|
||||
minio_client_configure_server() {
|
||||
if [[ -n "$MINIO_SERVER_HOST" ]] && [[ -n "$MINIO_SERVER_ACCESS_KEY" ]] && [[ -n "$MINIO_SERVER_SECRET_KEY" ]]; then
|
||||
if [[ -n "$MINIO_SERVER_HOST" ]] && [[ -n "$MINIO_SERVER_ROOT_USER" ]] && [[ -n "$MINIO_SERVER_ROOT_PASSWORD" ]]; then
|
||||
info "Adding Minio host to 'mc' configuration..."
|
||||
minio_client_execute config host add minio "${MINIO_SERVER_SCHEME}://${MINIO_SERVER_HOST}:${MINIO_SERVER_PORT_NUMBER}" "${MINIO_SERVER_ACCESS_KEY}" "${MINIO_SERVER_SECRET_KEY}"
|
||||
minio_client_execute config host add minio "${MINIO_SERVER_SCHEME}://${MINIO_SERVER_HOST}:${MINIO_SERVER_PORT_NUMBER}" "${MINIO_SERVER_ROOT_USER}" "${MINIO_SERVER_ROOT_PASSWORD}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -100,5 +78,5 @@ minio_client_configure_server() {
|
|||
#########################
|
||||
minio_client_configure_local() {
|
||||
info "Adding local Minio host to 'mc' configuration..."
|
||||
minio_client_execute config host add local "${MINIO_SERVER_SCHEME}://localhost:${MINIO_SERVER_PORT_NUMBER}" "${MINIO_SERVER_ACCESS_KEY}" "${MINIO_SERVER_SECRET_KEY}" >/dev/null 2>&1
|
||||
minio_client_execute config host add local "${MINIO_SERVER_SCHEME}://localhost:${MINIO_SERVER_PORT_NUMBER}" "${MINIO_SERVER_ROOT_USER}" "${MINIO_SERVER_ROOT_PASSWORD}" >/dev/null 2>&1
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,62 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Environment configuration for minio-client
|
||||
|
||||
# The values for all environment variables will be set in the below order of precedence
|
||||
# 1. Custom environment variables defined below after Bitnami defaults
|
||||
# 2. Constants defined in this file (environment variables with no default), i.e. BITNAMI_ROOT_DIR
|
||||
# 3. Environment variables overridden via external files using *_FILE variables (see below)
|
||||
# 4. Environment variables set externally (i.e. current Bash context/Dockerfile/userdata)
|
||||
|
||||
# Load logging library
|
||||
. /opt/bitnami/scripts/liblog.sh
|
||||
|
||||
export BITNAMI_ROOT_DIR="/opt/bitnami"
|
||||
export BITNAMI_VOLUME_DIR="/bitnami"
|
||||
|
||||
# Logging configuration
|
||||
export MODULE="${MODULE:-minio-client}"
|
||||
export BITNAMI_DEBUG="${BITNAMI_DEBUG:-false}"
|
||||
|
||||
# By setting an environment variable matching *_FILE to a file path, the prefixed environment
|
||||
# variable will be overridden with the value specified in that file
|
||||
minio_client_env_vars=(
|
||||
MINIO_SERVER_HOST
|
||||
MINIO_SERVER_PORT_NUMBER
|
||||
MINIO_SERVER_SCHEME
|
||||
MINIO_SERVER_ROOT_USER
|
||||
MINIO_SERVER_ROOT_PASSWORD
|
||||
MINIO_CLIENT_ACCESS_KEY
|
||||
MINIO_CLIENT_SECRET_KEY
|
||||
)
|
||||
for env_var in "${minio_client_env_vars[@]}"; do
|
||||
file_env_var="${env_var}_FILE"
|
||||
if [[ -n "${!file_env_var:-}" ]]; then
|
||||
if [[ -r "${!file_env_var:-}" ]]; then
|
||||
export "${env_var}=$(< "${!file_env_var}")"
|
||||
unset "${file_env_var}"
|
||||
else
|
||||
warn "Skipping export of '${env_var}'. '${!file_env_var:-}' is not readable."
|
||||
fi
|
||||
fi
|
||||
done
|
||||
unset minio_client_env_vars
|
||||
|
||||
# Paths
|
||||
export MINIO_CLIENT_BASE_DIR="${BITNAMI_ROOT_DIR}/minio-client"
|
||||
export MINIO_CLIENT_BIN_DIR="${MINIO_CLIENT_BASE_DIR}/bin"
|
||||
export MINIO_CLIENT_CONF_DIR="/.mc"
|
||||
export PATH="${MINIO_CLIENT_BIN_DIR}:${PATH}"
|
||||
|
||||
# MinIO Client configuration
|
||||
export MINIO_SERVER_HOST="${MINIO_SERVER_HOST:-}"
|
||||
export MINIO_SERVER_PORT_NUMBER="${MINIO_SERVER_PORT_NUMBER:-9000}"
|
||||
export MINIO_SERVER_SCHEME="${MINIO_SERVER_SCHEME:-http}"
|
||||
|
||||
# MinIO Client security
|
||||
MINIO_SERVER_ROOT_USER="${MINIO_SERVER_ROOT_USER:-"${MINIO_CLIENT_ACCESS_KEY:-}"}"
|
||||
export MINIO_SERVER_ROOT_USER="${MINIO_SERVER_ROOT_USER:-}"
|
||||
MINIO_SERVER_ROOT_PASSWORD="${MINIO_SERVER_ROOT_PASSWORD:-"${MINIO_CLIENT_SECRET_KEY:-}"}"
|
||||
export MINIO_SERVER_ROOT_PASSWORD="${MINIO_SERVER_ROOT_PASSWORD:-}"
|
||||
|
||||
# Custom environment variables may be defined below
|
||||
|
|
@ -9,6 +9,7 @@ set -o pipefail
|
|||
|
||||
# Load libraries
|
||||
. /opt/bitnami/scripts/libbitnami.sh
|
||||
. /opt/bitnami/scripts/liblog.sh
|
||||
|
||||
print_welcome_page
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@
|
|||
. /opt/bitnami/scripts/libfs.sh
|
||||
. /opt/bitnami/scripts/libminioclient.sh
|
||||
|
||||
# Load MinIO Client environment variables
|
||||
eval "$(minio_client_env)"
|
||||
# Load MinIO Client environment
|
||||
. /opt/bitnami/scripts/minio-client-env.sh
|
||||
|
||||
for dir in "$MINIO_CLIENT_BASEDIR" "$MINIO_CLIENT_CONFIGDIR"; do
|
||||
for dir in "$MINIO_CLIENT_BASE_DIR" "$MINIO_CLIENT_CONF_DIR"; do
|
||||
ensure_dir_exists "$dir"
|
||||
done
|
||||
chmod -R g+rwX "$MINIO_CLIENT_BASEDIR" "$MINIO_CLIENT_CONFIGDIR"
|
||||
chmod -R g+rwX "$MINIO_CLIENT_BASE_DIR" "$MINIO_CLIENT_CONF_DIR"
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@ set -o pipefail
|
|||
. /opt/bitnami/scripts/libos.sh
|
||||
. /opt/bitnami/scripts/libminioclient.sh
|
||||
|
||||
# Load MinIO Client environment variables
|
||||
eval "$(minio_client_env)"
|
||||
# Load MinIO Client environment
|
||||
. /opt/bitnami/scripts/minio-client-env.sh
|
||||
|
||||
# Constants
|
||||
EXEC=$(command -v mc)
|
||||
ARGS=("--config-dir" "${MINIO_CLIENT_CONFIGDIR}" "$@")
|
||||
ARGS=("--config-dir" "${MINIO_CLIENT_CONF_DIR}" "$@")
|
||||
|
||||
if am_i_root; then
|
||||
exec gosu "${MINIO_CLIENT_DAEMON_USER}" "${EXEC}" "${ARGS[@]}"
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ set -o pipefail
|
|||
. /opt/bitnami/scripts/libnet.sh
|
||||
. /opt/bitnami/scripts/libminioclient.sh
|
||||
|
||||
# Load MinIO Client environment variables
|
||||
eval "$(minio_client_env)"
|
||||
# Load MinIO Client environment
|
||||
. /opt/bitnami/scripts/minio-client-env.sh
|
||||
|
||||
# Configure MinIO Client to use a MinIO server
|
||||
minio_client_configure_server
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
# What is Bitnami Object Storage Client based on MinIO(R)?
|
||||
# Bitnami Docker Image for MinIO(R) Client
|
||||
|
||||
## What is Bitnami Object Storage Client based on MinIO(R)?
|
||||
|
||||
> This software listing is packaged and published by Bitnami. MinIO(R) Client is a Golang CLI tool that offers alternatives for ls, cp, mkdir, diff, and rsync commands for filesystems and object storage systems.
|
||||
|
||||
|
|
@ -6,20 +8,20 @@
|
|||
|
||||
Disclaimer: All software products, projects and company names are trademark(TM) or registered(R) trademarks of their respective holders, and use of them does not imply any affiliation or endorsement. This software is licensed to you subject to one or more open source licenses and VMware provides the software on an AS-IS basis. MinIO(R) is a registered trademark of the MinIO, Inc. in the US and other countries. Bitnami is not affiliated, associated, authorized, endorsed by, or in any way officially connected with MinIO, Inc. MinIO(R) is licensed under GNU AGPL v3.0.
|
||||
|
||||
# TL;DR
|
||||
## TL;DR
|
||||
|
||||
```console
|
||||
$ docker run --name minio-client bitnami/minio-client:latest
|
||||
```
|
||||
|
||||
## Docker Compose
|
||||
### Docker Compose
|
||||
|
||||
```console
|
||||
$ curl -sSL https://raw.githubusercontent.com/bitnami/bitnami-docker-minio-client/master/docker-compose.yml > docker-compose.yml
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
# Why use Bitnami Images?
|
||||
## Why use Bitnami Images?
|
||||
|
||||
* Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.
|
||||
* With Bitnami images the latest bug fixes and features are available as soon as possible.
|
||||
|
|
@ -30,20 +32,20 @@ $ docker-compose up -d
|
|||
|
||||
> This [CVE scan report](https://quay.io/repository/bitnami/minio-client?tab=tags) contains a security report with all open CVEs. To get the list of actionable security issues, find the "latest" tag, click the vulnerability report link under the corresponding "Security scan" field and then select the "Only show fixable" filter on the next page.
|
||||
|
||||
# Why use a non-root container?
|
||||
## Why use a non-root container?
|
||||
|
||||
Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers [in our docs](https://docs.bitnami.com/tutorials/work-with-non-root-containers/).
|
||||
|
||||
# Supported tags and respective `Dockerfile` links
|
||||
## Supported tags and respective `Dockerfile` links
|
||||
|
||||
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/).
|
||||
|
||||
|
||||
* [`2021`, `2021-debian-10`, `2021.10.7`, `2021.10.7-debian-10-r11`, `latest` (2021/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-minio/blob/2021.10.7-debian-10-r11/2021/debian-10/Dockerfile)
|
||||
* [`2021`, `2021-debian-10`, `2021.10.7`, `2021.10.7-debian-10-r12`, `latest` (2021/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-minio/blob/2021.10.7-debian-10-r12/2021/debian-10/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/minio-client GitHub repo](https://github.com/bitnami/bitnami-docker-minio-client).
|
||||
|
||||
# Get this image
|
||||
## Get this image
|
||||
|
||||
The recommended way to get the Bitnami MinIO(R) Client Docker Image is to pull the prebuilt image from the [Docker Hub Registry](https://hub.docker.com/r/bitnami/minio-client).
|
||||
|
||||
|
|
@ -63,76 +65,82 @@ If you wish, you can also build the image yourself.
|
|||
$ docker build -t bitnami/minio-client:latest 'https://github.com/bitnami/bitnami-docker-minio-client.git#master:2021/debian-10'
|
||||
```
|
||||
|
||||
# Connecting to other containers
|
||||
## Connecting to other containers
|
||||
|
||||
Using [Docker container networking](https://docs.docker.com/engine/userguide/networking/), a MinIO(R) Client can be used to access other running containers such as [MinIO(R) server](https://github.com/bitnami/bitnami-docker-minio).
|
||||
|
||||
Containers attached to the same network can communicate with each other using the container name as the hostname.
|
||||
|
||||
## Using the Command Line
|
||||
### Using the Command Line
|
||||
|
||||
In this example, we will create a MinIO(R) Client container that will connect to a MinIO(R) server container that is running on the same docker network.
|
||||
|
||||
### Step 1: Create a network
|
||||
#### Step 1: Create a network
|
||||
|
||||
```console
|
||||
$ docker network create app-tier --driver bridge
|
||||
```
|
||||
|
||||
### Step 2: Launch the MinIO(R) server container
|
||||
#### Step 2: Launch the MinIO(R) server container
|
||||
|
||||
Use the `--network app-tier` argument to the `docker run` command to attach the MinIO(R) container to the `app-tier` network.
|
||||
|
||||
```console
|
||||
$ docker run -d --name minio-server \
|
||||
--env MINIO_ACCESS_KEY="minio-access-key" \
|
||||
--env MINIO_SECRET_KEY="minio-secret-key" \
|
||||
--env MINIO_ROOT_USER="minio-root-user" \
|
||||
--env MINIO_ROOT_PASSWORD="minio-root-pass" \
|
||||
--network app-tier \
|
||||
bitnami/minio:latest
|
||||
```
|
||||
|
||||
### Step 3: Launch your MinIO(R) Client container
|
||||
#### Step 3: Launch your MinIO(R) Client container
|
||||
|
||||
Finally we create a new container instance to launch the MinIO(R) client and connect to the server created in the previous step. In this example, we create a new bucket in the MinIO(R) storage server:
|
||||
|
||||
```console
|
||||
$ docker run --rm --name minio-client \
|
||||
--env MINIO_SERVER_HOST="minio" \
|
||||
--env MINIO_SERVER_ACCESS_KEY="minio-access-key" \
|
||||
--env MINIO_SERVER_SECRET_KEY="minio-secret-key" \
|
||||
--env MINIO_SERVER_ROOT_USER="minio-root-user" \
|
||||
--env MINIO_SERVER_ROOT_PASSWORD="minio-root-pass" \
|
||||
--network app-tier \
|
||||
bitnami/minio-client \
|
||||
mb minio/my-bucket
|
||||
```
|
||||
|
||||
# Configuration
|
||||
## Configuration
|
||||
|
||||
MinIO(R) Client (`mc`) can be setup so it is already configured to point to a specific MinIO(R) server by providing the environment variables below:
|
||||
|
||||
- `MINIO_SERVER_HOST`: MinIO(R) server host.
|
||||
- `MINIO_SERVER_PORT_NUMBER`: MinIO(R) server port. Default: `9000`.
|
||||
- `MINIO_SERVER_SCHEME`: MinIO(R) server scheme. Default: `http`.
|
||||
- `MINIO_SERVER_ACCESS_KEY`: MinIO(R) server Access Key. Must be common on every node.
|
||||
- `MINIO_SERVER_SECRET_KEY`: MinIO(R) server Secret Key. Must be common on every node.
|
||||
- `MINIO_SERVER_ROOT_USER`: MinIO(R) server root user name. Must be common on every node.
|
||||
- `MINIO_SERVER_ROOT_PASSWORD`: Password for MinIO(R) server root user. Must be common on every node.
|
||||
|
||||
For instance, use the command below to create a new bucket in the MinIO(R) Server `my.minio.domain`:
|
||||
|
||||
```console
|
||||
$ docker run --rm --name minio-client \
|
||||
--env MINIO_SERVER_HOST="my.minio.domain" \
|
||||
--env MINIO_SERVER_ACCESS_KEY="minio-access-key" \
|
||||
--env MINIO_SERVER_SECRET_KEY="minio-secret-key" \
|
||||
--env MINIO_SERVER_ROOT_USER="minio-root-user" \
|
||||
--env MINIO_SERVER_ROOT_PASSWORD="minio-root-pass" \
|
||||
bitnami/minio-client \
|
||||
mb minio/my-bucket
|
||||
```
|
||||
|
||||
Find more information about the client configuration in the [MinIO(R) Client documentation](https://docs.min.io/docs/minio-admin-complete-guide.html).
|
||||
|
||||
# Contributing
|
||||
## Notable Changes
|
||||
|
||||
### 2021.10.7-debian-10-r11
|
||||
|
||||
- The `MINIO_SERVER_ACCESS_KEY` and `MINIO_SERVER_SECRET_KEY`, environment variables were deprecated in favor of `MINIO_SERVER_ROOT_USER` and `MINIO_SERVER_ROOT_PASSWORD`, respectively, so it's aligned with the [current terminology](https://docs.min.io/minio/baremetal/security/minio-identity-management/user-management.html#minio-users-root).
|
||||
|
||||
## Contributing
|
||||
|
||||
We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/bitnami-docker-minio-client/issues), or submit a [pull request](https://github.com/bitnami/bitnami-docker-minio-client/pulls) with your contribution.
|
||||
|
||||
# Issues
|
||||
## Issues
|
||||
|
||||
If you encountered a problem running this container, you can file an [issue](https://github.com/bitnami/bitnami-docker-minio-client/issues/new). For us to provide better support, be sure to include the following information in your issue:
|
||||
|
||||
|
|
@ -142,7 +150,7 @@ If you encountered a problem running this container, you can file an [issue](htt
|
|||
- Version of this container (`echo $BITNAMI_IMAGE_VERSION` inside the container)
|
||||
- The command you used to run the container, and any relevant output you saw (masking any sensitive information)
|
||||
|
||||
# License
|
||||
## License
|
||||
|
||||
Copyright (c) 2021 Bitnami
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue