pulumi-kubernetes-operator icon indicating copy to clipboard operation
pulumi-kubernetes-operator copied to clipboard

pulumi/pulumi Docker image is quite large

Open rodcloutier opened this issue 4 years ago • 2 comments

Problem description

The image size is quite big (3GB) which reduces restart performances and waste a lot of space.

$ docker image ls | grep 'pulumi/pulumi'
pulumi/pulumi                                                latest                                     54c055b8ed82        43 hours ago        3.15GB
$ docker history pulumi/pulumi
IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
54c055b8ed82        43 hours ago        ENTRYPOINT ["pulumi"]                           0B                  buildkit.dockerfile.v0
<missing>           43 hours ago        RUN |1 PULUMI_VERSION=v2.13.0 /bin/sh -c if …   169MB               buildkit.dockerfile.v0
<missing>           43 hours ago        ARG PULUMI_VERSION=latest                       0B                  buildkit.dockerfile.v0
<missing>           43 hours ago        RUN /bin/sh -c curl -L https://raw.githubuse…   51.3MB              buildkit.dockerfile.v0
<missing>           43 hours ago        ENV XDG_CACHE_HOME=/root/.cache                 0B                  buildkit.dockerfile.v0
<missing>           43 hours ago        ENV XDG_CONFIG_HOME=/root/.config               0B                  buildkit.dockerfile.v0
<missing>           43 hours ago        RUN /bin/sh -c wget -q https://packages.micr…   341MB               buildkit.dockerfile.v0
<missing>           43 hours ago        ENV PATH=/go/bin:/usr/local/go/bin:/usr/loca…   0B                  buildkit.dockerfile.v0
<missing>           43 hours ago        ENV GOPATH=/go                                  0B                  buildkit.dockerfile.v0
<missing>           43 hours ago        RUN /bin/sh -c curl -fsSLo /tmp/go.tgz https…   363MB               buildkit.dockerfile.v0
<missing>           43 hours ago        RUN /bin/sh -c apt-get update -y &&   apt-ge…   2.13GB              buildkit.dockerfile.v0
<missing>           43 hours ago        ENV GOLANG_SHA256=b49fda1ca29a1946d6bb2a5a69…   0B                  buildkit.dockerfile.v0
<missing>           43 hours ago        ENV GOLANG_VERSION=1.15.2                       0B                  buildkit.dockerfile.v0
<missing>           43 hours ago        LABEL maintainer=Pulumi Team <[email protected]…   0B                  buildkit.dockerfile.v0
<missing>           43 hours ago        LABEL homepage=https://pulumi.com/              0B                  buildkit.dockerfile.v0
<missing>           43 hours ago        LABEL repository=https://github.com/pulumi/p…   0B                  buildkit.dockerfile.v0
<missing>           2 days ago          /bin/sh -c #(nop)  CMD ["python3"]              0B                  
<missing>           2 days ago          /bin/sh -c set -ex;   savedAptMark="$(apt-ma…   8.45MB              
<missing>           2 days ago          /bin/sh -c #(nop)  ENV PYTHON_GET_PIP_SHA256…   0B                  
<missing>           2 days ago          /bin/sh -c #(nop)  ENV PYTHON_GET_PIP_URL=ht…   0B                  
<missing>           2 weeks ago         /bin/sh -c #(nop)  ENV PYTHON_PIP_VERSION=20…   0B                  
<missing>           3 weeks ago         /bin/sh -c cd /usr/local/bin  && ln -s idle3…   32B                 
<missing>           3 weeks ago         /bin/sh -c set -ex   && savedAptMark="$(apt-…   26.7MB              
<missing>           3 weeks ago         /bin/sh -c #(nop)  ENV PYTHON_VERSION=3.7.9     0B                  
<missing>           3 weeks ago         /bin/sh -c #(nop)  ENV GPG_KEY=0D96DF4D4110E…   0B                  
<missing>           3 weeks ago         /bin/sh -c apt-get update && apt-get install…   6.4MB               
<missing>           3 weeks ago         /bin/sh -c #(nop)  ENV LANG=C.UTF-8             0B                  
<missing>           3 weeks ago         /bin/sh -c #(nop)  ENV PATH=/usr/local/bin:/…   0B                  
<missing>           3 weeks ago         /bin/sh -c #(nop)  CMD ["bash"]                 0B                  
<missing>           3 weeks ago         /bin/sh -c #(nop) ADD file:4453535d387fcb17e…   55.3MB     

rodcloutier avatar Nov 06 '20 18:11 rodcloutier

Hi @rodcloutier

thanks for opening the issue here - we actually introduced some slimmer docker containers - https://www.pulumi.com/blog/introducing-new-docker-images/ that may help you?

Paul

stack72 avatar Nov 06 '20 18:11 stack72

Actually, my current concern is the pulumi-kubernetes-operator. Can it benefit from the slimmer images?

Are you planning to deprecate the pulumi/pulumi image? If not, it could still benefit from a slimmer dockerfile.

rodcloutier avatar Nov 06 '20 18:11 rodcloutier

Closing as a duplicate of #100.

squaremo avatar Aug 23 '22 14:08 squaremo