-
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
frontend: add some dockerfile integration tests #183
Conversation
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
ad197c4
to
bcc98bf
Compare
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
a7c68a9
to
c29f08d
Compare
cmd/buildctl/build_test.go
Outdated
rdr, err := marshal(st.Root()) | ||
require.NoError(t, err) | ||
|
||
cmd := sb.Cmd("build --no-progress --exporter=image --exporter-opt name=docker.io/moby/imageexporter:test") |
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.
nit: Do we have an access for https://hub.docker.com/u/moby/ ?
If not, could you use another name? (example.com/moby/imageexporter:test
?)
cmd/buildctl/build_test.go
Outdated
err = cmd.Run() | ||
require.NoError(t, err) | ||
|
||
cmd = exec.Command("ctr", "--address", cdAddress, "--namespace=buildkit", "images", "ls") |
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 we use containerd client library rather than ctr
, which is unsupported and hard to parse the result.
address string | ||
} | ||
|
||
func (s *cdsandbox) ContainerDAddress() string { |
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.
nit: ContainerD -> Containerd?
c29f08d
to
09ef88c
Compare
@AkihiroSuda updated |
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
09ef88c
to
97b773a
Compare
Signed-off-by: Tonis Tiigi tonistiigi@gmail.com
edit: Added more commits to same PR for testing: