Skip to content

Add Dockerfile with linting and testing#36

Merged
hhatto merged 1 commit into
hhatto:masterfrom
dbast:master
Jul 20, 2020
Merged

Add Dockerfile with linting and testing#36
hhatto merged 1 commit into
hhatto:masterfrom
dbast:master

Conversation

@dbast
Copy link
Copy Markdown
Contributor

@dbast dbast commented Jun 21, 2020

Container size is minimized by the ldflags (which strip debugging symbols) and compressing via upx.

After merging the PR, it would be nice if the dockerhub cloud builder could be activated to upload to image to Dockerhub for master=latest and $tags.

This then allows to use gocloc e.g. on CI via: docker run -v ${PWD}:/workdir hhatto/gocloc . or docker run -v ${PWD}:/workdir hhatto/gocloc:$VERSION . (instead of wget $release && $hashcheck && tar -xf .. && chmod +x .. && gocloc .).

Thanks!

Container size is minimized by the ldflags (which strip debugging symbols)
and compressing via upx.
@hhatto hhatto self-requested a review June 21, 2020 10:45
Copy link
Copy Markdown
Owner

@hhatto hhatto left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks for your contribution 👍

@hhatto hhatto merged commit 5b80871 into hhatto:master Jul 20, 2020
@hhatto
Copy link
Copy Markdown
Owner

hhatto commented Jul 20, 2020

I'll be uploading packages to Dockerhub and GitHub Packages in the near future.

@dbast
Copy link
Copy Markdown
Contributor Author

dbast commented Aug 6, 2020

Ping: Any update on uploading the Docker Image to Dockerhub?

@hhatto
Copy link
Copy Markdown
Owner

hhatto commented Aug 10, 2020

@dbast
Sorry for the delay.

I uploaded the package to GitHub Packages and Docker Hub. It's the same image for both.

https://github.com/hhatto/gocloc/packages/350535
https://hub.docker.com/r/hhatto/gocloc

I'd be very grateful if you could let me know if there are any problems.

Thanks

@dbast
Copy link
Copy Markdown
Contributor Author

dbast commented Aug 10, 2020

Works, thanks!

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