Skip to content

Commit 8d931df

Browse files
committed
Switch all containers to sycl_ci user and update the documentation
1 parent ff333a1 commit 8d931df

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

devops/containers/ubuntu2204_preinstalled.Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ ADD sycl_linux.tar.gz /opt/sycl/
1212
ENV PATH /opt/sycl/bin:$PATH
1313
ENV LD_LIBRARY_PATH /opt/sycl/lib:$LD_LIBRARY_PATH
1414

15-
# For preinstalled containers we create a different user which has
16-
# password-less sudo access
17-
RUN /user-setup.sh --regular
18-
USER sycl
15+
USER sycl_ci
1916

2017
ENTRYPOINT ["/bin/bash", "/drivers_entrypoint.sh"]
2118

sycl/doc/developer/DockerBKMs.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,20 @@ instructions.
143143

144144
## Changing Docker user
145145

146-
By default all processes inside Docker run as root. Some LLVM or Clang tests
147-
expect your user to be anything but root. You can change the user by specifying
148-
`-u <username or uid>` option. All Docker containers come with user `sycl`
149-
created.
146+
By default all processes within our containers are run as `sycl_ci` user.
147+
Note: it **does not** have password-less `root` access.
148+
149+
If you want to change the user, you can do that by specifying
150+
`-u <username or uid>` option when running the container.
151+
152+
All containers come with `/user-setup.sh` script which can used to create `sycl`
153+
user which has all the same groups as `sycl_ci` user, but also has passwrod-less
154+
access to `root`. Use the script as follows:
155+
156+
```bash
157+
# Note: the script requires root permissions to create a new user
158+
/user-setup.sh --regular
159+
```
150160

151161
## Managing downloaded Docker images
152162

0 commit comments

Comments
 (0)