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

Aiden Grossman via libcxx-commits libcxx-commits at lists.llvm.org
Sun Oct 4 12:18:47 PDT 2026


https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/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.

>From 82d4f01c3f311419d2f84f07c2a1c857ee44603f Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sun, 4 Oct 2026 19:17:36 +0000
Subject: [PATCH] [libcxx] Add user to linux-builder docker image

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.
---
 libcxx/utils/ci/docker/linux-builder.dockerfile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libcxx/utils/ci/docker/linux-builder.dockerfile b/libcxx/utils/ci/docker/linux-builder.dockerfile
index 64dde3cf00f5298..9ce4b06ab110c50 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