[bitnami/minio-client] Release 2023.4.12-debian-11-r1 (#30440)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot 2023-04-16 12:54:42 +02:00 committed by GitHub
parent 395789fac3
commit 2dc91daf8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 5 deletions

View File

@ -3,10 +3,10 @@ FROM docker.io/bitnami/minideb:bullseye
ARG TARGETARCH
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
org.opencontainers.image.created="2023-04-13T10:15:14Z" \
org.opencontainers.image.created="2023-04-16T10:40:40Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="2023.4.12-debian-11-r0" \
org.opencontainers.image.ref.name="2023.4.12-debian-11-r1" \
org.opencontainers.image.title="minio-client" \
org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="2023.4.12"

View File

@ -34,7 +34,11 @@ minio_client_execute() {
local exec
exec=$(command -v mc)
"${exec}" "${args[@]}"
if am_i_root; then
gosu "$MINIO_DAEMON_USER" "${exec}" "${args[@]}"
else
"${exec}" "${args[@]}"
fi
}
########################
@ -50,7 +54,11 @@ minio_client_execute_timeout() {
local exec
exec=$(command -v mc)
timeout 5s "${exec}" "${args[@]}"
if am_i_root; then
timeout 5s gosu "$MINIO_DAEMON_USER" "${exec}" "${args[@]}"
else
timeout 5s "${exec}" "${args[@]}"
fi
}
########################

View File

@ -22,6 +22,7 @@ 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_CLIENT_CONF_DIR
MINIO_SERVER_HOST
MINIO_SERVER_PORT_NUMBER
MINIO_SERVER_SCHEME
@ -48,7 +49,7 @@ 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 MINIO_CLIENT_CONF_DIR="${MINIO_CLIENT_CONF_DIR:-/.mc}"
export PATH="${MINIO_CLIENT_BIN_DIR}:${PATH}"
# MinIO Client configuration
@ -64,4 +65,8 @@ MINIO_SERVER_ROOT_PASSWORD="${MINIO_SERVER_ROOT_PASSWORD:-"${MINIO_CLIENT_SECRET
MINIO_SERVER_ROOT_PASSWORD="${MINIO_SERVER_ROOT_PASSWORD:-"${MINIO_SERVER_SECRET_KEY:-}"}"
export MINIO_SERVER_ROOT_PASSWORD="${MINIO_SERVER_ROOT_PASSWORD:-}"
# System users (when running with a privileged user)
export MINIO_DAEMON_USER="minio"
export MINIO_DAEMON_GROUP="minio"
# Custom environment variables may be defined below