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

Publish docker image #8

Merged
merged 1 commit into from
Jun 12, 2019
Merged

Publish docker image #8

merged 1 commit into from
Jun 12, 2019

Conversation

jswoods
Copy link
Contributor

@jswoods jswoods commented Jun 11, 2019

No description provided.

@jswoods jswoods requested review from schofield and anagrius June 11, 2019 17:20
@anagrius anagrius merged commit 6fe03d4 into master Jun 12, 2019
@@ -0,0 +1,5 @@
FROM scratch

COPY humioctl /humioctl
Copy link
Contributor

Choose a reason for hiding this comment

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

With Docker multistage builds you don't have to build humioctl prior to building the docker image. And you can have Docker Hub do it all for you :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this case we're shipping binaries to other places such as homebrew, so we have to build the binaries anyway. I've never used goreleaser but apparently it's able to figure out the docker image depends on the binary so it works out the order of operations. I agree though typically the build of the binary should be done in docker... Maybe we will move that way if it becomes hard to do this with drone (haven't gotten that far yet).

@SaaldjorMike SaaldjorMike deleted the add_docker branch February 14, 2020 09:13
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.

4 participants