From eee0aca7342a2bc17e94ed281e7e5ad53a4c0abf Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Fri, 2 Aug 2024 12:07:56 -0400 Subject: [PATCH 1/2] fix: ensure whisper dev dependencies are install when executing the make target --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bf5442755..6db11c949 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,7 @@ docker-api: local-registry sdk-wheel docker tag ghcr.io/defenseunicorns/leapfrogai/api-migrations:${LOCAL_VERSION} localhost:${REG_PORT}/defenseunicorns/leapfrogai/api-migrations:${LOCAL_VERSION} build-api: local-registry docker-api ## Build the leapfrogai_api container and Zarf package - ## Push the images to the local registry (Zarf is super slow if the image is only in the local daemon) + ## Push the images to the local registry (Zarf is super sl7ow if the image is only in the local daemon) docker push ${DOCKER_FLAGS} localhost:${REG_PORT}/defenseunicorns/leapfrogai/leapfrogai-api:${LOCAL_VERSION} docker push ${DOCKER_FLAGS} localhost:${REG_PORT}/defenseunicorns/leapfrogai/api-migrations:${LOCAL_VERSION} @@ -136,6 +136,7 @@ build-text-embeddings: local-registry docker-text-embeddings ## Build the text-e docker-whisper: sdk-wheel ## Build the image (and tag it for the local registry) + pip install 'ctranslate2' 'transformers[torch]' docker build ${DOCKER_FLAGS} --platform=linux/${ARCH} --build-arg LOCAL_VERSION=${LOCAL_VERSION} -t ghcr.io/defenseunicorns/leapfrogai/whisper:${LOCAL_VERSION} -f packages/whisper/Dockerfile . docker tag ghcr.io/defenseunicorns/leapfrogai/whisper:${LOCAL_VERSION} localhost:${REG_PORT}/defenseunicorns/leapfrogai/whisper:${LOCAL_VERSION} From 849a747bbea4d04f6f855baa7c9ccee954ba8999 Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Fri, 2 Aug 2024 12:11:08 -0400 Subject: [PATCH 2/2] fix typo --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6db11c949..1de162879 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,7 @@ docker-api: local-registry sdk-wheel docker tag ghcr.io/defenseunicorns/leapfrogai/api-migrations:${LOCAL_VERSION} localhost:${REG_PORT}/defenseunicorns/leapfrogai/api-migrations:${LOCAL_VERSION} build-api: local-registry docker-api ## Build the leapfrogai_api container and Zarf package - ## Push the images to the local registry (Zarf is super sl7ow if the image is only in the local daemon) + ## Push the images to the local registry (Zarf is super slow if the image is only in the local daemon) docker push ${DOCKER_FLAGS} localhost:${REG_PORT}/defenseunicorns/leapfrogai/leapfrogai-api:${LOCAL_VERSION} docker push ${DOCKER_FLAGS} localhost:${REG_PORT}/defenseunicorns/leapfrogai/api-migrations:${LOCAL_VERSION}