moby icon indicating copy to clipboard operation
moby copied to clipboard

Dockerfile: pin criu version and build from source

Open crazy-max opened this issue 3 years ago • 2 comments

related to #43529

- What I did

pin criu for better reproducibility and build from source. will solve issues we have with flakiness using the opensuse mirror but also being able to build on other platforms:

  • https://github.com/moby/moby/pull/44034#issuecomment-1232864547
  • https://github.com/moby/moby/pull/34425#issuecomment-966986752
  • https://github.com/moby/moby/pull/43680#issuecomment-1145715984
  • https://github.com/moby/moby/pull/43681#issuecomment-1145155540
  • https://github.com/moby/moby/pull/43682#issuecomment-1145116748
  • https://github.com/moby/moby/pull/43130#issuecomment-1017243796

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: CrazyMax [email protected]

crazy-max avatar Sep 02 '22 23:09 crazy-max

@tianon PTAL (sorry, looks like we're going back-and-forth on pre-built vs compile, but these package-repos are not very stable)

thaJeztah avatar Sep 06 '22 15:09 thaJeztah

:sadpanda:

I really don't want to have to build this from source every time. Yeah it gets cached, but I don't always have the build cached. It would be really nice to add this as an image to ghcr or something that we can just reference in the Dockerfile.

cpuguy83 avatar Sep 15 '22 18:09 cpuguy83

I would like to see this (or some other approach) merged as it's bit me a few times -- can we reach consensus on this approach?

neersighted avatar Sep 28 '22 13:09 neersighted

@cpuguy83 is that a "strong" no, or would you be ok with having this as an (intermediate?) solution?

@crazy-max also mentioned that the package is not available for armhf and riscv (but criu itself does support it? albeit still WIP); ideally that would be fixed in the SUSE repo of course.

While discussing; I was also looking where we actually use CRIU; I think this was for the integration tests, but it looks like the actual tests were broken, and currently skipped. For fun, I opened https://github.com/moby/moby/pull/44495 to see if they actually work.

thaJeztah avatar Nov 18 '22 14:11 thaJeztah

I'm against doing that. This increases test time, creates some extra build logs, and in general is a waste of resources, especially since this PR builds the same criu version over and over.

kolyshkin avatar May 24 '23 02:05 kolyshkin