From 124a64ff7a86ccec9294b2f501209b713062908e Mon Sep 17 00:00:00 2001 From: Lisanna Dettwyler Date: Wed, 1 May 2024 13:28:21 -0400 Subject: [PATCH] VLCLJ-2185 Add windows and linux dockerfiles --- .github/docker/rhel.Dockerfile | 5 ++ .github/docker/sles.Dockerfile | 25 +++++++ .github/docker/ubuntu.Dockerfile | 116 ++++++++++++++++++++++++++++++ .github/docker/windows.Dockerfile | 107 +++++++++++++++++++++++++++ 4 files changed, 253 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..f06d60ad --- /dev/null +++ b/.github/docker/rhel.Dockerfile @@ -0,0 +1,5 @@ +# syntax=docker/dockerfile:1.4 + +ARG VMAJ +ARG VMIN +FROM ghcr.io/oneapi-src/level-zero-linux-compute/rhel:${VMAJ}.${VMIN} diff --git a/.github/docker/sles.Dockerfile b/.github/docker/sles.Dockerfile new file mode 100644 index 00000000..f19d52be --- /dev/null +++ b/.github/docker/sles.Dockerfile @@ -0,0 +1,25 @@ +# 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"] + +# Static libraries for boost are not part of the SLES distribution +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)) && echo \ + gcc-10-aarch64-linux-gnu \ + g++-10-aarch64-linux-gnu) \ + libc6:arm64 \ + libstdc++6:arm64 \ + libpapi-dev \ + libpapi-dev:arm64 \ + libpng-dev \ + libpng-dev:arm64 \ + libva-dev \ + libva-dev:arm64 \ + ocl-icd-opencl-dev \ + ocl-icd-opencl-dev:arm64 \ + opencl-headers \ + python3 \ + python3-pip +rm -rf /var/lib/apt/lists/* +EOF + +# Make newest version of aarch64 toolchain the default and enable switching. +RUN <