I've already done some experiments with that. I used multi-stage builds
with podman, but it's the same in principle. And yes, the sizes are
smaller. What was interesting though that some additional packages (ones
that wouldn't appear in the images using the Fedora base image) has been
dragged in as dependencies. Some of them are even related to hardware. (See
the report [1] and the github repo [2].)
So that might be one area to focus on — to make sure that these "from
scratch" installations don't drag unnecessary stuff.
[1]
On Tue, Jul 30, 2019 at 9:52 PM Daniel Walsh <dwalsh(a)redhat.com> wrote:
If you want small images, just use buildah.
ctr=$(buildah from scratch)
mnt=$(buildah mount $ctr)
COPY/DnF/make install into $mnt
buildah config ... $ctr
buildah commit $ctr NEWIMAGE
buildah push NEWIMAGE CONTAINERREGGISTY...
If you want to build off of base images, you can probably create them with
buildah also.
On 7/30/19 12:05 PM, Christian Glombek wrote:
I would be especially interested in minimizing container images.
I'd like to e.g. see purpose-built containers without an actual package
manager inside. You just have the container, mount the config, and go.
We're also trying to minimize Fedora CoreOS[1], so this is definitely a
topic of overall interest!
[1]
https://github.com/coreos/fedora-coreos-tracker/issues/186
Christian Glombek
Associate Software Engineer
Red Hat GmbH <
https://www.redhat.com/>
<
https://www.google.com/maps/place/Engeldamm+64b,+10179+Berlin/@52.5058176...
cglombek(a)redhat.com <akollmer(a)redhat.com>
<
https://red.ht/sig>
Red Hat GmbH,
http://www.de.redhat.com/, Sitz: Grasbrunn,
Handelsregister: Amtsgericht München, HRB 153243,
Geschäftsführer: Charles Cachera, Michael O'Neill, Tom Savage, Eric Shander
On Tue, Jul 30, 2019 at 5:24 PM Neal Gompa <ngompa13(a)gmail.com> wrote:
> On Tue, Jul 30, 2019 at 10:58 AM Adam Samalik <asamalik(a)redhat.com>
> wrote:
> >
> > Hi everyone!
> >
> > I'm starting a Minimization Objective [1] focusing on minimising the
> installation size of some of the popular apps, runtimes, and other pieces
> of software in Fedora.
> >
> > And there is a new Minimization Team [2] forming. Members of the team
> will consult and work with Fedora maintainers, develop tooling and
> services, generate reports showing the status of the Fedora ecosystem and a
> comparison with other ecosystems, etc. The goal is to build an environment
> where it's easy for our maintainers to keep things small over time, it's
> not just a one-off effort. Please see the Action Plan [3] for more details.
> >
> > Want to become a member? Let me know!
> >
> > Cheers!
> > Adam
> >
> > [1]
https://docs.fedoraproject.org/en-US/minimization/
> > [2]
https://docs.fedoraproject.org/en-US/minimization/team/
> > [3]
https://docs.fedoraproject.org/en-US/minimization/action-plan/
> >
>
> I'm interested, but not just for minimization for the sake of it. We
> need to be thoughtful about how we are changing the dependency tree.
>
>
>
> --
> 真実はいつも一つ!/ Always, there's only one truth!
> _______________________________________________
> devel mailing list -- devel(a)lists.fedoraproject.org
> To unsubscribe send an email to devel-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct:
>
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
>
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>
_______________________________________________
devel mailing list -- devel(a)lists.fedoraproject.org
To unsubscribe send an email to devel-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
_______________________________________________
devel mailing list -- devel(a)lists.fedoraproject.org
To unsubscribe send an email to devel-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
--
Adam Šamalík
---------------------------
Senior Software Engineer
Red Hat