From bf0baeb892804cd6062224bed211823e16315e1f Mon Sep 17 00:00:00 2001 From: Jordi Mas Date: Mon, 6 Jan 2025 10:16:37 +0100 Subject: [PATCH] Fix image --- .github/workflows/docker.yml | 2 +- Makefile | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 77ecc16..15d52c5 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -24,7 +24,7 @@ jobs: run: docker build -t ghcr.io/softcatala/whisper-ctranslate2:latest . - name: Use Docker image - run: docker run -v "$(pwd)":/srv/files/ ghcr.io/softcatala/whisper-ctranslate2:latest /srv/files/e2e-tests/gossos.mp3 + run: docker run --gpus "device=0" -v "$(pwd)":/srv/files/ ghcr.io/softcatala/whisper-ctranslate2:latest /srv/files/e2e-tests/gossos.mp3 - name: Push Docker image run: docker push ghcr.io/softcatala/whisper-ctranslate2:latest diff --git a/Makefile b/Makefile index 277dd7d..e453732 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,7 @@ docker-build: docker image ls | grep whisper-ctranslate2 docker-run: - docker volume create traductor-files; - docker run --gpus "device=0" -v "$(shell pwd)":/srv/files/ -it --rm whisper-ctranslate2 /srv/files/e2e-tests/gossos.mp3 --output_dir /srv/files/; + docker run --gpus "device=0" -v "$(shell pwd)":/srv/files/ -it --rm whisper-ctranslate2 /srv/files/e2e-tests/gossos.mp3 --output_dir /srv/files/; run: python3 setup.py sdist bdist_wheel