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 licenses for binary/image #73

Merged
merged 3 commits into from
Sep 13, 2021
Merged

Conversation

kuizhiqing
Copy link
Collaborator

generate licenses for golang binary and add it to image

FROM bitnami/minideb:stretch
WORKDIR /
COPY --from=builder /workspace/manager .
COPY third_party/licenses/licenses.csv /workspace/licenses.csv
Copy link

Choose a reason for hiding this comment

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

Note, you need to call go-licenses save to save the actual full text licenses into the image.
Use https://github.com/kubeflow/pipelines/blob/e58aff78f67b32d0ee2125b2678abf0c3fa4073a/v2/container/launcher/Dockerfile#L36-L37 as an example.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks to your help. I've fix it.

github.com/cespare/xxhash/v2, https://github.com/cespare/xxhash/blob/v2.1.1/LICENSE.txt, MIT
github.com/coreos/go-semver, https://github.com/coreos/go-semver/blob/v0.3.0/LICENSE, Apache-2.0
github.com/coreos/go-systemd/v22, https://github.com/coreos/go-systemd/blob/v22.3.2/LICENSE, Apache-2.0
github.com/davecgh/go-spew, https://github.com/davecgh/go-spew/blob/v1.1.1/LICENSE, ISC
Copy link

Choose a reason for hiding this comment

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

There are too many entries for go-spew, gogo/protobuf, ...
They are false positives detected by the tool, because these repos have a license header on every file.

In these cases, you should override for these modules in go-licenses.yaml. I believe a lot of libraries you use are also KFP dependencies, so you can use what I prepare for KFP as an easy reference: https://github.com/kubeflow/pipelines/blob/master/v2/go-licenses.yaml.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fix

Copy link

@Bobgy Bobgy left a comment

Choose a reason for hiding this comment

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

/lgtm
Thank you for complying with OSS licenses

@kuizhiqing kuizhiqing merged commit a4a922e into PaddleFlow:main Sep 13, 2021
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