Skip to content

Commit c8325f2

Browse files
author
Alexander Batashev
authored
[CI] Prepare base container for driver installation (#5756)
- Add `sycl` user to sudoers - Add script to install drivers
1 parent 3321141 commit c8325f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

devops/containers/ubuntu2004_base.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ RUN /install.sh
1515
RUN groupadd -g 1001 sycl && useradd sycl -u 1001 -g 1001 -m -s /bin/bash
1616
# Add sycl user to video group so that it can access GPU
1717
RUN usermod -aG video sycl
18+
# Allow sycl user to run as sudo
19+
RUN echo "sycl ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
1820

1921
COPY actions/cached_checkout /actions/cached_checkout
2022
COPY actions/cleanup /actions/cleanup
2123
COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh
24+
COPY scripts/install_drivers.sh /opt/install_drivers.sh
2225

2326
ENTRYPOINT ["/docker_entrypoint.sh"]

0 commit comments

Comments
 (0)