Skip to content

Simple Docker container that provides the envsubst executable that can be used when expanding environment variables in strings or files.

License

Notifications You must be signed in to change notification settings

synalabs/envsubst

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

envsubst

This is a simple Docker image that provides the envsubst executable which can be used when expanding environment variables in strings or files.

Example 1 - string

docker container run --rm -it -e var=value bhgedigital/envsubst sh -c "echo This container has \$var | envsubst"

output:

This container has value

Example 2 - file

docker container run --rm -it -e var=value -v $(pwd):/wd bhgedigital/envsubst sh -c "envsubst < /wd/file.txt > file-subst.txt" && cat file-subst.txt

output:

This container has value

About

Simple Docker container that provides the envsubst executable that can be used when expanding environment variables in strings or files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published