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

pulumi/pulumi Docker image is quite large #116

Closed
rodcloutier opened this issue Nov 6, 2020 · 3 comments
Closed

pulumi/pulumi Docker image is quite large #116

rodcloutier opened this issue Nov 6, 2020 · 3 comments
Assignees
Labels
resolution/duplicate This issue is a duplicate of another issue

Comments

@rodcloutier
Copy link

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     
@stack72
Copy link
Contributor

stack72 commented Nov 6, 2020

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 stack72 self-assigned this Nov 6, 2020
@rodcloutier
Copy link
Author

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.

@stack72 stack72 transferred this issue from pulumi/pulumi Jan 13, 2021
@squaremo squaremo added the resolution/duplicate This issue is a duplicate of another issue label Aug 23, 2022
@squaremo
Copy link
Contributor

Closing as a duplicate of #100.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution/duplicate This issue is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants