garmin / pyrex

Seamless container setup for developing with OpenEmbedded/Yocto Project
Apache License 2.0
36 stars 29 forks source link

Container commands #60

Open JoshuaWatt opened 3 years ago

JoshuaWatt commented 3 years ago

Reworks the way that commands specified by the user are wrapped by Pyrex. Instead of completely replacing the container commands, the user commands override and extend the container command defintions, taking precedence over them (i.e. if the user excludes a command it will be excluded even if the container includes it, and if the user includes it, it will be included even if the container excludes it).

In order for this to work, the user command shims must be individually written to execute the full path to the command inside the container, since we don't know if it will be in $PATH.

JoshuaWatt commented 3 years ago

This is PR #51 moved to it's own branch