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

Use locked dependencies; other improvements #27

Closed
wants to merge 4 commits into from
Closed

Use locked dependencies; other improvements #27

wants to merge 4 commits into from

Conversation

jwkohnen
Copy link
Contributor

@jwkohnen jwkohnen commented Nov 15, 2017

Today I had to restart a service which failed to come up due to #23. Due to that occasion I took a closer look and implemented a few improvements that help to make build reproducible. The fix by EdSchouten #24 is included in this PR.

Please consider to release with semantically versioned git tags and maybe publish containers using automated builds.

See also #26.

The lib github.com/prometheus/log has been deprecated in favor of
github.com/prometheus/common/log.
*  Use stable-for-CI-use release of dep tool
*  Download locked versions of dependencies with dep ensure
   --vendor-only.
*  Clean up docker build context via .dockerignore.
*  Copy binary to FHS aware path.
Apply fix by EdSchouten to build binary statically.

Fixes #23
@discordianfish
Copy link
Owner

Hi,

sorry for not seeing this earlier. This looks good, thanks! Can you rebase it and maybe update dep?

Agree with everything you said and happy to merge further changes to add build configs. So far I just didn't get to it.

@jwkohnen jwkohnen mentioned this pull request Jan 8, 2018
@jwkohnen
Copy link
Contributor Author

jwkohnen commented Jan 8, 2018

Sure, no problem. I've created a new PR #33 for that, though.

There should be no further changes needed in order to create an automated build on docker hub. Just create an automated build repository on hub.docker.com and point it to your GitHub repository.

@discordianfish
Copy link
Owner

Last time I tried it wasn't possible to sync git tags with image tags. Is that possible now? But I suppose I could just manually create a release for now.

@jwkohnen
Copy link
Contributor Author

jwkohnen commented Jan 8, 2018

Uh yes, I remember. For "automatically" building tags, one has to create a build trigger for each tag. Which is not exactly automatic, but whatever. :)

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.

3 participants