Skip to content

Commit

Permalink
map user outside to inside to address permissions problems
Browse files Browse the repository at this point in the history
  • Loading branch information
jeking3 committed Feb 2, 2022
1 parent 0e10fa9 commit 6ef2d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/linux/bdde
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6ef2d9f

Please sign in to comment.