51 Commits

Author SHA1 Message Date
rishikanthc
3307349c13 fix: update yt-dlp url to download arch independent binary 2025-12-16 20:25:51 -08:00
rishikanthc
913063eb49 refactor: Switch yt-dlp to standalone binary & cleanup UV config
- Dockerfiles: Install yt-dlp binary from GitHub releases to /usr/local/bin
- Go: Execute yt-dlp binary directly, removing uv python wrapper
- Config: Remove unused UVPath configuration and findUVPath function
- Entrypoint: Remove yt-dlp init logic (still initializes whisperx env if needed)
2025-12-16 19:07:29 -08:00
rishikanthc
88166cbf6c fix: set correct internal path for whisperx-env 2025-12-16 18:38:51 -08:00
rishikanthc
11434b9f1b feat: Add production security configuration for CORS and cookie handling
- Fix refresh token cookie Secure flag bug (was hardcoded to false)
- Wire up AllowedOrigins config in CORS middleware (router, handlers, chat, SSE)
- Add APP_ENV=production to Dockerfile and Dockerfile.cuda
- Update all docker-compose files with APP_ENV and ALLOWED_ORIGINS examples
- CORS now validates origins in production, allows all in development
- Increase gocyclo threshold from 20 to 25 for complex handlers
2025-12-16 18:21:36 -08:00
Charles Bonnissent
ede7277a6e chore: add the missing unzip dependency in the dockerfile (refs #285) 2025-12-14 19:06:00 -08:00
rishikanthc
cf002fd560 feat(cli): add auto-install script and binaries serving 2025-11-29 10:21:47 -08:00
Geoff Tognetti
c2d29fc9c6 Fix YouTube downloads - Add Deno runtime for video cipher decryption
YouTube downloads were failing with "exit status 1" error. Root cause:
YouTube now requires yt-dlp to use a JavaScript runtime for video cipher
decryption.

Changes:
- Install Deno runtime in both Dockerfiles (standard and CUDA)
- Upgrade from yt-dlp to yt-dlp[default] to include all optional dependencies
- Add stderr capture to YouTube download handler for better error diagnostics
- Add performance logging for YouTube downloads (timing and file size)

Fixes #224

See: https://github.com/yt-dlp/yt-dlp/issues/14404
2025-11-15 14:06:57 -08:00
rishikanthc
5e6952df1c fixes docker for nvidia models 2025-09-07 13:51:42 -07:00
rishikanthc
9736ec44be change default uid/pid to 1000 2025-08-31 11:42:53 -07:00
rishikanthc
2c868967b3 fix docker not respecting env uid pid 2025-08-31 11:38:02 -07:00
rishikanthc
2add3ec4d3 fix permissions errors for docker bind mounts 2025-08-31 10:42:22 -07:00
rishikanthc
9a7212fa5d fixes #161 2025-08-31 10:35:21 -07:00
rishikanthc
a113133ef8 adds docker support 2025-08-29 10:21:44 -07:00
rishikanthc
37b0ca8f9f v1 - blank slate 2025-08-19 19:12:40 -07:00
SpirusNox
d14e145469 fix: improve Docker configuration and system health checks
- Add healthcheck to web service to monitor application status
- Update database healthcheck to use environment variables
- Fix line endings in Dockerfile and Dockerfile-cuda128
- Update copyright year in LICENSE
- Remove transcript.json (sample file no longer needed)
2025-04-15 15:47:16 -05:00
SpirusNox
bc9daaf546 fix: Improve runtime environment handling
- Add check-env.sh script for environment variable validation
- Update Docker files to support consistent environment handling
- Modify server-side components to properly load environment variables
- Fix environment variable references in API endpoints
- Update authentication flow to respect environment settings
- Improve transcription configuration based on environment
- Update documentation for environment configuration

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-06 10:43:07 -06:00
SpirusNox
df93484e6e fix: resolve missing package issue 2025-03-05 09:50:12 -06:00
SpirusNox
beca3f5756 Revert "Feature: Handle thinking field support and fix markdown rendering" 2025-03-04 17:00:33 -06:00
SpirusNox
1896d3b7e9 feat: implement and enhance thinking field support in transcription UI
This commit adds comprehensive support for displaying AI's thinking process in the transcript UI:

1. Update ThinkingDisplay component:
   - Improve rendering of thinking sections with expandable/collapsible UI
   - Add proper toggle functionality for showing/hiding thinking sections
   - Enhance styling and readability of thinking sections

2. Update AudioPlayer component for Svelte 5 compatibility:
   - Convert to use $state for reactive variables
   - Refactor to use modern event handling
   - Improve waveform rendering and progress tracking

3. Update summary display with markdown rendering support:
   - Add proper formatting for AI-generated summaries
   - Improve UI for viewing thinking sections in summaries
   - Connect thinking display toggle to parent component state

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-04 12:37:17 -06:00
SpirusNox
76a85e11b3 Refactor and update Docker configurations
- Updated `.dockerignore`:
  - Renamed Dockerfile from `Dockerfile-gpu` to `Dockerfile-cuda128` in ignore list.
  - Removed the extra newline for cleaner format.

- Updated GitHub Actions workflows:
  - Modified `main-cuda-docker.yml`, `nightly-cuda-docker.yml` to change Dockerfile reference from `Dockerfile-gpu` to `Dockerfile-cuda128`.
  - Updated image tags from `-gpu` to `-cuda128`.
  - Removed build and verification steps for non-CUDA Docker images from `main-docker.yml` and `nightly-docker.yml`.

- Updated main `Dockerfile`:
  - Adjusted installation steps for Node.js dependencies.
  - Added removal of `.env` file post-build to keep images clean.

- Updated `README.md` for GPU image build command:
  - Changed reference from `Dockerfile-gpu` to `Dockerfile-cuda128`.

- Modified `docker-compose.gpu.yml` and `docker-compose.yml`:
  - Updated Dockerfile reference in `docker-compose.gpu.yml` from `Dockerfile-gpu` to `Dockerfile-cuda128`.
  - Set default paths for `MODELS_DIR`, `WORK_DIR`, and `AUDIO_DIR` using environment variables and adjusted volume configurations.

- Refactored `docker-entrypoint.sh`:
  - Changed virtual environment directory from `/app/deps/` to `/scriberr/`.
  - Removed the dependency check marker file logic for a more direct installation approach.

- Updated `.gitignore` and `env.example`:
  - Removed `*.env` entry from `.gitignore`.
  - Added descriptions for paths in `env.example` for clarity.

These changes streamline the Docker setup, improve environment variable handling, and update documentation for clearer instructions.
2025-02-28 13:47:24 +05:30
SpirusNox
39d2e031fb Cleanup: Update Dockerfiles to include additional dependencies and copy env.example 2025-02-27 11:44:33 -06:00
SpirusNox
a9386c6c78 Cleanup: Added back in the audiowaveform install after troubleshooting 2025-02-27 11:01:30 -06:00
SpirusNox
39b553e4dc feat: Update Dockerfiles and move dependency installations to deployment
- Updated `Dockerfile` to use Ubuntu 24.04 as the base image.
- Created `Dockerfile-gpu` for GPU support using `nvidia/cuda:12.8.0-cudnn-runtime-ubuntu24.04`.
- Moved dependency installations to `docker-entrypoint.sh` for both Python and Node.js.
- Ensured virtual environment and Node.js dependencies are checked and installed during deployment.
- Added logic to handle hardware acceleration (CPU/GPU) in `docker-entrypoint.sh`.
2025-02-27 09:30:47 -06:00
SpirusNox
b1d4f650fe Update GPU configuration, Docker setup, Fixed Arm64 build error
- Update Dockerfile to use Ubuntu 24.04 and improve installation with `apt-get upgrade`.
- Modify Dockerfile to create and use a virtual environment for Python dependencies.
- Introduce ARGs for naming in Dockerfile-gpu and update base image to Ubuntu 22.04.
- Comment out PostgreSQL port mapping in docker-compose.yml for improved security (not exposed by default).
- Update docker-entrypoint.sh to activate the Python virtual environment before app startup.
- Simplify Python package installs in +server.ts by removing version-specific constraints.
2025-02-25 16:04:36 -06:00
SpirusNox
3e2ea31d90 Optimize Docker setup and improve transcription handling
Dockerfile Enhancements:

Refactored Dockerfile to combine apt-get commands for reduced layers and image size.
Leveraged Docker layer caching by separating COPY commands for dependencies and application code.
Added requirements.txt and updated Python dependency installation.
Adjusted environment variables and set NODE_ENV appropriately after building.
Ensured executable permissions for docker-entrypoint.sh.
Environment Configuration:

Updated .env file with new variables:
IMAGE_TAG for specifying Docker image tags.
PORT to configure the web interface port.
HARDWARE_ACCEL to specify hardware acceleration (cpu or gpu).
Modified .dockerignore to exclude venv directory.
Docker Compose Updates:

Updated docker-compose.yml to use the pre-built Docker image with IMAGE_TAG.
Replaced explicit environment variable declarations with env_file to load from .env.
Added Python Requirements File:

Created requirements.txt containing all Python dependencies for easier management and caching.
Transcription Script Improvements:

transcribe.py:

Modified to handle cases where HF_TOKEN is not provided, preventing errors when diarization is optional.
Adjusted diarization logic to set speaker labels appropriately.
Simplified JSON output by ensuring consistent segment structures.
transcription.ts:

Enhanced error handling and logging for better debugging.
Adjusted handling of environment variables HF_API_KEY and DIARIZATION_MODEL.
Improved progress reporting and job queue updates during transcription processing.
General Cleanup:

Ensured all scripts and configurations are aligned with the new environment variables.
Improved code comments and removed obsolete code sections.
Fixed minor syntax and formatting issues across scripts.
Overall, these changes enhance the Docker build process, streamline environment configurations, and improve the robustness of the transcription handling, especially around optional diarization features.
2025-02-12 16:17:26 -06:00
SpirusNox
93a628b86b feat: enhance Docker setup and transcription features
- Updated Dockerfile to install WhisperX and Diarization models and added npm build step.
- Modified docker-compose.yml to utilize environment variables and provide options for local data storage.
- Enhanced database connection in docker-entrypoint.sh to use environment variables for credentials.
- Added support for HuggingFace API key and diarization model in transcription.ts and transcribe.py.
2025-02-05 16:34:26 -06:00
rishikanthc
8ff3180219 Rewrite 2025-01-09 11:59:22 -08:00
rishikanthc
591e629198 Svelte5 Rewrite 2025-01-09 11:49:50 -08:00
rishikanthc
ddb8079e80 fix(docker): fix minor bugs in dockerfiles for concurrency and nvidia gpus 2024-10-19 21:35:32 -07:00
rishikanthc
535e612479 fix(docker): finally fixed docker 2024-10-19 20:11:55 -07:00
Rishikanth Chandrasekaran
8345ab9d1f Update Dockerfile 2024-10-17 14:12:14 -07:00
Rishikanth Chandrasekaran
d017f06779 Update Dockerfile 2024-10-17 14:06:42 -07:00
Rishikanth Chandrasekaran
fe4efd7f9a Update Dockerfile 2024-10-17 11:51:54 -07:00
Rishikanth Chandrasekaran
b44cd61641 Update Dockerfile 2024-10-17 11:49:33 -07:00
Rishikanth Chandrasekaran
151f463297 fix(docker): Builds should work fine on cpu now 2024-10-17 11:46:42 -07:00
Rishikanth Chandrasekaran
8446e2a416 Update Dockerfile 2024-10-17 11:21:10 -07:00
Rishikanth Chandrasekaran
3524274729 Update Dockerfile 2024-10-17 11:16:35 -07:00
Rishikanth Chandrasekaran
670eb37bbb Update Dockerfile 2024-10-17 11:09:33 -07:00
Rishikanth Chandrasekaran
cacf389abe Update Dockerfile 2024-10-17 11:07:12 -07:00
Rishikanth Chandrasekaran
63d060d19b Update Dockerfile 2024-10-17 11:02:28 -07:00
Rishikanth Chandrasekaran
b5236da9cd fix(docker): debugging npm 2024-10-17 10:58:52 -07:00
Rishikanth Chandrasekaran
f317dbf55f fix(docker): checking out debian for docker 2024-10-17 10:53:44 -07:00
Rishikanth Chandrasekaran
73a5f2459b Update Dockerfile 2024-10-16 21:03:00 -07:00
Rishikanth Chandrasekaran
0a32a31d00 fix(docker): install python and pyannote 2024-10-16 21:00:03 -07:00
Reese
60f62fd283 Update Dockerfile due to not being able to find curl on docker machine 2024-10-11 01:09:06 +11:00
rishikanthc
c0990e63aa release beta-0.2 2024-10-09 07:58:29 -07:00
Phillip Ferentinos
a58609f45a refactor: remove commented code 2024-10-08 18:12:23 -05:00
Phillip Ferentinos
109fe76be5 refactor(image): use multi-stage builds to reduce final image size 2024-10-08 18:07:33 -05:00
Phillip Ferentinos
2898e5d15f fix: add original values as defaults for docker environment 2024-10-07 15:56:15 -05:00
Phillip Ferentinos
9995009385 feat(summarize-server): add configuration items to allow for setting alternative openai endpoints 2024-10-07 12:49:59 -05:00