qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/9] tests/docker: Add debian-nios2-cross image


From: Richard Henderson
Subject: Re: [PATCH 1/9] tests/docker: Add debian-nios2-cross image
Date: Thu, 14 Oct 2021 10:17:20 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 10/12/21 10:03 AM, Alex Bennée wrote:
We need^H^H^H^H (might need, see bellow) a separate patch with:

docker-image-debian10: NOUSER=1

to ensure the images we base our "handbuilt" compilers on don't include
a potentially clashing uid (which should only be added for local
builds).

I think we ought to push this further back into docker.py.

I think that we should always have a separate image without the user installed. When asking for a build with user installed, copy the nouser image (perhaps cached) and simply add the user.

We need to split this like in hexagon and have a second stage which does
a:

   COPY --from=0 /usr/local /usr/local

This will limit the size of the final image (and also avoid duplicting
the UID in the hexagon build).

What are we eliminating from the image with the second FROM, since we then go back and add in all the build-dep for qemu.

There are one or two extra packages required for building gcc itself (e.g. libmpc) but they're not large. Where does the major savings come from?


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]