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 Docker support. #44

Merged
merged 1 commit into from
Sep 6, 2020
Merged

Add Docker support. #44

merged 1 commit into from
Sep 6, 2020

Conversation

rotemreiss
Copy link
Contributor

Hi,

Please review and consider merging this PR which adds Docker support to addlicense.

Thanks,
Rotem

@rotemreiss
Copy link
Contributor Author

Can someone of the maintainers please review and merge this PR?

@@ -0,0 +1,10 @@
FROM golang:1-alpine AS build-env

RUN apk add --no-cache --upgrade git openssh-client ca-certificates
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for this PR. Why do you need openssh-client and ca-certificates?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @marcacohen, this is required for the go get -u github.com/google/addlicense command to succeed (since this is done over HTTPS).
I can recheck regarding the openssh-client, but I'm almost sure that it didn't work without it.

You can see other examples of the same thing on other repositories, e.g.:
https://github.com/projectdiscovery/httpx/blob/master/Dockerfile

Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, that makes sense. Thanks for the PR and sorry for the delay!

@mco-gh mco-gh merged commit a029431 into google:master Sep 6, 2020
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