jina-ai / serve

☁️ Build multimodal AI applications with cloud-native stack
https://jina.ai/serve
Apache License 2.0
21.13k stars 2.22k forks source link

0.9.16 docker image is missing #1707

Closed nan-wang closed 3 years ago

nan-wang commented 3 years ago

Describe the bug

image https://hub.docker.com/repository/docker/jinaai/jina

0.9.15 is published on docker hub.

Describe how you solve it


Environment

Screenshots

hanxiao commented 3 years ago

Here are the bug analyze steps, which I hope the team can pick up and have a better issue report stays not only on the surface.

  1. We use github action to build image, so the problem is in Github action tag.yml
  2. Go to Github action log, find that all images building failed, because of gcc not found when building lz4
  3. Given that 0.9.5 and 0.9.6 releases are just 1 hour in-between and no changes on tag.yml, it must be something else.
  4. Ask oneself: why 0.9.5 does not need gcc where 0.9.6 suddenly needs gcc? why did it only happen for lz4? Speaking of complexity and c-related package, I mean isn't numpy "needs" gcc even more?
  5. Experience told us: though rare, it is not the first time that we had symptom for (4), something is suddenly broken at certain time.
  6. Go check lz4 release history, ha! they publish a new version on Jan.16 the time we build the image. image

So that's it! By the time they publish it, wheels were not ready (what is a wheel? plz google). Therefore we have to build by ourselves from scratch using gcc, as all latest versions do not include build-essential for the sake of image size, the building failed.

Solution? Bad timing, just wait. Go check https://pypi.org/simple/lz4/ and realize all wheels are ready now image

Todo @jina-ai/engineering