From 7c8baaf7873f1f2290237d655cb0f61ab1f3f3f1 Mon Sep 17 00:00:00 2001 From: thespad Date: Thu, 18 Jul 2024 16:09:57 +0100 Subject: [PATCH] Rebase to noble --- Dockerfile | 9 +++++++-- README.md | 11 +++++++++-- readme-vars.yml | 8 +++++--- root/etc/s6-overlay/s6-rc.d/init-whisper-config/run | 5 ++++- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 41697e2..8b1236d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy +FROM ghcr.io/linuxserver/baseimage-ubuntu:noble # set version label ARG BUILD_DATE @@ -9,9 +9,12 @@ ARG WHISPER_VERSION LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL maintainer="thespad" -ENV HOME=/config +ENV HOME=/config \ + DEBIAN_FRONTEND="noninteractive" \ + TMPDIR="/run/whisper-temp" RUN \ + echo "**** install packages ****" && \ apt-get update && \ apt-get install -y --no-install-recommends \ build-essential \ @@ -28,6 +31,8 @@ RUN \ nvidia-cublas-cu12 \ nvidia-cudnn-cu12==8.9.7.29 \ "wyoming-faster-whisper==${WHISPER_VERSION}" && \ + printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \ + echo "**** cleanup ****" && \ apt-get purge -y --auto-remove \ build-essential \ python3-dev && \ diff --git a/README.md b/README.md index 8fa5cfb..fdca220 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,11 @@ When using the `gpu` tag with Nvidia GPUs, make sure you set the container to us For more information see the [faster-whisper docs](https://github.com/SYSTRAN/faster-whisper), +## Read-Only Operation + +This image can be run with a read-only container filesystem. For details please [read the docs](https://docs.linuxserver.io/misc/read-only/). + + ## Usage To help you get started creating a container from this image you can either use docker-compose or the docker cli. @@ -130,6 +135,7 @@ Containers are configured using parameters passed at runtime (such as those abov | `-e WHISPER_BEAM=1` | Number of candidates to consider simultaneously during transcription. | | `-e WHISPER_LANG=en` | Language that you will speak to the add-on. | | `-v /config` | Local path for Whisper config files. | +| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). | ## Environment variables from files (Docker secrets) @@ -292,6 +298,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions -* **19.05.24:** - Bump CUDA to 12. -* **08.01.24:** - Add GPU Branch. +* **18.07.24:** - Rebase to Ubuntu Noble. +* **19.05.24:** - Bump CUDA to 12 on GPU branch. +* **08.01.24:** - Add GPU branch. * **25.11.23:** - Initial Release. diff --git a/readme-vars.yml b/readme-vars.yml index 0e9cfcc..bfaa731 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -6,7 +6,6 @@ project_url: "https://github.com/SYSTRAN/faster-whisper" project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/faster-whisper-logo.png" project_blurb: "[{{ project_name|capitalize }}]({{ project_url }}) is a reimplementation of OpenAI's Whisper model using CTranslate2, which is a fast inference engine for Transformer models. This container provides a Wyoming protocol server for faster-whisper." project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}" -project_blurb_optional_extras_enabled: false # supported architectures available_architectures: @@ -37,6 +36,8 @@ opt_param_env_vars: - { env_var: "WHISPER_BEAM", env_value: "1", desc: "Number of candidates to consider simultaneously during transcription." } - { env_var: "WHISPER_LANG", env_value: "en", desc: "Language that you will speak to the add-on." } +readonly_supported: true + # application setup block app_setup_block_enabled: true app_setup_block: | @@ -48,6 +49,7 @@ app_setup_block: | # changelog changelogs: - - { date: "19.05.24:", desc: "Bump CUDA to 12." } - - { date: "08.01.24:", desc: "Add GPU Branch." } + - { date: "18.07.24:", desc: "Rebase to Ubuntu Noble." } + - { date: "19.05.24:", desc: "Bump CUDA to 12 on GPU branch." } + - { date: "08.01.24:", desc: "Add GPU branch." } - { date: "25.11.23:", desc: "Initial Release." } diff --git a/root/etc/s6-overlay/s6-rc.d/init-whisper-config/run b/root/etc/s6-overlay/s6-rc.d/init-whisper-config/run index efea851..7d26a57 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-whisper-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-whisper-config/run @@ -1,6 +1,9 @@ #!/usr/bin/with-contenv bash # shellcheck shell=bash +mkdir -p "/run/whisper-temp" + # permissions lsiown -R abc:abc \ - /config + /config \ + /run/whisper-temp