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

document how to consume secrets via docker #307

Open
edublancas opened this issue Jan 29, 2025 · 2 comments
Open

document how to consume secrets via docker #307

edublancas opened this issue Jan 29, 2025 · 2 comments

Comments

@edublancas
Copy link
Contributor

from @idomic:

https://docs.cloud.ploomber.io/en/latest/user-guide/dockerfile.html
The guide above only mentions not to store secrets in the img, but it doesn't say how I consume a secret via the dockerfile.

@edublancas
Copy link
Contributor Author

@idomic I'm a bit confused about this issue.

secrets are not available in the docker build step, they're only available at runtime, right?

so I'm unsure what the docs should say

@idomic
Copy link
Contributor

idomic commented Jan 29, 2025

Right, it should specify how users can consume secrets in their docker app.

Something along the lines of you add a secret like you'd normally do in the frameworks, and then in your docker file do X Y Z, and you should have that as an env variable available to your app.

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

2 participants