Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/sycl-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,36 @@ jobs:
ghcr.io/${{ github.repository }}/${{ matrix.file }}:${{ matrix.tag }}-${{ github.sha }}
ghcr.io/${{ github.repository }}/${{ matrix.file }}:${{ matrix.tag }}
build-args: ${{ matrix.build_args }}

# Then build "Blender" images that depend on previous images.
#
# Note: Building these images on PR means using old "Build/Driver" images,
# as the ones above were not yet pushed.
build_and_push_blender_images:
needs: build_and_push_driver_images
name: "Containers"
Comment thread
KornevNikita marked this conversation as resolved.
Outdated
runs-on: [Linux, docker-builder]
permissions:
packages: write
strategy:
matrix:
include:
- name: Blender Ubuntu 24.04 Docker image
file: ubuntu2404_blender
tag: latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 2
- name: Build and Push Container
uses: ./devops/actions/build_container
with:
push: ${{ github.event_name != 'pull_request' }}
file: ${{ matrix.file }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
tags: |
ghcr.io/${{ github.repository }}/${{ matrix.file }}:${{ matrix.tag }}-${{ github.sha }}
ghcr.io/${{ github.repository }}/${{ matrix.file }}:${{ matrix.tag }}
build-args: ${{ matrix.build_args }}
15 changes: 15 additions & 0 deletions devops/containers/ubuntu2404_blender.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ARG base_tag=latest
ARG base_image=ghcr.io/intel/llvm/ubuntu2404_intel_drivers

FROM $base_image:$base_tag

ENV DEBIAN_FRONTEND=noninteractive

USER root

COPY scripts/download_blender.sh /download_blender.sh
RUN /download_blender.sh

USER sycl

ENTRYPOINT ["/bin/bash", "/drivers_entrypoint.sh"]
Comment thread
KornevNikita marked this conversation as resolved.
22 changes: 22 additions & 0 deletions devops/scripts/download_blender.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -x
set -e
set -o pipefail

apt update && apt install -yqq git-lfs
Comment thread
KornevNikita marked this conversation as resolved.

git clone -b v5.1.0 https://projects.blender.org/blender/blender.git
cd blender
make update
rm -rf .git
# Remove deps we will be building.
rm -rf lib/linux_x64/dpcpp
rm -rf lib/linux_x64/embree
rm -rf lib/linux_x64/level-zero
rm -rf lib/linux_x64/openimagedenoise
cd ..

tar -cJf blender_5_1_0.tar.xz blender
rm -rf blender
mv blender_5_1_0.tar.xz /opt/
Loading