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:
1
Makefile
1
Makefile
@@ -15,6 +15,7 @@ help:
|
||||
@echo "Build Container"
|
||||
@echo
|
||||
@echo " - make build"
|
||||
@echo " - make build IMAGE=ramalama"
|
||||
@echo
|
||||
@echo "Build docs"
|
||||
@echo
|
||||
|
||||
@@ -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 ..
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user