Allow relative paths in CCC_PLAY_MOUNTS
Details
| Detail name | Value |
|---|---|
| Changelog Number | 21376 |
| Type | Improvement |
| Status | Resolved |
| Fix Versions | Exasol 8.31.0, Exasol 8.29.1 |
| Resolution Date | 2024-07-29 |
Background
Exasol 8.29.0 introduced the CCC_PLAY_MOUNTS deployment option for c4 tool (see Exasol Deployment Tool (c4)), which allows specifying additional paths that are bind-mounted into the Exasol environment as a list of colon-separated pairs of paths, e.g.
CCC_PLAY_MOUNTS="/host/path:/mnt/exasol/path /host/path\ with\ whitespace:/mnt/other_path" c4 config -F -e .play.mounts [ "/host/path:/mnt/exasol/path", "/host/path with whitespace:/mnt/other_path" ]
Improvement
In Exasol 8.29.0 it was not specified how relative host paths were handled and they were treated as relative to an internal installation directory.
This has been changed and relative paths are now treated as relative to the home directory of the user that is starting Exasol on the node. So for example for a user with home directory /home/exasol_usr,
CCC_PLAY_MOUNTS="my_mount:/mnt/host_mount"
would mount /home/exasol_usr/my_mount on the host to /mnt/host_mount inside the Exasol namespace.
Changed behavior
Relative paths in c4 deployment option "CCC_PLAY_MOUNTS" are now treated as relative to the home directory of the user that is starting Exasol on the node.