Skip to content

pihvi-io/docker-envsubst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker container for running envsubst

This container is used with Pihvi local development environment for rendering settings templates

Example

# Provide all variables
$ VARS='$TARGET_IP:$TARGET_HOST'
$ TARGET_IP=127.0.0.1
$ TARGET_HOST=localhost

# Create a template
$ echo "${TARGET_IP} ${TARGET_HOST}" > hosts.tmpl

# Provide all used envs in VARS variable and as separate envs
$ docker run --rm -it -e VARS=$VARS -e $TARGET_IP -e $TARGET_HOST pihvio/envsubst "$(cat hosts.tmpl)" > /tmp/etc/hosts

Maintainers

Onni Hakala

License

MIT

About

Docker image for running envsubst command

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages