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

Passthrough configuration #215

Open
rhetzler opened this issue Jul 17, 2019 · 0 comments
Open

Passthrough configuration #215

rhetzler opened this issue Jul 17, 2019 · 0 comments

Comments

@rhetzler
Copy link

rhetzler commented Jul 17, 2019

In some situations, such as build and ad-hoc testing environments, developers may which to validate containers and functionality without going through the overhead of setting up or configuring vault (or consul). Without it being an optional capability, some developers would rather not use it at all

envconsul makes a great container entrypoint and hits that niche perfectly, however teams I work with are refusing to add it to their images because they can no longer play with their containers in development and testing sandboxes without Vault/Consul setup overhead (where they might manually specify the environment variables envconsul is expected to provide).

Can a "passthrough" mode be established, where if a specific config flag is set, it simply execs the primary container process without talking to consul or vault? This allows me to drive envconsul adoption by ensuring it is added to the entrypoint of the containers for teams i support.

Thanks!

Configuration

{
   passthrough = true
}

Dockerfile

ENTRYPOINT ["/path/to/envconsul", "-config", "/etc/envconsul/config.hcl", "--"]

Command (example, Docker)

docker run -v ./config.hcl:/etc/envconsul/config.hcl myimage:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants