From d8256c4d5f4733a7b31115412ca1022bb2640585 Mon Sep 17 00:00:00 2001 From: Lisanna Dettwyler Date: Tue, 30 Apr 2024 19:45:58 +0000 Subject: [PATCH] VLCLJ-2185 Add windows and linux dockerfiles --- .github/docker/rhel.Dockerfile | 8 +++++ .github/docker/sles.Dockerfile | 8 +++++ .github/docker/ubuntu.Dockerfile | 58 +++++++++++++++++++++++++++++++ .github/docker/windows.Dockerfile | 46 ++++++++++++++++++++++++ 4 files changed, 120 insertions(+) create mode 100644 .github/docker/rhel.Dockerfile create mode 100644 .github/docker/sles.Dockerfile create mode 100644 .github/docker/ubuntu.Dockerfile create mode 100644 .github/docker/windows.Dockerfile diff --git a/.github/docker/rhel.Dockerfile b/.github/docker/rhel.Dockerfile new file mode 100644 index 00000000..d8869fa2 --- /dev/null +++ b/.github/docker/rhel.Dockerfile @@ -0,0 +1,8 @@ +# syntax=docker/dockerfile:1.4 + +ARG VMAJ +ARG VMIN + +FROM ghcr.io/oneapi-src/level-zero-linux-compute/rhel:${VMAJ}.${VMIN} + +SHELL ["/bin/bash", "-e", "-c"] \ No newline at end of file diff --git a/.github/docker/sles.Dockerfile b/.github/docker/sles.Dockerfile new file mode 100644 index 00000000..7991c4cc --- /dev/null +++ b/.github/docker/sles.Dockerfile @@ -0,0 +1,8 @@ +# syntax=docker/dockerfile:1.4 + +ARG VMAJ +ARG VMIN + +FROM ghcr.io/oneapi-src/level-zero-linux-compute/sles:${VMAJ}.${VMIN} + +SHELL ["/bin/bash", "-e", "-c"] \ No newline at end of file diff --git a/.github/docker/ubuntu.Dockerfile b/.github/docker/ubuntu.Dockerfile new file mode 100644 index 00000000..29fcb0a6 --- /dev/null +++ b/.github/docker/ubuntu.Dockerfile @@ -0,0 +1,58 @@ +# syntax=docker/dockerfile:1.4 + +ARG VMAJ +ARG VMIN +FROM ghcr.io/oneapi-src/level-zero-linux-compute/ubuntu:${VMAJ}.${VMIN} + +ARG VMAJ +ARG VMIN + +SHELL ["/bin/bash", "-e", "-c"] + +RUN <> /etc/apt/sources.list +echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-updates main restricted universe multiverse" >> /etc/apt/sources.list +echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-security main restricted universe multiverse" >> /etc/apt/sources.list +echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-backports main restricted universe multiverse" >> /etc/apt/sources.list +dpkg --add-architecture arm64 +EOF + +ENV DEBIAN_FRONTEND=noninteractive +# /etc/apt/apt.conf.d/docker-clean doesn't work on older versions of docker for U2204 containers +RUN --mount=type=cache,target=/var/cache/apt <= 20)); then echo \ + gcc-10-aarch64-linux-gnu \ + g++-10-aarch64-linux-gnu; fi) \ + libc6:arm64 \ + libstdc++6:arm64; fi) \ + git \ + ninja-build +rm -rf /var/lib/apt/lists/* +EOF + +# Make newest version of aarch64 toolchain the default and enable switching. +RUN <