A Docker image that wraps minio/mc:RELEASE.2025-03-12T17-29-24Z with the lux-env-loader-entrypoint utility, enabling MinIO Client (mc) to load environment variables from external secrets files at startup.
This image is designed for environments where secrets are delivered as JSON files (e.g., mounted from a Kubernetes secret or a cloud secrets manager) rather than as plain environment variables. The env-loader reads /secrets/*.json at startup, exports the key-value pairs as environment variables, and then delegates to the original mc entrypoint.
- The container starts with
env-loader-entrypoint.shas its entrypoint. - The entrypoint reads all
*.jsonfiles under/secrets/and exports each top-level key as an environment variable. - Control is then handed to
mcas the default command.
make build-env-loaderTo build and push:
make env-loaderOverride the registry or version:
make env-loader REGISTRY=my-registry MINIO_MC_VERSION=RELEASE.2025-03-12T17-29-24ZBase image: minio/mc:RELEASE.2025-03-12T17-29-24Z
Env-loader source: us-docker.pkg.dev/hasura-ddn/ddn/lux-env-loader-entrypoint:20250508.rc1
Published image: us-docker.pkg.dev/hasura-ddn/ddn/minio-mc:RELEASE.2025-03-12T17-29-24Z-env-loader