glances icon indicating copy to clipboard operation
glances copied to clipboard

Docker images for different archs

Open escoand opened this issue 4 years ago • 10 comments

Is your feature request related to a problem? Please describe. According to https://hub.docker.com/r/nicolargo/glances/tags?page=1&ordering=last_updated is only the dev tag available for different architectures. I'm specifically interested in latest-alpine for linux/arm/v6

Describe the solution you'd like Have not only the dev tag for different archs.

Describe alternatives you've considered Currently I'm using the dev tag.

Additional context

escoand avatar Jan 06 '21 07:01 escoand

@nicolargo As you already have travis integration you could use https://docs.travis-ci.com/user/build-stages/share-docker-image/ as an extension. Your dev images are already multi-arch, couldn't you copy the workflow?

escoand avatar Jan 11 '21 06:01 escoand

@escoand the CI pipeline used to generate Docker images is based on Github, not Travis (see https://github.com/nicolargo/glances/blob/develop/.github/workflows/main.yml).

@BlackDark Can you have a look on the @escoand request ?

Thanks !

nicolargo avatar Jan 11 '21 17:01 nicolargo

Will do

BlackDark avatar Jan 12 '21 17:01 BlackDark

@escoand @nicolargo What do we want to achieve with the alpine image:

  • should be as minimal as possible? Problem is that this will make it incompatible with multiple additional plugins which could be installed with glances
  • Include all dependencies needed for installing the optional dependencies and be able to use them?

BlackDark avatar Jan 12 '21 20:01 BlackDark

@BlackDark I would like to have it similar to https://github.com/nicolargo/glances/blob/develop/docker-files/Dockerfile but without all the gcc thingy...

escoand avatar Jan 12 '21 20:01 escoand

Currently testing the image sizes between debian based and alpine based with all plugins installed. So far i think it wouldn't be much benefit using alpine for this case. Image does not differ much and python is not the best solution with alpine base some article.

So i think i would stay with the default image. Could try to remove unnecessary packages like gcc after successful builds maybe.

Prod image based on debian: image

Try including all deps for alpine and install: image

BlackDark avatar Jan 16 '21 12:01 BlackDark

I've no strong feelings against debian. My request was just to have a small stable image for my productive usecase. So I'm completly fine with your result so far.

escoand avatar Jan 16 '21 13:01 escoand

@BlackDark Thanks.

escoand avatar Jan 16 '21 13:01 escoand

Hey @escoand, made some progress in reducing the image sizes :)

Would you like to test both? You can find those under my user in docker hub blackdark93/glances image

BlackDark avatar Jan 16 '21 16:01 BlackDark

I'm quite impressed by the final size. Fantastic and both are working with my simple setup.

escoand avatar Jan 16 '21 18:01 escoand

Closing as we have multi-arch images now.

RazCrimson avatar May 09 '23 21:05 RazCrimson