Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
12 changes: 7 additions & 5 deletions container-images/scripts/build_llama_and_whisper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,22 @@ add_stream_repo() {

rm_non_ubi_repos() {
local dir="/etc/yum.repos.d"
rm -rf $dir/mirror.stream.centos.org_9-stream_* $dir/epel* $dir/_copr:*
rm -rf $dir/mirror.stream.centos.org_9-stream_* $dir/epel*
}

is_rhel_based() { # doesn't include openEuler
[[ "${ID}" == "rhel" || "${ID}" == "redhat" || "${ID}" == "centos" ]]
}

dnf_install_mesa() {
if is_rhel_based; then
dnf copr enable -y slp/mesa-krunkit "epel-9-$uname_m"
add_stream_repo "AppStream"
if [ "${ID}" = "fedora" ]; then
dnf copr enable -y slp/mesa-libkrun-vulkan
dnf install -y mesa-vulkan-drivers-25.0.7-100.fc42 "${vulkan_rpms[@]}"
dnf versionlock add mesa-vulkan-drivers-25.0.7-100.fc42
else
dnf install -y mesa-vulkan-drivers "${vulkan_rpms[@]}"
fi

dnf install -y mesa-vulkan-drivers "${vulkan_rpms[@]}"
rm_non_ubi_repos
}

Expand Down
2 changes: 1 addition & 1 deletion container-images/scripts/build_rag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $2"

update_python() {
if available dnf; then
dnf update -y --allowerasing
dnf update -y --allowerasing --nobest
dnf install -y "${python}" "${python}-pip" "${python}-devel" "${pkgs[@]}"
if [[ "${python}" == "python3.11" ]]; then
ln -sf /usr/bin/python3.11 /usr/bin/python3
Expand Down
Loading