greptimedb icon indicating copy to clipboard operation
greptimedb copied to clipboard

Add building option to build images base on distroless image

Open zyy17 opened this issue 1 year ago • 1 comments

What type of enhancement is this?

User experience

What does the enhancement do?

To further reduce the size of the image, we can use distroless(as the building option) as the base image.

Implementation challenges

No response

zyy17 avatar Aug 08 '23 07:08 zyy17

To be clear, this issue is to add the option for self-building Docker image. It won't be integrated into our release workflow (or at least yet).

The related file is:

  • docker/buildx - You can find centos/Dockerfile and ubuntu/Dockerfile there for reference. It's a one-stop build script for producing the image. We may add a distroless/Dockefile there.
  • docker/ci - you can also find centos/Dockerfile and ubuntu/Dockerfile. It packages a pre-built binary to a find image environment. We may add a distoless/Dockerfile there also to copy a pre-built binary and set up the environment.
  • Makefile - it contains docker-image-buildx and docker-image target. We may make BASE_IMAGE=distoless work here.

tisonkun avatar Mar 27 '24 09:03 tisonkun