kas-container: Enter with /repo as current dir
Set KAS_WORK_DIR instead. This will be needed for running build/shell with the implicit kas configuration file .config.yaml. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
eeab1bc9bc
commit
1271320de3
@ -318,8 +318,9 @@ if [ "$(id -u)" -eq 0 ] && [ "${KAS_ALLOW_ROOT}" != "yes" ] ; then
|
||||
fi
|
||||
|
||||
set -- "$@" -v "${KAS_REPO_DIR}":/repo:${KAS_REPO_MOUNT_OPT} \
|
||||
-v "${KAS_WORK_DIR}":/work:rw --workdir=/work \
|
||||
-v "${KAS_WORK_DIR}":/work:rw -e KAS_WORK_DIR=/work \
|
||||
-v "${KAS_BUILD_DIR}":/build:rw \
|
||||
--workdir=/repo \
|
||||
-e KAS_BUILD_DIR=/build \
|
||||
-e USER_ID="$(id -u)" -e GROUP_ID="$(id -g)" --rm
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user