| Summary: | OE-Core not compatible with Docker overlayfs and pre-built images | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Tobias Hagelborn <tobias.hagelborn> |
| Component: | core | Assignee: | Joshua Watt <JPEWhacker> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | meta.mr.watcher, meta.watcher, randy.macleod |
| Version: | unspecified | ||
| Target Milestone: | 3.2 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Tobias Hagelborn
2020-05-29 01:14:35 UTC
bitbake and OE make the assumption that TMPDIR is one a single filesystem, and changing that is not something we really want to fix. A different way to solve this might be instead to include the initial sstate cache in the docker image so that the first time the user runs a command, it restores (quickly) from sstate. To clarify: we don't want to fix it because it would be quite disruptive and likely to easily break again without ongoing effort to test and maintain. Thanks for having a look at this Joshua and I fully understand that you have to make this kind of assumptions on the underlying file system. It is unfortunate that Docker overlayfs has this kind of limitation. Unfortunately in-image sstate cache is not an option for us, I wanted to avoid the setscene procedure all together since it is actually very CPU intensive and takes 5 minutes for us with 16 active cores. (We do 10K+ builds like this every day) |