Conversation
This commit adds the support build args: ``` build { use "docker" { dockerfile="./simple_project/Dockerfile" build_args=["TEST_PATH=.", "BIN_PATH_2=./.bin/app"] } } ```
@krantzinator Hello. I would like to receive feedback. What do you think? Can I add something? |
It would be great to get this merged. @briancain is there anything on the roadmap blocking this PR to get merged? |
Nothing blocking that I know of @AutomationD 😄 I'll get this reviewed soon by myself or someone from the team @psihachina , thanks for opening the PR! |
Hey @psihachina - I recommend fixing your branch and removing the |
86de692
to
cce5d1d
Compare
@briancain yes, did stupid 😄, but I seem to have fixed it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there @psihachina ! Thanks for opening a pull request for this. Had 1 comment about moving something, and also I'd like to make sure BuildArgs
is documented for the website. I couldn't push to your branch to update the PR because of permissions, so if you could, please add this to the docker/builder.go
file:
commit 4c3fbdf0f79094805abb2a1d7dcea2b9dbfde13c (HEAD -> DOCKER-BUILD-ARGS)
Author: Brian Cain <bcain@hashicorp.com>
Date: Mon May 3 13:11:27 2021 -0700
Include docstring of buildargs for docker plugin on website
diff --git a/builtin/docker/builder.go b/builtin/docker/builder.go
index 6b34c051..c3e21062 100644
--- a/builtin/docker/builder.go
+++ b/builtin/docker/builder.go
@@ -121,6 +121,12 @@ build {
),
)
+ doc.SetField(
+ "buildargs",
+ "An array of strings of build-time variables passed as build-arg to docker"+
+ "or img for the build step.",
+ )
+
return doc, nil
}
Thank you! 😄
I would suggest using a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO it still needs a little fix, but other than that LGTM
76820eb
to
434c928
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM to me now! Thanks for the changes 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there @psihachina , thanks for all the updates! I left some feedback based on the latest round of updates. Let me know if you have any more questions! Otherwise I'd say this is good to go 😄
434c928
to
7141094
Compare
7141094
to
f3930f8
Compare
Co-authored-by: Brian Cain <bcain@hashicorp.com>
Thank you @psihachina !! Looks great. Appreciate you taking the time to open this PR and thanks again for responding to all the PR feedback ❤️ |
This commit adds the support build args: