Skip to content

hasura/minio-mc-env-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

minio-mc-env-loader

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.

Purpose

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.

How It Works

  1. The container starts with env-loader-entrypoint.sh as its entrypoint.
  2. The entrypoint reads all *.json files under /secrets/ and exports each top-level key as an environment variable.
  3. Control is then handed to mc as the default command.

Building Locally

make build-env-loader

To build and push:

make env-loader

Override the registry or version:

make env-loader REGISTRY=my-registry MINIO_MC_VERSION=RELEASE.2025-03-12T17-29-24Z

Image Reference

Base 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors