Description
In the containerized runtime environment introduced in PR #1512, the .resolve() calls in components/clp-package-utils/clp_package_utils/scripts/compress.py need to properly resolve relative paths and symlinks in the host path space. Otherwise, the mounted_paths might point to invalid files in the Package services containers.
Context
The _generate_logs_list function uses pathlib.Path(...).resolve() to convert user-provided paths into absolute paths before mounting them in containers. However, in the containerized runtime, these resolve calls may operate in the container's filesystem space rather than the host's filesystem space.
Related
Description
In the containerized runtime environment introduced in PR #1512, the
.resolve()calls incomponents/clp-package-utils/clp_package_utils/scripts/compress.pyneed to properly resolve relative paths and symlinks in the host path space. Otherwise, themounted_paths might point to invalid files in the Package services containers.Context
The
_generate_logs_listfunction usespathlib.Path(...).resolve()to convert user-provided paths into absolute paths before mounting them in containers. However, in the containerized runtime, these resolve calls may operate in the container's filesystem space rather than the host's filesystem space.Related
sbinvia Docker Compose; Remove redundant assets from the package (resolves #1358). #1512sbinvia Docker Compose; Remove redundant assets from the package (resolves #1358). #1512 (comment)