Skip to content

Reduce size of the build #173

@alicefr

Description

@alicefr

I just notice that when we compile the operator in the contains, it creates some huge layers during the builds:

How to reproduce:

$ make image

and then monitor the podman images:

$  podman images 
REPOSITORY                                                          TAG         IMAGE ID      CREATED         SIZE
<none>                                                              <none>      82d2c9227d58  10 seconds ago  4.76 GB
localhost:5000/trusted-execution-clusters/registration-server       latest      25de9d6fff69  2 minutes ago   336 MB
<none>                                                              <none>      791a8d0f89ee  3 minutes ago   5.06 GB
localhost:5000/trusted-execution-clusters/compute-pcrs              latest      dc0f8e7f7252  6 minutes ago   294 MB
<none>                                                              <none>      11b4c4d25cc0  6 minutes ago   4.73 GB
localhost:5000/trusted-execution-clusters/trusted-cluster-operator  latest      a8653c9148df  16 minutes ago  582 MB
<none>                                                              <none>      9e7473e57366  16 minutes ago  6 GB

This issue covers the investigation why we have such a huge layers and if we can reduce their size. Each layer can be inspected with podman inspect <ID of the layer> or create a container from that image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions