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

add dockerfile and ci #5

Merged
merged 6 commits into from
Aug 22, 2022
Merged

add dockerfile and ci #5

merged 6 commits into from
Aug 22, 2022

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Aug 15, 2022

Adds Dockerfile and ci workflow.

Tests look broken:

$ docker buildx bake test
...
#14 4.007 === CONT  TestTitle
#14 4.007     load_test.go:187:
#14 4.007               Error Trace:    load_test.go:187
#14 4.007               Error:          Received unexpected error:
#14 4.007                               unexpected end of JSON input
#14 4.007               Test:           TestTitle
#14 4.007 --- FAIL: TestTitle (0.05s)
#14 4.007 === CONT  TestSingleArchManifest
#14 4.007     load_test.go:60:
#14 4.007               Error Trace:    load_test.go:60
#14 4.007               Error:          Received unexpected error:
#14 4.007                               unexpected end of JSON input
#14 4.007               Test:           TestSingleArchManifest
#14 4.007 --- FAIL: TestSingleArchManifest (0.05s)
#14 4.007 === CONT  TestMultiArchManifest
#14 4.007     load_test.go:136:
#14 4.007               Error Trace:    load_test.go:136
#14 4.007               Error:          Received unexpected error:
#14 4.007                               unexpected end of JSON input
#14 4.007               Test:           TestMultiArchManifest
#14 4.007 --- FAIL: TestMultiArchManifest (0.07s)
#14 4.007 FAIL
#14 4.007 coverage: 45.3% of statements
#14 4.007 FAIL  github.com/docker/go-imageinspect       0.073s
#14 4.007 ?     github.com/docker/go-imageinspect/cmd/imageinspect      [no test files]
#14 4.007 ?     github.com/docker/go-imageinspect/testutil      [no test files]
#14 4.007 FAIL

cc @tonistiigi

Signed-off-by: CrazyMax <[email protected]>
@tonistiigi
Copy link
Member

@crazy-max
Copy link
Member Author

@tonistiigi Looks good 👍

#12 [test 1/1] RUN --mount=type=bind,target=.     --mount=type=cache,target=/root/.cache     --mount=type=cache,target=/go/pkg/mod     go test -v -coverprofile=/tmp/coverage.txt -covermode=atomic ./...
#12 0.752 === RUN   TestSingleArchManifest
#12 0.752 === PAUSE TestSingleArchManifest
#12 0.752 === RUN   TestMultiArchManifest
#12 0.752 === PAUSE TestMultiArchManifest
#12 0.752 === RUN   TestTitle
#12 0.752 === PAUSE TestTitle
#12 0.752 === CONT  TestSingleArchManifest
#12 0.752 === CONT  TestTitle
#12 0.752 === CONT  TestMultiArchManifest
#12 0.752 === CONT  TestSingleArchManifest
#12 0.752     env.go:70: added blob sha256:cb35deae8cc30d76dd2a80eb21327c63f205ba8f2948df7eb3e57dfbab6d198f
#12 0.752 === CONT  TestTitle
#12 0.752     env.go:70: added blob sha256:58cc9abebfec4b5ee95157d060207f7bc302516e6d84a0d83a560a1f7ed00e6e
#12 0.752 === CONT  TestMultiArchManifest
#12 0.752     env.go:70: added blob sha256:cb35deae8cc30d76dd2a80eb21327c63f205ba8f2948df7eb3e57dfbab6d198f
#12 0.752 === CONT  TestTitle
#12 0.752     env.go:70: added blob sha256:01c3c614c2b014227e03b5ddbb8ac09fec66512b6490c457b8ca710513b076f4
#12 0.752     env.go:82: added tag docker.io/library/test:latest -> sha256:01c3c614c2b014227e03b5ddbb8ac09fec66512b6490c457b8ca710513b076f4
#12 0.752 === CONT  TestMultiArchManifest
#12 0.752     env.go:70: added blob sha256:ae835ab97611eb5f667503bb7ea928c01a8e5caea7bae2912e57742dcd9655c4
#12 0.752     env.go:70: added blob sha256:58cc9abebfec4b5ee95157d060207f7bc302516e6d84a0d83a560a1f7ed00e6e
#12 0.752     env.go:70: added blob sha256:2ca63b2f6cd33ff117e9ec5f48cd62e0bfc5f2fcf323e7e785b7cbb6c12eb502
#12 0.752 === CONT  TestSingleArchManifest
#12 0.752     env.go:70: added blob sha256:a5ce1ee5b87909d1a85a2df86a8c5880ee2b0a8553eac2b0a300bec0e2f20920
#12 0.752     env.go:82: added tag docker.io/library/test:latest -> sha256:a5ce1ee5b87909d1a85a2df86a8c5880ee2b0a8553eac2b0a300bec0e2f20920
#12 0.752 === CONT  TestMultiArchManifest
#12 0.752     env.go:70: added blob sha256:02934fef04dc77addbe304fb80c389a4eea5c53743c9654a63e1a48c59efba85
#12 0.752     env.go:82: added tag docker.io/library/test:latest -> sha256:02934fef04dc77addbe304fb80c389a4eea5c53743c9654a63e1a48c59efba85
#12 0.752 --- PASS: TestSingleArchManifest (0.05s)
#12 0.752 --- PASS: TestTitle (0.05s)
#12 0.752 --- PASS: TestMultiArchManifest (0.08s)
#12 0.752 PASS
#12 0.752 coverage: 44.4% of statements
#12 0.752 ok    github.com/docker/go-imageinspect       0.082s  coverage: 44.4% of statements
#12 0.752 ?     github.com/docker/go-imageinspect/cmd/imageinspect      [no test files]
#12 0.752 ?     github.com/docker/go-imageinspect/testutil      [no test files]
#12 DONE 0.8s

#13 [test-coverage 1/1] COPY --from=test /tmp/coverage.txt /coverage.txt
#13 DONE 0.1s

#14 exporting to client
#14 copying files 9.09kB 0.0s done
#14 DONE 0.0s

@tonistiigi tonistiigi merged commit f893912 into docker:main Aug 22, 2022
@crazy-max crazy-max deleted the dockerfile-ci branch August 22, 2022 19:23
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.

2 participants