docker icon indicating copy to clipboard operation
docker copied to clipboard

Why does the container have google-cloud-sdk in it?

Open intendo opened this issue 2 years ago • 3 comments

I can't see why the google-cloud-sdk is in the container. It is over half the size of the image. The google-cloud-sdk is over 880 Megabytes.

intendo avatar Apr 13 '22 21:04 intendo

Thank you for your report, Darren! Would you mind illustrating that? Thanks!

azat-badretdin avatar Apr 13 '22 21:04 azat-badretdin

Add the following to the main Dockerfile to remove 880 Megabytes of disk space: RUN rm -rf /usr/share/google-cloud-sdk /usr/lib/google-cloud-sdk

intendo avatar Apr 13 '22 22:04 intendo

Thank you, Darren.

We will investigate why do we have this in our image.

azat-badretdin avatar Apr 14 '22 08:04 azat-badretdin

I can't see why the google-cloud-sdk is in the container.

gsutil is needed in when downloading BLAST databases from GCP whenever Requester Pays is enabled on a bucket. In BLAST+ 2.16.0 we have made efforts to reduce the size of the ncbi/blast docker image; this led to about a 50% reduction in size: https://hub.docker.com/r/ncbi/blast/tags

The google-cloud-sdk is over 880 Megabytes.

This is a known issue: https://github.com/GoogleCloudPlatform/gsutil/issues/1732

christiam avatar Jul 17 '24 16:07 christiam