[libcxx-commits] [libcxx] 5e1edea - [libcxx] Add user to linux-builder docker image (#228933)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Oct 4 12:34:13 PDT 2026


Author: Aiden Grossman
Date: 2026-10-04T12:34:02-07:00
New Revision: 5e1edea790610e7ef8c5e06b6e5185fe5dd1c830

URL: https://github.com/llvm/llvm-project/commit/5e1edea790610e7ef8c5e06b6e5185fe5dd1c830
DIFF: https://github.com/llvm/llvm-project/commit/5e1edea790610e7ef8c5e06b6e5185fe5dd1c830.diff

LOG: [libcxx] Add user to linux-builder docker image (#228933)

Accidentally didn't move this over when copying from the builder-base
image in 84812cba90fe0a0f95544a3ff01da1e61346a68d. Without these we run
as root by default which results in not throwing permission denied
errors when running the test suite.

Added: 
    

Modified: 
    libcxx/utils/ci/docker/linux-builder.dockerfile

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/ci/docker/linux-builder.dockerfile b/libcxx/utils/ci/docker/linux-builder.dockerfile
index 64dde3cf00f52..9ce4b06ab110c 100644
--- a/libcxx/utils/ci/docker/linux-builder.dockerfile
+++ b/libcxx/utils/ci/docker/linux-builder.dockerfile
@@ -141,3 +141,10 @@ RUN <<EOF
     sudo bash /tmp/install-cmake.sh --prefix=/usr --exclude-subdir --skip-license
     rm /tmp/install-cmake.sh
 EOF
+
+# Setup the user
+RUN useradd gha -u 1001 -m -s /bin/bash
+RUN adduser gha sudo
+RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
+WORKDIR /home/gha
+USER gha


        


More information about the libcxx-commits mailing list