File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ RUN <<EOF
7575 rm -rf tmp
7676EOF
7777
78+ # Create the libcxx-builder user
79+ RUN sudo useradd --create-home libcxx-builder
80+ WORKDIR /home/libcxx-builder
81+
7882# Install the Buildkite agent and dependencies. This must be done as non-root
7983# for the Buildkite agent to be installed in a path where we can find it.
8084#
9094ENV PATH="${PATH}:/home/libcxx-builder/.buildkite-agent/bin"
9195
9296# Install Docker
93- USER root
9497RUN <<EOF
9598 set -e
9699 curl -fsSL https://get.docker.com -o /tmp/get-docker.sh
@@ -104,12 +107,8 @@ RUN <<EOF
104107 chmod u+s /usr/bin/docker
105108EOF
106109
107- # Create the libcxx-builder user
108- RUN sudo useradd --create-home libcxx-builder
109- USER libcxx-builder
110- WORKDIR /home/libcxx-builder
111-
112110# Setup the Buildkite agent command line to do Android setup stuff first.
111+ USER libcxx-builder
113112COPY libcxx/utils/ci/vendor/android/container-setup.sh /opt/android/container-setup.sh
114113ENV PATH="/opt/android/sdk/platform-tools:${PATH}"
115114CMD /opt/android/container-setup.sh && buildkite-agent start
You can’t perform that action at this time.
0 commit comments