Skip to content

hasura/minio-env-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

minio-env-loader

A Docker image that wraps minio/minio:RELEASE.2024-01-18T22-51-28Z with the lux-env-loader-entrypoint utility, enabling MinIO 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 MinIO 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 minio 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_VERSION=RELEASE.2024-01-18T22-51-28Z

Image Reference

Base image: minio/minio:RELEASE.2024-01-18T22-51-28Z
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:RELEASE.2024-01-18T22-51-28Z-env-loader

Co-authors

Co-authored-by: Tomasz Skawinski tom@hasura.io

About

Minio image with env-loader support for external secrets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors