Replace env-notated strings with their variables
415
Replace env-notated strings with their variables
This simple image will use the envsubst command from the gettext package to replace all strings "annotated like variables" with the enviromentals passed into the container, or with existing variables injected by kubernetes etc.
The sample .env file defines new fortunes for the https://github.com/jhunt/o-fortuna sample fortune generator.
run with the following command:
docker run --rm --env-file variable-swap.env -v ${PWD}:/app tomvoboril/variable-swap
For a kubernetes example, see: https://github.com/tvoboril/file-injecternitiator
Content type
Image
Digest
Size
23.1 MB
Last updated
over 4 years ago
docker pull tomvoboril/variable-swap