Sign inSign up

tomvoboril/variable-swap

By tomvoboril

Updated over 4 years ago

Replace env-notated strings with their variables

Image
0

415

tomvoboril/variable-swap repository overview

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

Tag summary

Content type

Image

Digest

Size

23.1 MB

Last updated

over 4 years ago

docker pull tomvoboril/variable-swap