-
Notifications
You must be signed in to change notification settings - Fork 269
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
Blank build args are handled incorrectly #1023
Comments
Thanks @Eronarn! That looks like an easy fix, we'll get on it. |
Also some extra context, Generally though, using the Docker build args system for secret management is less ideal. It'd be great to see some documentation on if there's any patterns for build-time secrets in Garden; or if buildkit-based secrets are on the roadmap. |
Yeah that makes sense. The BuildKit stuff going stable is generally what we've been holding out for. It's been opt-in for a while so we've hesitated to build around it, but we'll be happy to support BuildKit secrets. Incidentally, just noticed that Docker 19.03 is out. BuildKit still appears to be opt-in, but it's worth checking in on it again. |
We've been following Buildkit on our end for quite some time. For us the blocker for adopting Buildkit is not the opt-in nature, but specifically the lack of support for layer caching use cases and the inability to push Buildkit caches to AWS ECR: |
Bug
Current Behavior
Setting a non-valued build arg like this:
Or explicitly, like this:
results in a Docker command incorrectly emitting
"null"
as a string like this:Expected behavior
The expected Docker command is instead:
This is special syntax in Docker builds: https://docs.docker.com/engine/reference/commandline/build/
Your environment
The text was updated successfully, but these errors were encountered: