You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the ESPv2 containers are much larger than the ones for ESPv1:
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
gcr.io/endpoints-release/endpoints-runtime 2 9af8d1152fa8 4 months ago 1.34GB
gcr.io/endpoints-release/endpoints-runtime 1 52a065a2c843 2 years ago 170MB
Nearly all of this is due to the envoy binary:
$ docker run -t -i --entrypoint /bin/sh gcr.io/endpoints-release/endpoints-runtime:2
/ $ ls -l /bin/envoy
-r-xr-xr-x 1 root root 1183328376 Oct 17 18:14 /bin/envoy
As a test, I ran strip on the envoy binary and the result was much smaller.
$ docker run -t -i --entrypoint /bin/sh ghcr.io/timburks/esp-v2:latest
/ $ ls -l /bin/envoy
-r-xr-xr-x 1 root root 34366336 Feb 19 22:05 /bin/envoy
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ghcr.io/timburks/esp-v2 latest 81c2c28ace54 46 minutes ago 218MB
What do you think about adding strip to the official build process?
The text was updated successfully, but these errors were encountered:
I noticed that the ESPv2 containers are much larger than the ones for ESPv1:
Nearly all of this is due to the envoy binary:
As a test, I ran
strip
on the envoy binary and the result was much smaller.What do you think about adding
strip
to the official build process?The text was updated successfully, but these errors were encountered: