[libcxx-commits] [libcxx] 52615df - [libcxx][utils] Note read only mount and ptrace permission in container script
David Spickett via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 3 03:09:19 PDT 2021
Author: David Spickett
Date: 2021-11-03T10:09:15Z
New Revision: 52615df0f2b2ea8e20f7b580269329142cb5789b
URL: https://github.com/llvm/llvm-project/commit/52615df0f2b2ea8e20f7b580269329142cb5789b
DIFF: https://github.com/llvm/llvm-project/commit/52615df0f2b2ea8e20f7b580269329142cb5789b.diff
LOG: [libcxx][utils] Note read only mount and ptrace permission in container script
Reviewed By: ldionne, #libc
Differential Revision: https://reviews.llvm.org/D110938
Added:
Modified:
libcxx/utils/ci/run-buildbot-container
Removed:
################################################################################
diff --git a/libcxx/utils/ci/run-buildbot-container b/libcxx/utils/ci/run-buildbot-container
index 30e8b181bf92c..5d975ebfc4f4e 100755
--- a/libcxx/utils/ci/run-buildbot-container
+++ b/libcxx/utils/ci/run-buildbot-container
@@ -12,6 +12,12 @@
# state in `/llvm` is shared between the container and the host machine, which
# is useful for editing files on the host machine and re-running the build bot
# in the container.
+#
+# If you are on Linux you will likely not be able to write to the mount because
+# the user in the container doesn't have permissions to do so.
+# If you need to do this, give that user permission to do so after running
+# the container or add this flag to run the container as your local user IDs:
+# --user $(id -u):$(id -g)
set -e
@@ -21,4 +27,4 @@ if [[ ! -d "${MONOREPO_ROOT}/libcxx/utils/ci" ]]; then
exit 1
fi
docker pull ldionne/libcxx-builder
-docker run -it --volume "${MONOREPO_ROOT}:/llvm" --workdir "/llvm" ldionne/libcxx-builder bash
+docker run -it --volume "${MONOREPO_ROOT}:/llvm" --workdir "/llvm" --cap-add=SYS_PTRACE ldionne/libcxx-builder bash
More information about the libcxx-commits
mailing list