Bug 10454

Summary: support the multiple containers working off 1 volume model
Product: [Yocto Project Subprojects] CROPS Reporter: brian avery <brian.avery>
Component: crops-defaultAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Medium CC: randy.macleod, tim.orling
Version: 2.3   
Target Milestone: 6.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description brian avery 2016-10-18 20:33:33 UTC
This requires:
extsdk & toaster container:
  add --rootdir and --workdir
example usage:
$docker run --rm -it -v myOneVolume:/external poky/toaster --rootdir=/external --workdir=toaster-release
so you could also do:
$docker run --rm -it -v myOneVolume:/external poky/toaster-master --rootdir=/external --workdir=toaster-master
and:
$docker run --rm -it -v myOneVolume:/external poky/extsdk-container --rootdir=/external --workdir=esdk
---
For advanced usage also support:
$docker run --rm -it -v myOneVolume:/COW poky/toaster --rootdir='' --workdir=/COW
in case they need an abs path for some reason

---
for the poky container:
 just keep the workdir argument ad an absolute path since the poky container is not adding any files and is just using the workdir to determine the uid/gid

----
If the dir is not there, error.
----
Comment 1 Randy Witt 2017-01-03 22:04:06 UTC
Since 9502 was M1(Hight) and moved to M2, I don't think this should take precedence over it. This should probably be moved to M2 as well.
Comment 2 brian avery 2017-07-30 13:33:29 UTC
Moving to M3
Comment 3 brian avery 2017-12-08 21:49:30 UTC
Moving to Joshua .

In case the examples (which outline the solution more than the problem) aren't clear. The goal of this enhancement is to allow more than 1 container to feed off of one docker volume.  Right now, when you do a mount of a volume into the container, the extsdk and toaster containers do not have a way to work from a subdirectory of the mounted volume.  This enhancement would introduce an additional command line option to separate the externally mounted volume from the working subdirectory.  This is important in these cases because both the toaster and extsdk containers create files at the top of the working directory.
Comment 4 brian avery 2017-12-08 21:50:08 UTC
resetting to Joshua
Comment 5 Randy MacLeod 2022-06-02 15:27:25 UTC
Tim, Help us understand this if you have time for it.
Comment 6 Randy MacLeod 2023-10-24 14:24:17 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 7 Tim Orling 2026-02-12 16:51:50 UTC
Bumping to 6.99. This depends on the fate of CROPS and whether the new container workflow enabled recently in meta-virtualization becomes the new way to support containers (including "build" containers) for the Yocto Project.