1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 06:46:39 +01:00

whisper.cpp now installs properly

These changes are required for building images.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2025-01-07 10:16:46 -05:00
parent 9514e06462
commit 600c9b7676
3 changed files with 3 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ help:
@echo "Build Container"
@echo
@echo " - make build"
@echo " - make build IMAGE=ramalama"
@echo
@echo "Build docs"
@echo

View File

@@ -81,9 +81,6 @@ clone_and_build_whisper_cpp() {
git submodule update --init --recursive
git reset --hard "$whisper_cpp_sha"
cmake_steps whisper_flags
mkdir -p "$install_prefix/bin"
mv build/bin/main "$install_prefix/bin/whisper-main"
mv build/bin/server "$install_prefix/bin/whisper-server"
cd ..
}

View File

@@ -19,7 +19,7 @@ select_container_manager() {
}
add_build_platform() {
conman_build+=("build" "--platform" "$platform")
conman_build+=("build" "--no-cache" "--platform" "$platform")
conman_build+=("-t" "quay.io/ramalama/$image_name")
conman_build+=("-f" "$image_name/Containerfile" ".")
}
@@ -45,6 +45,7 @@ build() {
case "${2:-}" in
build)
add_build_platform
echo "${conman_build[@]}"
"${conman_build[@]}"
"${conman_show_size[@]}"
rm_container_image