Skip to content

Ensure WORKSPACE is an absolute directory

Hashar requested to merge absolute-workspace into master

Using scap3_dev.sh build workspace causes docker composer to attempt to bind mount a relative directory when it requires an absolute path. It then fails with:

Creating scap3-dev_deploy_1 ... error config for type "bind": invalid mount path: 'workspace/services' mount path must be absolute

Use realpath (allowing unexisting directory with -m) to use the canonical absolute path for the workspace.

With this change I get:

$ grep SERVICES_DIR= docker/.env SERVICES_DIR=/home/hashar/projects/scap3-dev/workspace/services

Merge request reports