-
Notifications
You must be signed in to change notification settings - Fork 41
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
Use build args to capture build time data #450
Comments
#388 implies that config variables are available during Docker builds, but that's certainly untrue. However, naively passing all config variables to Docker discourages,
So I'm wondering how we can pass secrets to Docker builds as well. I have an actual need for this, related to integrating Google Cloud SQL. |
@jayjun I think you're talking about something else different. This issue is talking about passing in build args when we build the component itself, not the app. Apps are certainly passed in envvars during the build. |
@bacongobbler Yes, config variables are mapped to the build pod's env variables. But running In fact, there's no way to add build-time environment variables until ARG was introduced. |
So, to clarify your request, you would like to have environment variables injected into the build environment when you are performing a If it is, can you open another ticket for that? That request is separate than what is requested here. |
This issue was moved to teamhephy/builder#26 |
Acceptance Criteria:
--build-args
flag when runningdocker build
to pass in the following items (and more if needed)You will need to do the following in the dockerfile to persist the data into the image:
The text was updated successfully, but these errors were encountered: