Skip to content

Commit 9b8e61e

Browse files
committed
workaround for LLVM tests, that are not compatible with root user
1 parent 1852102 commit 9b8e61e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

devops/containers/ubuntu2004_base.Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ FROM ubuntu:20.04
22

33
ENV DEBIAN_FRONTEND=noninteractive
44

5+
USER root
6+
57
RUN apt update && apt install -yqq \
68
build-essential \
79
cmake \
@@ -10,3 +12,9 @@ RUN apt update && apt install -yqq \
1012
git \
1113
python3 \
1214
python3-distutils
15+
16+
RUN adduser --disabled-password --gecos '' sycl
17+
18+
COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh
19+
20+
ENTRYPOINT ["/docker_entrypoint.sh"]

devops/scripts/docker_entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
if [ -d "$GITHUB_WORKSPACE" ]; then
4+
chown -R sycl:sycl $GITHUB_WORKSPACE
5+
su sycl
6+
fi
7+
8+
exec "$@"

0 commit comments

Comments
 (0)