-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
example: build-using-dockerfile #223
Conversation
p.s. I know dockerfile is being removed from this repo (#163), but I think having this tool in this repo is ok for dev&demo purpose. |
Couldn't this be a wrapper outside the tree that we could promote from here. Not sure if we want to add helper commands that we know we will break in the future. Or maybe we could have a way to extend |
WDYT about having this command in the
If |
@AkihiroSuda
Yes, I agree as it would be a stretch at the moment. We would need to have multiple use cases of such extensions to consider it. |
5fdad00
to
742f567
Compare
Updated PR, but plz feel free to close if this PR is not right.
Because the Go packages are not stabilized. |
Ah, I thought this would just call |
Can you update this to just produce the Docker tarball after #228 . So it works with Also, I'm not sure about the readme changes. Maybe we can do this in separate PR. I'm thinking moving the |
This command mimics `docker build` CLI flags so that Docker users can more easily get started with BuildKit. Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
updated |
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.
Can you add a check to hack/test
to confirm that this builds when we change anything(actually should do that for all the examples).
Not in this PR: Do you think we should change SolveOpt
to take io.WriteCloser
as output to avoid this tmpTar
thing. The "output" isn't a real exporter-opt
anyway as it is handled on the client side. buildctl
could detect it and make it into a typed structure.
@AkihiroSuda Actually, no need. LGTM |
👍 |
} | ||
|
||
func action(clicontext *cli.Context) error { | ||
if tag := clicontext.String("tag"); tag == "" { |
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.
Why is this a required value?
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.
It is just required for exportation.
We can remove it later.
This subcommand mimics
docker build
CLI flags so that Docker users canmore easily get started with BuildKit.
The command name was inspired by
buildah bud
.Signed-off-by: Akihiro Suda suda.akihiro@lab.ntt.co.jp