From 6ef2d9f5dd2419e3c728ab4b1ca7aafc2989f9d9 Mon Sep 17 00:00:00 2001 From: "James E. King III" Date: Wed, 2 Feb 2022 06:55:01 -0500 Subject: [PATCH] map user outside to inside to address permissions problems --- bin/linux/bdde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/linux/bdde b/bin/linux/bdde index b040aea..d34412a 100755 --- a/bin/linux/bdde +++ b/bin/linux/bdde @@ -30,10 +30,10 @@ if [ $# -ne 0 ]; then set -x docker run --rm --cap-add=SYS_PTRACE --security-opt seccomp=unconfined ${BDDE_DOCK} \ -v "${BOOST_ROOT}:/boost:rw" -v "${BDDE_ROOT}:/bdde:ro" -v "${HOME}/.vimrc:/home/boost/.vimrc:ro" \ - --workdir "${BOOST_STEM}" ${IT} ${BDDE_REPO}:${BDDE_SLUG} ${BDDE_SHELL} -c "$*" + --user $(id -u):$(id -g) --workdir "${BOOST_STEM}" ${IT} ${BDDE_REPO}:${BDDE_SLUG} ${BDDE_SHELL} -c "$*" else set -x docker run --rm --cap-add=SYS_PTRACE --security-opt seccomp=unconfined ${BDDE_DOCK} \ -v "${BOOST_ROOT}:/boost:rw" -v "${BDDE_ROOT}:/bdde:ro" -v "${HOME}/.vimrc:/home/boost/.vimrc:ro" \ - --workdir "${BOOST_STEM}" ${IT} ${BDDE_REPO}:${BDDE_SLUG} ${BDDE_SHELL} + --user $(id -u):$(id -g) --workdir "${BOOST_STEM}" ${IT} ${BDDE_REPO}:${BDDE_SLUG} ${BDDE_SHELL} fi