New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker] Lightweight images #211

Closed
blakelead opened this Issue Sep 5, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@blakelead

blakelead commented Sep 5, 2016

Hello,

Docker images could be lighter using :

  • busybox-based java8 image for management-api & gateway
  • alpine-based nginx image for management-ui

Here are a comparison of current VS proposed images sizes :

Gravitee Leansys Shrinked by
gateway 689.4 MB 276.4 MB 60 %
management-api 676.4 MB 269.9 MB 60 %
management-ui 272.8 MB 65.11 MB 76 %

Adel

@brasseld

This comment has been minimized.

Member

brasseld commented Sep 5, 2016

Hi @Blake-Lead,

Can you provide us with the gain / benefit in terms of image size ?

Thanks

@blakelead

This comment has been minimized.

blakelead commented Sep 5, 2016

Hi @brasseld, added a table resuming gain in size.

@blakelead

This comment has been minimized.

blakelead commented Sep 12, 2016

Hello,

I switched busybox for alpine in the Java8 image. Gateway and Management Api are now a little bit heavier but this solution has the advantage of being futureproof.

Gravitee Leansys
gateway 689.4 MB 285.6 MB
management-api 676.4 MB 279.0 MB
management-ui 272.8 MB 65.11 MB

Adel

@brasseld

This comment has been minimized.

Member

brasseld commented Sep 12, 2016

10 Mo for each image ! We can still live with this additional weight ;-)

Thanks a lot @Blake-Lead !

@brasseld

This comment has been minimized.

Member

brasseld commented Nov 23, 2016

The doc hasn't been updated with according changes:

  • base image => alpine instead of centos
  • we are not using httpd anymore (nginx)
  • add a documentation part about docker-compose and how to start quickly with it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment