Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add output file option? #17

Open
simonvanderveldt opened this issue Sep 24, 2015 · 5 comments
Open

Add output file option? #17

simonvanderveldt opened this issue Sep 24, 2015 · 5 comments

Comments

@simonvanderveldt
Copy link

Hello Kreuzwerker team,

First of all thanks for the nice and simple tool! :)

I want to ask you guys for your opinion on something:
I'm using envplate for some of my personal projects and for one of them I use one Docker image which I volume mount a different config in depending on what I want to use the container for. This config contains a couple of variables that I want to template using envplate. Each of the configs gets used multiple times but with different values.
Since I mount these into the container running envplate on them changes the actual file on the host :P

I'm wondering what you guys think about this and if it would a reasonable addition to envplate.
Obvious workaround is to volume mount to a different filename and do a cp first (or to create multiple images with the config built into them)

@yawn
Copy link
Contributor

yawn commented Sep 28, 2015

I think it's reasonable. Do you want to submit a PR?

@rustjson
Copy link

rustjson commented Feb 1, 2016

👍

It nice to have this. or make -d options output to stdout rather than output to stderr.
Here is my PR

yawn added a commit that referenced this issue Feb 4, 2016
yawn added a commit that referenced this issue Feb 4, 2016
@yawn
Copy link
Contributor

yawn commented Feb 18, 2016

I've released a RC for 1.0.0. Feel free to test and close if this fixes your issue. And thanks for contributing!

@yawn
Copy link
Contributor

yawn commented May 20, 2016

Ping @RustJason

@funkyfuture
Copy link

funkyfuture commented Oct 25, 2016

it'd be also great if envplate would read from stdin:

cat templates/foo.conf | ep -d > /etc/foo.conf

however, -d seems redundant in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants