Skip to content

Image layer is more than 4GB #427

Description

@yanksyoon

Bug Description

One of the discourse image layers (hash d218e27560a9) is more than 4GB which is impacting the installation speed of discourse-k8s operator.
This can be optimised so that it doesn't cost so much memory.

Impact

Low (minor issue or cosmetic problem)

Impact Rationale

No response

To Reproduce

  1. Get Juju charms image pull secret by running:
$ microk8s kubectl get secret -n <NAMESPACE> <ANY-SECRET> -o yaml | yq '.data[".dockerconfigjson"]' | base64 -d
  1. Login to docker
$ docker login registry.jujucharms.com
  1. Try pulling discourse image
$ docker pull registry.jujucharms.com/charm/1do4bht9nkx2kuk2thi94lw9kzlgiytu42u4r/discourse-image@sha256:e277b2380271fdea64c6fdd12a67ecd8b5f87320948f48ddf82f9ac7b235dbd1

73974f74b436: Downloading [============>                                      ]  19.38MB/80.42MB
d218e27560a9: Downloading [>                                                  ]  16.16MB/4.16GB
96393ab7dda6: Download complete
1858fc42f6d3: Download complete
ceb61029a5a2: Download complete

Environment

Relevant log output

-

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions