Skip to content

Conversation

@achow101
Copy link
Member

@achow101 achow101 commented Jun 1, 2018

Updates gitian-build.sh script for the docker virtualization method recently added to gitian-builder.

Second commit depends on devrandom/gitian-builder#185

@laanwj
Copy link
Member

laanwj commented Jun 5, 2018

Concept ACK, thanks for working on this.

Copy link
Contributor

@ken2812221 ken2812221 Jun 5, 2018

Choose a reason for hiding this comment

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

Are you sure that this digest will stay the same? They update the image very often. https://hub.docker.com/r/library/ubuntu/tags/

Edit: That make sure that docker always pull the same image base.

Copy link
Member

Choose a reason for hiding this comment

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

Is there any way to verify this hash?

I tried to build the image from scratch using https://github.com/tianon/docker-brew-ubuntu-core/blob/master/update.sh but it would give a different hash each run...

Copy link
Member

Choose a reason for hiding this comment

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

@achow101 Is this hash even supposed to be deterministic or does it just serve the purpose of an unique identifier?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure.. I think it may just serve as a unique identifier.

Copy link
Member

@maflcko maflcko Jul 14, 2018

Choose a reason for hiding this comment

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

In that case I'd prefer the second commit to be dropped. I believe for our purposes it suffices to use the "ubuntu:bionic" as a unique identifier.

@maflcko
Copy link
Member

maflcko commented Jun 17, 2018

utACK 86967b2

@ken2812221
Copy link
Contributor

Tested ACK 4b5b2c9c398237645450e25fe7188a3e0422e94a

@fanquake
Copy link
Member

Concept ACK, should this go in before #13623?

@achow101
Copy link
Member Author

I dropped the second commit that used gitian image hashes.

@maflcko maflcko merged commit 86967b2 into bitcoin:master Jul 15, 2018
maflcko pushed a commit that referenced this pull request Jul 15, 2018
86967b2 Add option to use docker for gitian-build.sh (Andrew Chow)

Pull request description:

  Updates gitian-build.sh script for the docker virtualization method recently added to gitian-builder.

  Second commit depends on devrandom/gitian-builder#185

Tree-SHA512: 0fa50b6c1be35a7a39f4a82816369637d3d0082922ac9876b80ae8156c795dec0ff34ad384b5348777042df8ddb6a72bbaeddd7002ef80557b10e2acf46632aa
@ken2812221
Copy link
Contributor

Do this actually work with latest version of gitian-builder? I always get a error message Error: No such container: gitian-target

@achow101
Copy link
Member Author

@ken2812221 It works for me. Maybe you need to run it as root (with sudo) or set docker to run without root.

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants