Skip to content
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: reduce images size #94

Merged
merged 3 commits into from
Jan 11, 2023
Merged

docker: reduce images size #94

merged 3 commits into from
Jan 11, 2023

Conversation

glimchb
Copy link
Member

@glimchb glimchb commented Jan 11, 2023

By introducing multi-stage build
And switching to alpine
And using grpcurl from docker

x10 size reduction !

$ docker images | grep opi
opi-storage-server                      main           44996bc55718   About a minute ago   50.7MB
ghcr.io/opiproject/opi-storage-server   main           ae1f6b66da01   18 hours ago         618MB

Signed-off-by: Boris Glimcher [email protected]

By introducing multi-stage build
And switching to alpine
And using grpcurl from docker

x10 size reduction !

```
$ docker images | grep opi
opi-storage-server                      main           44996bc55718   About a minute ago   50.7MB
ghcr.io/opiproject/opi-storage-server   main           ae1f6b66da01   18 hours ago         618MB

```

Signed-off-by: Boris Glimcher <[email protected]>
@codecov
Copy link

codecov bot commented Jan 11, 2023

Codecov Report

Merging #94 (db64ed6) into main (ea76149) will not change coverage.
The diff coverage is n/a.

❗ Current head db64ed6 differs from pull request most recent head 5c28d0f. Consider uploading reports for the commit 5c28d0f to get more accurate results

@@           Coverage Diff           @@
##             main      #94   +/-   ##
=======================================
  Coverage   48.93%   48.93%           
=======================================
  Files           5        5           
  Lines        1216     1216           
=======================================
  Hits          595      595           
  Misses        602      602           
  Partials       19       19           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

By introducing multi-stage build
And switching to alpine
And using grpcurl from docker

x10 size reduction !

```
$ docker images | grep opi
opi-storage-client                      main           cd27f72378fb   2 minutes ago       20.4MB
ghcr.io/opiproject/opi-storage-client   main           633e8f737c1a   18 hours ago        612MB

```

Signed-off-by: Boris Glimcher <[email protected]>
Signed-off-by: Boris Glimcher <[email protected]>
@glimchb glimchb marked this pull request as ready for review January 11, 2023 15:10
@glimchb glimchb requested a review from a team as a code owner January 11, 2023 15:10
@glimchb
Copy link
Member Author

glimchb commented Jan 11, 2023

@glimchb glimchb merged commit 62daf50 into opiproject:main Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants