From b8d62a80689f626f99e5f3e30f0915de6a85b27a Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 26 Oct 2023 10:52:10 -0700 Subject: [PATCH] add MC_CONFIG_DIR to use mc from writable path (#18317) `mc` will currenly fail inside MinIO pod without `--config-dir` option, instead use the ENV to avoid passing flags. --- Dockerfile.hotfix | 1 + Dockerfile.release | 1 + Dockerfile.release.fips | 1 + 3 files changed, 3 insertions(+) diff --git a/Dockerfile.hotfix b/Dockerfile.hotfix index e650cc048..4d2340b31 100644 --- a/Dockerfile.hotfix +++ b/Dockerfile.hotfix @@ -17,6 +17,7 @@ ENV MINIO_ACCESS_KEY_FILE=access_key \ MINIO_KMS_SECRET_KEY_FILE=kms_master_key \ MINIO_UPDATE_MINISIGN_PUBKEY="RWTx5Zr1tiHQLwG9keckT0c45M3AGeHD6IvimQHpyRywVWGbP1aVSGav" \ MINIO_CONFIG_ENV_FILE=config.env \ + MC_CONFIG_DIR=/tmp/.mc \ PATH=/opt/bin:$PATH COPY dockerscripts/verify-minio.sh /usr/bin/verify-minio.sh diff --git a/Dockerfile.release b/Dockerfile.release index 3ae4f68db..ab721e37d 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -19,6 +19,7 @@ ENV MINIO_ACCESS_KEY_FILE=access_key \ MINIO_KMS_SECRET_KEY_FILE=kms_master_key \ MINIO_UPDATE_MINISIGN_PUBKEY="RWTx5Zr1tiHQLwG9keckT0c45M3AGeHD6IvimQHpyRywVWGbP1aVSGav" \ MINIO_CONFIG_ENV_FILE=config.env \ + MC_CONFIG_DIR=/tmp/.mc \ PATH=/opt/bin:$PATH COPY dockerscripts/verify-minio.sh /usr/bin/verify-minio.sh diff --git a/Dockerfile.release.fips b/Dockerfile.release.fips index 4415f0896..21b007e18 100644 --- a/Dockerfile.release.fips +++ b/Dockerfile.release.fips @@ -19,6 +19,7 @@ ENV MINIO_ACCESS_KEY_FILE=access_key \ MINIO_KMS_SECRET_KEY_FILE=kms_master_key \ MINIO_UPDATE_MINISIGN_PUBKEY="RWTx5Zr1tiHQLwG9keckT0c45M3AGeHD6IvimQHpyRywVWGbP1aVSGav" \ MINIO_CONFIG_ENV_FILE=config.env \ + MC_CONFIG_DIR=/tmp/.mc \ PATH=/opt/bin:$PATH COPY dockerscripts/verify-minio.sh /usr/bin/verify-minio.sh