lgrosz / my-yocto-dockerfiles

Just trying to see if I can make something like crops that supports more than just the current yocto versions... felt smart, may delete later.
0 stars 0 forks source link

Container/host uid contamination #1

Closed lgrosz closed 1 year ago

lgrosz commented 1 year ago

crops/poky-container has a couple scripts, see poky-entry.py, which avoid contaminating the build volume with container uids.

This seems like a standard problem in the docker world, so see if there's some standard way of solving it. Requirements would be...

lgrosz commented 1 year ago

This post details two solutions...

This options makes pushing images to registries kind of pointless, and would be more of a hassle for the user, especially if the build has a bunch of build arguments like TARGET_PLATFORM later-on.

This is what crops/poky-container does. It may require sudo, maybe not depending on how the dockerfile is setup.

lgrosz commented 1 year ago

fixuid is an application which can do this fixing without it being a homebrewed script.