Skip to content
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

Merged
merged 4 commits into from Dec 2, 2017

Conversation

tonistiigi
Copy link
Member

@tonistiigi tonistiigi commented Nov 30, 2017

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

edit: Added more commits to same PR for testing:

  • working with local files
  • local exporter
  • containerd exporter

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi force-pushed the dockerfile-tests branch 2 times, most recently from a7c68a9 to c29f08d Compare December 1, 2017 01:34
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")
Copy link
Member

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?)

err = cmd.Run()
require.NoError(t, err)

cmd = exec.Command("ctr", "--address", cdAddress, "--namespace=buildkit", "images", "ls")
Copy link
Member

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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: ContainerD -> Containerd?

@tonistiigi
Copy link
Member Author

@AkihiroSuda updated

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@AkihiroSuda AkihiroSuda merged commit 9653c60 into moby:master Dec 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants