-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 env option to build_docker_image
build step
#10331
Comments
@serinamarie @desertaxle - Can I get your help triaging this one? Is it something you've already considered? Thank you! |
The If I understand correctly, the requested feature is to support Docker's BuildKit in I understand that BuildKit makes Docker image builds faster, which is a nice feature, but it shouldn't be blocking any users. If it blocks users or many users are requesting this, we can explore our options for adding BuildKit support. |
@desertaxle Apologies about the duplicate. This was specifically requested by a client attempting to build images with private libraries using BuildKit. I can advise them that this isn't supported and to use another method |
No worries @Bada-S! Feel free to add any details for their use case on the linked issue. If they absolutely need BuildKit, let us know and we can look into adding support. |
Looks like perhaps it's settable at the daemon level. Might be a viable alternative. |
Linking the relevant |
First check
Prefect Version
2.x
Describe the current behavior
The prefect deploy
build_docker_image
step does not support passing in an env variable. Exporting the variable prior to runningprefect deploy
or running a shell script to export the variable does not work either. For example, attempting to export the env var through therun_shell_script
step results in this errorFileNotFoundError: [Errno 2] No such file or directory: 'export'
Describe the proposed behavior
There are cases where it would be necessary to have an env variable set prior to building the image. Expected behavior would be to have an option to pass an env var(s) directly.
Example Use
Additional context
This issue is referring to a use case where
DOCKER_BUILDKIT
needs to be set prior to building the Docker imageThe text was updated successfully, but these errors were encountered: