Load docker secrets into ENV
Project description
docker-secrets-dotenv
docker-secrets-dotenv takes all your docker secrets files, and sets them up in the environment.
Getting Started
pip install docker-secrets-dotenv
To use docker-secrets-dotenv in your project run load_secrets
as the start of your application:
from docker_secrets import load_secrets
load_secrets()
# This will load all secret files found in /run/secrets into the running environment
load_secrets
will take the name of each secret file to set as the variable key and read the file contents as the value. It will overwrite existing environment variables.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for docker_secrets_dotenv-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 932703969847eaa645141e4daa0a572d400acd86f459c54b483ee06495c3801e |
|
MD5 | 640d850c6105d9188bea2e996e8dc306 |
|
BLAKE2b-256 | bd2f1236baf25ba348ba9039c29f05e5349b0924b1295943fea9e5e64d104ed8 |
Close
Hashes for docker_secrets_dotenv-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af666b23475245605fe3d12c8415b5623b5b767d308087ed686104cd56ab7ff2 |
|
MD5 | b0afc3e0ee614ba3a7033cec112c6bf1 |
|
BLAKE2b-256 | d304ec0cf02cb2d12b1def68db26e63ee4405fccf9ede0b779f7c5e2b72e6ebd |