Skip to content

Commit c8afc66

Browse files
committed
[CI] Add Ubuntu 24.04 base image
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 250d663 commit c8afc66

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

.github/workflows/sycl-containers.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ jobs:
3939
file: ubuntu2204_base
4040
tag: latest
4141
build_args: ""
42+
- name: Base Ubuntu 24.04 Docker image
43+
file: ubuntu2404_base
44+
tag: latest
45+
build_args: ""
4246
- name: Build Ubuntu Docker image
4347
file: ubuntu2204_build
4448
tag: latest
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM ubuntu:24.04
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
USER root
6+
7+
# Install SYCL prerequisites
8+
COPY scripts/install_build_tools.sh /install.sh
9+
RUN /install.sh
10+
11+
# By default Ubuntu sets an arbitrary UID value, that is different from host
12+
# system. When CI passes default UID value of 1001, some of LLVM tools fail to
13+
# discover user home directory and fail a few LIT tests. Fixes UID and GID to
14+
# 1001, that is used as default by GitHub Actions.
15+
RUN groupadd -g 1001 sycl && useradd sycl -u 1001 -g 1001 -m -s /bin/bash
16+
# Add sycl user to video/irc groups so that it can access GPU
17+
RUN usermod -aG video sycl
18+
RUN usermod -aG irc sycl
19+
20+
# group 109 is required for sycl user to access PVC card.
21+
RUN groupadd -g 109 render
22+
RUN usermod -aG render sycl
23+
24+
# Allow sycl user to run as sudo
25+
RUN echo "sycl ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
26+
27+
COPY actions/cached_checkout /actions/cached_checkout
28+
COPY actions/cleanup /actions/cleanup
29+
COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh
30+
COPY scripts/install_drivers.sh /opt/install_drivers.sh
31+
32+
ENTRYPOINT ["/docker_entrypoint.sh"]

devops/scripts/install_build_tools.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apt update && apt install -yqq \
77
ccache \
88
git \
99
python3 \
10-
python3-distutils \
10+
python3-psutil \
1111
python-is-python3 \
1212
python3-pip \
1313
zstd \
@@ -26,5 +26,3 @@ apt update && apt install -yqq \
2626
libhwloc-dev \
2727
libzstd-dev
2828

29-
pip3 install psutil
30-

0 commit comments

Comments
 (0)