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

Reproducible builds #5

Closed
zenhack opened this issue Oct 2, 2018 · 7 comments
Closed

Reproducible builds #5

zenhack opened this issue Oct 2, 2018 · 7 comments

Comments

@zenhack
Copy link
Owner

zenhack commented Oct 2, 2018

Per discussion in #3, I'd like to get a reproducible build process working and documented, so I can comfortably release binaries for users who don't want to build from source.

@zenhack zenhack changed the title Reproducable builds Reproducible builds Oct 2, 2018
@zenhack
Copy link
Owner Author

zenhack commented Oct 3, 2018

I put together a Dockerfile and script that generate deterministic executables for MacOS and Linux; it's at the root of the repository:

https://github.com/zenhack/docker-spk/blob/master/Dockerfile

Before I actually upload releases I'd ideally like someone else to confirm that they can actually reproduce my results; I was able to get the same output with a few different hosts (though all using the same docker container...), but would be good to sanity check. The checksums for the binaries I got:

9c4847beba94a806897a5485bd7185f12cb5a57357d426ebd2d6f901fcfddb9a  darwin/amd64/docker-spk
213d1334adc06a5997c77e8615debafc7f70b54fd5f4224f6073b3c1a1ae70df  linux/amd64/docker-spk

@zenhack
Copy link
Owner Author

zenhack commented Oct 3, 2018

//cc @ocdtrekkie, @JamborJan

@JamborJan
Copy link

hey @zenhack, do you have any experience with Gitlab CI / CD? I just started looking into it to build stuff reproducible. But as I don't have any experience with go I was not able to do that super quickly. One error message was easy, as a Heroku image was used but the other error messages at the end are not so easy to solve for me. Maybe you can take a look and let me know if this makes sense at all or not. If it makes sense: I'm happy to help :-)

https://gitlab.com/JamborJan/docker-spk/-/jobs/105231441

@zenhack
Copy link
Owner Author

zenhack commented Oct 5, 2018 via email

@JamborJan
Copy link

JamborJan commented Oct 5, 2018 via email

@zenhack
Copy link
Owner Author

zenhack commented Oct 5, 2018

No problem; let me know how it goes.

@zenhack
Copy link
Owner Author

zenhack commented Oct 9, 2018

I'm going to close this one for now; I've uploaded binaries for the v1.0 tag, and I had success reproducing the exact binaries using docker with several different hosts. Definitely open a bug if folks have problems reproducing, but I believe this is working.

@zenhack zenhack closed this as completed Oct 9, 2018
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

No branches or pull requests

2 participants